I have my client's Drupal website set-up on my laptop for development and testing. Phpmailer module is installed and was working against a gmail private account fine.
But I want the mail to appear from the correct domain, so decided to try Zoho. Have now changed phpmailer config to use Zoho's smtp server, port 465, authenticating with a dedicated email-id for the website generated emails.
Now when I use the "send test email" facility, the email is sent OK. But when I use the real contact form, it fails.
Here is the trace produced by phpmailer
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "220 mx.zohomail.com SMTP Server ready December 18, 2012 1:58:10 PM PST "
SMTP -> get_lines(): $data is "220 mx.zohomail.com SMTP Server ready December 18, 2012 1:58:10 PM PST "
SMTP -> FROM SERVER:220 mx.zohomail.com SMTP Server ready December 18, 2012 1:58:10 PM PST
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "250-mx.zohomail.com Hello example.com (host86-165-38-189.range86-165.btcentralplus.com (86.165.38.189)) "
SMTP -> get_lines(): $data is "250-mx.zohomail.com Hello example.com (host86-165-38-189.range86-165.btcentralplus.com (86.165.38.189)) "
SMTP -> get_lines(): $data was "250-mx.zohomail.com Hello example.com (host86-165-38-189.range86-165.btcentralplus.com (86.165.38.189)) "
SMTP -> get_lines(): $str is "250-SIZE 25000000 "
SMTP -> get_lines(): $data is "250-mx.zohomail.com Hello example.com (host86-165-38-189.range86-165.btcentralplus.com (86.165.38.189)) 250-SIZE 25000000 "
SMTP -> get_lines(): $data was "250-mx.zohomail.com Hello example.com (host86-165-38-189.range86-165.btcentralplus.com (86.165.38.189)) 250-SIZE 25000000 "
SMTP -> get_lines(): $str is "250 AUTH LOGIN PLAIN "
SMTP -> get_lines(): $data is "250-mx.zohomail.com Hello example.com (host86-165-38-189.range86-165.btcentralplus.com (86.165.38.189)) 250-SIZE 25000000 250 AUTH LOGIN PLAIN "
SMTP -> FROM SERVER: 250-mx.zohomail.com Hello example.com (host86-165-38-189.range86-165.btcentralplus.com (86.165.38.189)) 250-SIZE 25000000 250 AUTH LOGIN PLAIN
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "334 VXNlcm5hbWU6 "
SMTP -> get_lines(): $data is "334 VXNlcm5hbWU6 "
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "334 UGFzc3dvcmQ6 "
SMTP -> get_lines(): $data is "334 UGFzc3dvcmQ6 "
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "235 Authentication Successful "
SMTP -> get_lines(): $data is "235 Authentication Successful "
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "250 Sender OK "
SMTP -> get_lines(): $data is "250 Sender OK "
SMTP -> FROM SERVER:250 Sender OK
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "250 Recipient OK "
SMTP -> get_lines(): $data is "250 Recipient OK "
SMTP -> FROM SERVER:250 Recipient OK
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "354 Ok Send data ending with . "
SMTP -> get_lines(): $data is "354 Ok Send data ending with . "
SMTP -> FROM SERVER:354 Ok Send data ending with .
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "553 Relaying disallowed "
SMTP -> get_lines(): $data is "553 Relaying disallowed "
SMTP -> FROM SERVER:553 Relaying disallowed
SMTP -> ERROR: DATA not accepted from server: 553 Relaying disallowed
SMTP -> FROM SERVER:
SMTP -> ERROR: MAIL not accepted from server:
Your message has been sent.
Followed by following result messsage :
Sending of at least one e-mail failed. The error returned was:
SMTP error: data not accepted.
Unable to send e-mail. Please contact the site administrator if the problem persists.
Sending of at least one e-mail failed. The error returned was:
Unable to send e-mail. Please contact the site administrator if the problem persists.