a.forever Posted October 26, 2009 Posted October 26, 2009 Hello. I never thought I'd be posting on these forums, but I've hit a roadblock. I've been modifying my site for some time now with little PHP knowledge. Reviewing my error logs today, I found that e-mails weren't getting through to customers. /usr/sbin/sendmail: unexpected response 553 to RCPT TO command, referer: http://www.mydomain.com/page.php So I did some tests and got discovered the following: Welcome e-mail and order e-mails do not get sent to customers. Contact Us e-mail does not get sent to store owner. E-Mails from logging onto Admin does not work. Send Extra Order Emails To works. E-Mail Address, E-Mail From, and Send Extra Order Emails To are all the exact same value in the following format [email protected]. It does not belong to the domain. Changing it to an address on my domain had no effect. Ran E-Mail Testing Script contribution and received only the native PHP mail. It could be that one of my add-ons killed e-mail. However, reviewing my error logs made me assume that this problem existed before any major editing with the site. I'd hate to do a vanilla install to fix this problem. I would appreciate assistance and thank you for your time in reading this post and for helping me. Some additional e-mail settings info: E-Mail Transport Method = sendmail E-Mail Linefeeds = LF Use MIME HTML When Sending Emails = true Verify E-Mail Addresses Through DNS = false Send E-Mails = true
burtonsnow8 Posted October 26, 2009 Posted October 26, 2009 Hello. I never thought I'd be posting on these forums, but I've hit a roadblock. I've been modifying my site for some time now with little PHP knowledge. Reviewing my error logs today, I found that e-mails weren't getting through to customers. /usr/sbin/sendmail: unexpected response 553 to RCPT TO command, referer: http://www.mydomain.com/page.php So I did some tests and got discovered the following: Welcome e-mail and order e-mails do not get sent to customers. Contact Us e-mail does not get sent to store owner. E-Mails from logging onto Admin does not work. Send Extra Order Emails To works. E-Mail Address, E-Mail From, and Send Extra Order Emails To are all the exact same value in the following format [email protected]. It does not belong to the domain. Changing it to an address on my domain had no effect. Ran E-Mail Testing Script contribution and received only the native PHP mail. It could be that one of my add-ons killed e-mail. However, reviewing my error logs made me assume that this problem existed before any major editing with the site. I'd hate to do a vanilla install to fix this problem. I would appreciate assistance and thank you for your time in reading this post and for helping me. Some additional e-mail settings info: E-Mail Transport Method = sendmail E-Mail Linefeeds = LF Use MIME HTML When Sending Emails = true Verify E-Mail Addresses Through DNS = false Send E-Mails = true It may be something with your host blocking e-mails to reduce spam? Also, try setting MIME HTML to false. If you want to be able to send out HTML newsletter and e-mails via the admin panel, you will have to edit admin/mail.php accordingly. around like 42: $mimemessage->add_text($message); and for newsletters open file admin/includes/modules/newsletteres/newsletter.php $mimemessage->add_text($this->content); change the word "text" to "html". send e-mails should now work.
a.forever Posted October 26, 2009 Author Posted October 26, 2009 It may be something with your host blocking e-mails to reduce spam? Also, try setting MIME HTML to false. If you want to be able to send out HTML newsletter and e-mails via the admin panel, you will have to edit admin/mail.php accordingly. around like 42: $mimemessage->add_text($message); and for newsletters open file admin/includes/modules/newsletteres/newsletter.php $mimemessage->add_text($this->content); change the word "text" to "html". send e-mails should now work. Spam folders show no message. Wouldn't explain why the Send Extra Order Emails To works because I receive order e-mails in my inbox or in my spam folder, which is oddly the only e-mail feature that works at the moment. I tried setting MIME HTML to false, modified both PHP files, and even did all possible combinations of the two, with no success.
burtonsnow8 Posted October 26, 2009 Posted October 26, 2009 OSC uses your hosts mail server to send out e-mails. It is possible that your host has disabled this. Like you said, it is strange that extra order e-mails are being sent out and the others are not, but at the very least its worth contacting your host about. Have you checked to see if you are on any mailing blacklists?
a.forever Posted December 2, 2009 Author Posted December 2, 2009 First off, my Admin e-mails aren't working. Would appreciate any help or a workaround on this. Quick recap, logging onto Admin and using any e-mail feature results in a success message with no e-mails being received. Per my original problem, I figured out a workaround. Since Send Extra Order Emails works and its code looks like: tep_mail('', SEND_EXTRA_ORDER_EMAILS_TO, EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); I changed the original code in checkout_process.php from: tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); to: tep_mail('', $order->customer['email_address'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); Order e-mails work now. When contact_us.php was changed the same way, e-mails started to work. However, when create_account.php was changed, nothing happened?! Original code was: tep_mail($name, $email_address, EMAIL_SUBJECT, $email_text, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); to: tep_mail('', $email_address, EMAIL_SUBJECT, $email_text, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); My thought on why Admin e-mails aren't working is that my server doesn't accept "To:" names? And I don't know how to workaround it. But then it doesn't explain why my workaround in create_account.php didn't work. Any assistance is appreciated.
a.forever Posted December 3, 2009 Author Posted December 3, 2009 Problem solved. Apparently for create_account.php, I just forgot to save my edits. Very careless mistake. As per Admin, I changed everything that looked like: $mimemessage->send($mail['customers_firstname'] . ' ' . $mail['customers_lastname'], $mail['customers_email_address'], '', $from, $subject);} to: $mimemessage->send('', $mail['customers_email_address'], '', $from, $subject) I still don't know why it would make a difference, but point being it works now. Case closed.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.