What is in your error log?
trunk-r3836
I get the "Failed to send message" error when I add a recipient to the Copy and/or BBC field when I compose and send a message.
Sends email OK if only recipient field is filled in.
Here is the entry in the error log:
This is line 1437 of func.inc:Code:[29-Jul-2010 14:56:02] PHP Warning: mail() [<a href='function.mail'>function.mail</a>]: SMTP server response: 550 Unknown user in C:\folder\mail.mysite.com\program\steps\mail\func.inc on line 1437
Code:$sent = mail($to, $subject, $msg_body, $header_str, "-f$from");
Last edited by jeffshead; 07-29-2010 at 08:08 PM. Reason: Add info
When I look in my email server log, I see the following:
Notice the double << and >>Code:"SMTPD" 3452 43270 "2010-07-29 14:55:44.171" "127.0.0.1" "RECEIVED: RCPT TO:<Webmaster <webmaster@mysite.com>>" "SMTPD" 3452 43270 "2010-07-29 14:55:44.171" "127.0.0.1" "SENT: 550 Unknown user" "SMTPD" 3436 43270 "2010-07-29 14:55:44.171" "127.0.0.1" "RECEIVED: QUIT" "SMTPD" 3436 43270 "2010-07-29 14:55:44.171" "127.0.0.1" "SENT: 221 goodbye" "SMTPD" 3428 43298 "2010-07-29 15:07:34.421" "127.0.0.1" "RECEIVED: RCPT TO:<<webmaster@mysite.com>>" "SMTPD" 3428 43298 "2010-07-29 15:07:34.421" "127.0.0.1" "SENT: 550 Unknown user" "SMTPD" 3416 43298 "2010-07-29 15:07:34.421" "127.0.0.1" "RECEIVED: QUIT"
Could that be the issue? Maybe RC needs to strip some things from the Copy and BCC email addresses to achieve the proper format so the email server can handle the addresses.
Last edited by jeffshead; 07-29-2010 at 08:18 PM.
I'm using hMailServer 5.3.2-B1769.
I just reverted back to RC 0.4Beta and I get the same results.
If I use Outlook 2007 (desktop) to send messages using the CC and BCC fields, it works.
Anyone else run into this?
Last edited by jeffshead; 07-29-2010 at 09:15 PM.
I just made a temporary swith from hMailServer to ISMail EP and get the same results.
I don't think this is a server issue.
Here is a line from the ISMail server log:
Code:2010-07-29 16:37:38 <TRACE-2>: SmtpReceiver: 0002: Problem extracting an address from the string '<Webmaster <webmaster@mysite.com>>':
Switched back to hMailServer and also find this is the awstats log:
Notice "Webmasterwebmaster@mysite.com"Code:2010-07-29 17:38:48 sendmail@mysite.com Webmasterwebmaster@mysite.com 127.0.0.1 127.0.0.1 SMTP ? 550 0
Should be webmaster@mysite.com
I did some more testing.
I disabled all plug-ins and get the same results.
If I let RC populate the Recipient and Copy fields (as pictured below), I get the following in my hMailServer logs:
("RECEIVED: RCPT TO:<Postmaster <postmaster@mysite.com>>" should be: "RECEIVED: RCPT TO<postmaster@mysite.com>")Code:"SMTPD" 13284 824 "2010-07-29 19:01:52.218" "127.0.0.1" "SENT: 220 mysite.com ESMTP" "SMTPD" 11116 824 "2010-07-29 19:01:52.218" "127.0.0.1" "RECEIVED: HELO No2" "SMTPD" 11116 824 "2010-07-29 19:01:52.218" "127.0.0.1" "SENT: 250 Hello." "SMTPD" 13284 824 "2010-07-29 19:01:52.218" "127.0.0.1" "RECEIVED: MAIL FROM:<php@mysite.com>" "SMTPD" 13284 824 "2010-07-29 19:01:52.218" "127.0.0.1" "SENT: 250 OK" "SMTPD" 11116 824 "2010-07-29 19:01:52.218" "127.0.0.1" "RECEIVED: RCPT TO:<me@mysite.com>" "SMTPD" 11116 824 "2010-07-29 19:01:52.218" "127.0.0.1" "SENT: 250 OK" "SMTPD" 13996 824 "2010-07-29 19:01:52.218" "127.0.0.1" "RECEIVED: RCPT TO:<Postmaster <postmaster@mysite.com>>" "SMTPD" 13996 824 "2010-07-29 19:01:52.218" "127.0.0.1" "SENT: 550 Unknown user" "SMTPD" 11116 824 "2010-07-29 19:01:52.218" "127.0.0.1" "RECEIVED: QUIT" "SMTPD" 11116 824 "2010-07-29 19:01:52.218" "127.0.0.1" "SENT: 221 goodbye"
and
If I manually enter addresses in the Recipient and Copy fields (as pictured below), I get the following in my hMailServer logs:Code:2010-07-29 19:01:52 php@mysite.com Postmasterpostmaster@mysite.com 127.0.0.1 127.0.0.1 SMTP ? 550 0
("RECEIVED: RCPT TO:<<postmaster@mysite.com>>" should be: "RECEIVED: RCPT TO:<postmaster@mysite.com>")Code:"SMTPD" 13284 1007 "2010-07-29 19:47:04.609" "127.0.0.1" "SENT: 220 mysite.com ESMTP" "SMTPD" 13960 1007 "2010-07-29 19:47:04.609" "127.0.0.1" "RECEIVED: HELO No2" "SMTPD" 13960 1007 "2010-07-29 19:47:04.609" "127.0.0.1" "SENT: 250 Hello." "SMTPD" 13284 1007 "2010-07-29 19:47:04.609" "127.0.0.1" "RECEIVED: MAIL FROM:<php@mysite.com>" "SMTPD" 13284 1007 "2010-07-29 19:47:04.609" "127.0.0.1" "SENT: 250 OK" "SMTPD" 13960 1007 "2010-07-29 19:47:04.609" "127.0.0.1" "RECEIVED: RCPT TO:<me@mysite.com>" "SMTPD" 13960 1007 "2010-07-29 19:47:04.625" "127.0.0.1" "SENT: 250 OK" "SMTPD" 14136 1007 "2010-07-29 19:47:04.625" "127.0.0.1" "RECEIVED: RCPT TO:<<postmaster@mysite.com>>" "SMTPD" 14136 1007 "2010-07-29 19:47:04.625" "127.0.0.1" "SENT: 550 Unknown user" "SMTPD" 13960 1007 "2010-07-29 19:47:04.625" "127.0.0.1" "RECEIVED: QUIT" "SMTPD" 13960 1007 "2010-07-29 19:47:04.625" "127.0.0.1" "SENT: 221 goodbye"
and
Please notice how the email addresses are formated in the logs. The address in the Recipient field is always formatted correctly no matter if RC populates the field or if it's entered manually. The email address in the Copy field gets formatted differently but is never in a format that enables the email server to extract a usable address.Code:2010-07-29 19:47:04 php@mysite.com postmaster@mysite.com 127.0.0.1 127.0.0.1 SMTP ? 550 0
Last edited by jeffshead; 07-30-2010 at 01:05 AM.
I switched from PHP mail() to SMTP and do not encounter this problem.
Anyone have any ideas as to why this occurs with PHP mail() funtion but not SMTP?
There are currently 1 users browsing this thread. (0 members and 1 guests)