+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11

Thread: Failed to send message - Copy or BCC

  1. #1
    jeffshead's Avatar
    jeffshead is offline Registered User
    Join Date
    Aug 2008
    Posts
    61
    Downloads
    0
    Uploads
    0

    Default Failed to send message - Copy or BCC

    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.

  2. #2
    skaero's Avatar
    skaero is offline Administrator
    Join Date
    Jun 2006
    Location
    USA - New Mexico
    Posts
    2,092
    Downloads
    5
    Uploads
    0

    Default

    What is in your error log?

  3. #3
    jeffshead's Avatar
    jeffshead is offline Registered User
    Join Date
    Aug 2008
    Posts
    61
    Downloads
    0
    Uploads
    0

    Default

    Here is the entry in the error log:
    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
    This is line 1437 of func.inc:
    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

  4. #4
    jeffshead's Avatar
    jeffshead is offline Registered User
    Join Date
    Aug 2008
    Posts
    61
    Downloads
    0
    Uploads
    0

    Default

    When I look in my email server log, I see the following:

    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"
    Notice the double << and >>

    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.

  5. #5
    skaero's Avatar
    skaero is offline Administrator
    Join Date
    Jun 2006
    Location
    USA - New Mexico
    Posts
    2,092
    Downloads
    5
    Uploads
    0

    Default

    Not sure but it seem to be a mail server problem, the SVN is working fine for me.

  6. #6
    jeffshead's Avatar
    jeffshead is offline Registered User
    Join Date
    Aug 2008
    Posts
    61
    Downloads
    0
    Uploads
    0

    Default

    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.

  7. #7
    jeffshead's Avatar
    jeffshead is offline Registered User
    Join Date
    Aug 2008
    Posts
    61
    Downloads
    0
    Uploads
    0

    Default

    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>>':

  8. #8
    jeffshead's Avatar
    jeffshead is offline Registered User
    Join Date
    Aug 2008
    Posts
    61
    Downloads
    0
    Uploads
    0

    Default

    Switched back to hMailServer and also find this is the awstats log:

    Code:
    2010-07-29 17:38:48	sendmail@mysite.com	Webmasterwebmaster@mysite.com	127.0.0.1	127.0.0.1	SMTP	?	550	0
    Notice "Webmasterwebmaster@mysite.com"

    Should be webmaster@mysite.com

  9. #9
    jeffshead's Avatar
    jeffshead is offline Registered User
    Join Date
    Aug 2008
    Posts
    61
    Downloads
    0
    Uploads
    0

    Default

    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:


    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"
    ("RECEIVED: RCPT TO:<Postmaster <postmaster@mysite.com>>" should be: "RECEIVED: RCPT TO<postmaster@mysite.com>")

    and

    Code:
    2010-07-29 19:01:52	php@mysite.com	Postmasterpostmaster@mysite.com	127.0.0.1	127.0.0.1	SMTP	?	550	0
    If I manually enter addresses in the Recipient and Copy fields (as pictured below), I get the following in my hMailServer logs:


    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"
    ("RECEIVED: RCPT TO:<<postmaster@mysite.com>>" should be: "RECEIVED: RCPT TO:<postmaster@mysite.com>")

    and

    Code:
    2010-07-29 19:47:04	php@mysite.com	postmaster@mysite.com	127.0.0.1	127.0.0.1	SMTP	?	550	0
    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.
    Last edited by jeffshead; 07-30-2010 at 01:05 AM.

  10. #10
    jeffshead's Avatar
    jeffshead is offline Registered User
    Join Date
    Aug 2008
    Posts
    61
    Downloads
    0
    Uploads
    0

    Default

    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?

+ Reply to Thread
Page 1 of 2 1 2 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts