 |
|
|
| View previous topic :: View next topic |
| Author |
Message |
nmw01223
Joined: 09 May 2008 Posts: 8
|
Posted: Fri Aug 15, 2008 2:08 pm Post subject: Doubled up emails |
|
|
I'm sending emails using Pear SMTP from a Windows 2003 Server host. The SMTP server itself is Linux and elsewhere out on the internet.
Messages are generally one TO address, and possibly two CC addresses.
The strange thing happening is this:
Recipients who are within the organisation's mail system (MS exchange server, but hosted on a different server with a different domain name to the one that Pear is sending the emails from), tend to be received twice. Not to all recipients, but to a high proportion.
Recipients elsewhere on the internet only every get them once.
No idea why this is happening. The superset of all emails to be sent (TO and CC) are put in the send() 'to' list in the form 'a@b.com, c@d.com ...'. The TO and CC lists are in the form '"fred" <f@g.com>, ...'.
Advice would be appreciated. |
|
| Back to top |
|
 |
mark

Joined: 07 Jan 2007 Posts: 1053
|
Posted: Fri Aug 15, 2008 9:54 pm Post subject: |
|
|
| Are all packages up-to-date? I remember that older versions of Mail (or maybe one of the utilized Net_* packages) had problems with address that were specified both in send() and in the 'To' header. In newer versions this seems to be fixed, and emails are only sent out once. |
|
| Back to top |
|
 |
jaxbulls
Joined: 27 Sep 2008 Posts: 2
|
Posted: Sat Sep 27, 2008 3:45 am Post subject: Me too |
|
|
I am having the same problem going from my UNIX web server to my SMTP hosted by mailtrust.com. Every e-mail submitted from my form is received twice. I found the script here http://email.about.com/od/emailprogrammingtips/qt/et073006.htm
edit: I also have made sure to do the upgrade all so I have the latest of the packages. I tried this with the stable Mail and the beta of Mail. |
|
| Back to top |
|
 |
jaxbulls
Joined: 27 Sep 2008 Posts: 2
|
Posted: Sat Sep 27, 2008 4:14 am Post subject: |
|
|
| The script I linked to above is a self-sufficient script. You load that php script and it sends. My usual form script has form fields, you hit submit and it goes to a second php page to process. When I integrated that form with PEAR Mail I only received 1 message. Something is just goofy about that script from about.com that was forcing 2 messages to be sent. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|