hapytran Posted June 26, 2006 Posted June 26, 2006 Hi, I've installed Oscommerce on Yahoo! Hosting, but he Contact Us form does not work. Here is error message: ------------ From address not in member domain. Message not sent. -------------------- I'm ok in sending email to customers. How can i solve this problem? Thanks.
♥Vger Posted June 26, 2006 Posted June 26, 2006 The 'from' address has to be based on your domain e.g. [email protected] and not from another outside mail address e.g. [email protected] Your email settings are in your osCommerce admin panel under Configuration --> My Store, and there are three places where the email address used must be entered. But then again, this is Yahoo so it could be almost anything. Vger
hapytran Posted June 26, 2006 Author Posted June 26, 2006 Thanks for reply! That means my customers from gmail, hotmail, ... can not send email to me. Is there any other ways?
choosealogin Posted June 26, 2006 Posted June 26, 2006 Vger is talking about your store's e-mail address (specified in 3 places in admin, as she said). The 'from' address has to be based on your domain e.g. [email protected] and not from another outside mail address e.g. [email protected] The e-mail address you specify for your store should NOT be [email protected] will NOT work. It needs to be [email protected].
hapytran Posted June 26, 2006 Author Posted June 26, 2006 I'm using [email protected] for E-Mail Address and E-Mail From fiels. I can send email to customers or it's ok when someone register. But only in Contact Us tool, it does not work.
choosealogin Posted June 27, 2006 Posted June 27, 2006 There is not one "cure all" solution to e-mail problems. Chances are it can be fixed (even though you have Yahoo hosting)., but the solutions vary. There are a lot of different ideas to try here: http://www.oscommerce.com/community/bugs,2...s+&+Classes If you need to come back here for more help, let us know if your hosting is "windows" based or "linux / unix, etc". I'm not familiar with the 'options' that yahoo provides for hosting. In addition to your settings on your admin panel, in admin>configuration>email options ...need to know what those are. EDIT I re-read your first message, and....Your error sounds like a yahoo-specific error. You might ask them first, they'll be able to tell you how to avoid that. Chances are your contact us emails show [email protected] as the sender, in the headers. You might have to explicitly state a "from" address with ini_set in includes/classes/email...but start by talking to Yahoo.
hapytran Posted June 27, 2006 Author Posted June 27, 2006 I'm using Yahoo! Hosting, FreeBSD based. Maybe Yahoo does not allow emails different from mydomain.com to send email. My mean, it's ok when i use tool to send mail to customer. In Contact Us tool, if i use [email protected] to send email, it's ok. Here details in in admin>configuration>email options: ---------- E-Mail Transport Method sendmail E-Mail Linefeeds LF Use MIME HTML When Sending Emails false Verify E-Mail Addresses Through DNS false Send E-Mails true and details in My Store E-Mail Address [email protected] E-Mail From [email protected] Send Extra Order Emails To Saigon Depot Order <[email protected]>, Tech Support <[email protected]>, Sales <[email protected]> --------------- Maybe i'll contact to Yahoo Support team. Thanks and still need help!
choosealogin Posted June 27, 2006 Posted June 27, 2006 My experience w/Yahoo, freeBSD and sendmail is all pretty limited. I noticed this on the bug report page in the link I gave you: "you can replace the portion of the code that fetches the emailaddress that was entered by the visitor with an email address of your domain with a mailbox. " "I understand that you are unable to send an email using an email address outside of your domain in the "From" field. Please note that in order to send emails using PHP script from your account you will need to use one of your domain email address in the "From" field. If the "From" field is omitted, your default email address will be used. This restriction has been imposed to prevent sending spam emails using Yahoo! servers. Yahoo! servers requires authentication before sending email. If an email is sent using an existing domain email address then the sender of the email is considered to be verified. So, in order to prevent spam emails being sent through Yahoo! servers currently Yahoo! Web Hosting does not supports sending emails using an email address outside of your domain in the "From" field. you can hard code that "From" email address within the PHP script and can include the visitors email address in the body of the email or as the reply address as required." There is a contribution for an email "test", there's also one for e-mail authentication...you might check those out. I'm not sure how to get it working. :huh: As a long shot, I don't know if you might have any different luck w/SMTP (if you try that change the line feeds to CRLF).
hapytran Posted June 27, 2006 Author Posted June 27, 2006 you can hard code that "From" email address within the PHPscript and can include the visitors email address in the body of the email or as the reply address as required." Thanks, i think the idea above is good :rolleyes: !
jspight Posted December 16, 2006 Posted December 16, 2006 Hi, I've installed Oscommerce on Yahoo! Hosting, but he Contact Us form does not work. Here is error message: ------------ From address not in member domain. Message not sent. -------------------- I'm ok in sending email to customers. How can i solve this problem? Thanks. I have resolved this issue on Yahoo. It was a lucky guess. Update your email.php replace the SMTP section with this: if (EMAIL_TRANSPORT == 'smtp') { return mail($to_addr,$subject,$this->output); } } And It will work. Yahoo hosting brothers and sisters peace and love. :thumbsup: jspight www.systemflip.com
perpetualsharon Posted January 22, 2007 Posted January 22, 2007 I have resolved this issue on Yahoo. It was a lucky guess. Update your email.php replace the SMTP section with this: if (EMAIL_TRANSPORT == 'smtp') { return mail($to_addr,$subject,$this->output); } } And It will work. Yahoo hosting brothers and sisters peace and love. :thumbsup: jspight www.systemflip.com I too am having problems with osc on yahoo webhosting account. I have my entire catalog set up in SSL I have phpMail set up on my account. I can send mail from my Non-secure sections of my site with no problem. I have my osc set up to use the required email address for sending on my phpMail account. I have tried emailing using the original configuration of email.php and I have also tried the above configuration, neither of which I can get to work. I checked my mailerror.log and do not have any mail errors for the site. I have dbl/triple/quadruple checked my email address to make sure it is spelled correctly. Did Yahoo wise up and figure out we were going around their e-commerce solution??? I am stuck! Any thoughts would be greatly appreciated. Sharon
thwang99 Posted April 29, 2007 Posted April 29, 2007 My experience w/Yahoo, freeBSD and sendmail is all pretty limited. I noticed this on the bug report page in the link I gave you: There is a contribution for an email "test", there's also one for e-mail authentication...you might check those out. I'm not sure how to get it working. :huh: As a long shot, I don't know if you might have any different luck w/SMTP (if you try that change the line feeds to CRLF). In the "send" function in email.php, I added these two lines: if ((strstr($from_addr, "\n") != false) || (strstr($from_addr, "\r") != false)) { return false; } /* BELOW TWO LINES ADDED */ $from_name = $from_name . " - " . $from_addr; $from_addr = "[email protected]"; $to = (($to_name != '') ? '"' . $to_name . '" <' . $to_addr . '>' : $to_addr); $from = (($from_name != '') ? '"' . $from_name . '" <' . $from_addr . '>' : $from_addr); Voltphreaks.com is my domain. So, when I get email from the contact us form, the name comes out as "Joe User - [email protected]", and the from address is [email protected]. Works and gets by Yahoo's anti-spamming rules! - Tony
Guest Posted July 7, 2007 Posted July 7, 2007 In the "send" function in email.php, I added these two lines: if ((strstr($from_addr, "\n") != false) || (strstr($from_addr, "\r") != false)) { return false; } /* BELOW TWO LINES ADDED */ $from_name = $from_name . " - " . $from_addr; $from_addr = "[email protected]"; $to = (($to_name != '') ? '"' . $to_name . '" <' . $to_addr . '>' : $to_addr); $from = (($from_name != '') ? '"' . $from_name . '" <' . $from_addr . '>' : $from_addr); Voltphreaks.com is my domain. So, when I get email from the contact us form, the name comes out as "Joe User - [email protected]", and the from address is [email protected]. Works and gets by Yahoo's anti-spamming rules! - Tony Is this the only two lines of code to add?: $from_name = $from_name . " - " . $from_addr; $from_addr = "[email protected]"; And where do I add the code, I cannot find any of the code you guys are showing and I do not have an email.php file, mine is mail.php. I am having the same problem with the contact form.
Oliver1 Posted December 31, 2008 Posted December 31, 2008 Is this the only two lines of code to add?: $from_name = $from_name . " - " . $from_addr; $from_addr = "[email protected]"; And where do I add the code, I cannot find any of the code you guys are showing and I do not have an email.php file, mine is mail.php. I am having the same problem with the contact form. This work GREAT !!!! Thank you guys!!!
jon_wheeldeals Posted January 1, 2009 Posted January 1, 2009 In the "send" function in email.php, I added these two lines: if ((strstr($from_addr, "\n") != false) || (strstr($from_addr, "\r") != false)) { return false; } /* BELOW TWO LINES ADDED */ $from_name = $from_name . " - " . $from_addr; $from_addr = "[email protected]"; $to = (($to_name != '') ? '"' . $to_name . '" <' . $to_addr . '>' : $to_addr); $from = (($from_name != '') ? '"' . $from_name . '" <' . $from_addr . '>' : $from_addr); Voltphreaks.com is my domain. So, when I get email from the contact us form, the name comes out as "Joe User - [email protected]", and the from address is [email protected]. Works and gets by Yahoo's anti-spamming rules! - Tony Perfect solution! Thanks, and a very very happy new year to all!
kryptonicwave Posted March 6, 2009 Posted March 6, 2009 Perfect solution! Thanks, and a very very happy new year to all! THIS DOES NOT WORK!!!!!!!!!!!!!!!!!!
Guest Posted May 3, 2009 Posted May 3, 2009 Just started using osCommerce on Yahoo myself. My problem was very similar. Yahoo says to use the "sendmail" option. I found that this only worked to send outbound e-mails from my console, it would not let me get any emails sent to me from any of the forms on the site. :blink: But this solved all my problems. First - make sure your 'my store' settings for owners email address AND email from address are: primary_name_on_your_yahoo_site@your_yahoo_web.com Then - change that code on line 519 of: /includes/classes/email.php to: if (EMAIL_TRANSPORT == 'smtp') { return mail($to_addr,$subject,$this->output); } } ((just as the genius' below have said)) save the file then go to your email options. Verify settings are smtp lf false false true That's all there was to it. I spend days trying to figure this out. Finally, I found this post and now all is well. My site: www.michaelsarchitecturalbooks.com
Recommended Posts
Archived
This topic is now archived and is closed to further replies.