PEAR Forum :: PHP Extension and Application Repository

PEAR Forum Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Doubled up emails

 
Post new topic   Reply to topic    PEAR Forum Forum Index -> Mail
View previous topic :: View next topic  
Author Message
nmw01223



Joined: 09 May 2008
Posts: 8

PostPosted: Fri Aug 15, 2008 2:08 pm    Post subject: Doubled up emails Reply with quote

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
View user's profile Send private message
mark



Joined: 07 Jan 2007
Posts: 1013

PostPosted: Fri Aug 15, 2008 9:54 pm    Post subject: Reply with quote

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
View user's profile Send private message
jaxbulls



Joined: 27 Sep 2008
Posts: 2

PostPosted: Sat Sep 27, 2008 3:45 am    Post subject: Me too Reply with quote

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
View user's profile Send private message
jaxbulls



Joined: 27 Sep 2008
Posts: 2

PostPosted: Sat Sep 27, 2008 4:14 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    PEAR Forum Forum Index -> Mail All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
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



PEAR Forum topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group

Provided by Ministry of Web developement

'Actiemonitor' online projectmanagement software