Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Stumped... yahoo webhosting & emails


perpetualsharon

Recommended Posts

I have a yahoo small business webhosting account & have set up osc. I am able to do everthing within the catalog except email. I have tried installing my store in a regular folder and also under SSL. My osc settings are setup us as sendmail. I have used the yahoo work-around code below from jspight

 

if (EMAIL_TRANSPORT == 'smtp') {

return mail($to_addr,$subject,$this->output);

}

}

 

Emailing does not work with the original email.php code nor does it work with the above code. I have phpMail set up on my account which requires a specific email address to send emails from the website. I have this email address set up as my E-mail From in the osc admin setup.

 

Looking at the code previous to the actual sending of the email is this line...

 

$from = (($from_name != '') ? '"' . $from_name . '" <' . $from_addr . '>' : $from_addr);

 

I have tried dimming out the previous line and hardcoding my email address here... like this

 

$from = "[email protected]";

 

still doesn't work. Am I totally off base here? There are 2 email.php... one within the catalog/admin/includes/classes folder and one within the catalog/includes/classes folder. Am I supposed to change email.php in both folders (which I did)?

 

one of the things I noticed....

on the EMAIL ADDRESS in the admin panel if your email address does not match the domain name, it is rejected by the domain name... so [email protected] was immediately rejected. I changed this to be an email address matching the domain name and voila... no more errors in the errorMail.log

 

BUT... no emails in my inbox either. I am not getting emails from the contact page, new registrations(am I supposed to?) or when orders are placed. I also have 2 other alternate emails set up to receive order confirmations, I am not receiving these either. Like I said before I have installed this using SSL and without SSL. I have several non-secure (contact us type) pages that send email from the website using phpMail and the required domain email with no problem.

 

In the admin panel do I need to type in my E-mail Address & E-mail From addresses like this?

MyName <[email protected]> or like this [email protected]

 

This is the only discrepancy I can find that maybe I haven't tried.... the secondary order confirmation emails are set up in the manner of " name <email> " ... ??any thoughts??

 

Why can't I get this figured out? Any help would be greatly appreciated.

 

Sharon

Link to comment
Share on other sites

ok... figured it out... on several levels....

 

#1. I set up my code like this from this post..

http://www.oscommerce.com/forums/index.php?s=&...st&p=831541

 

ini_set("sendmail_from", "you@your_hosted_domain.com");

if (EMAIL_TRANSPORT == 'smtp') {

return mail($to_addr, $subject, $this->output, 'From: ' . $from . $this->lf . 'To: ' . $to . $this->lf . implode($this->lf, $this->headers) . $this->lf . implode($this->lf, $xtra_headers));

} else {

 

 

ini_set...... being the part that I added to both of the email.php files.

 

 

#2. On yahoo webhosting servers you must use the phpMail email address that you set up when you configured phpMail.

 

So in the admin cp EMAIL ADDRESS would be the address you set up on phpMail.

I also set the EMAIL FROM to store <root@localhost>

 

 

good grief... 2 days on this yahoo stinks. (not my choice for hosting an ecommerce site... just working with crazy people that think yahoo is great!) uggh

 

Have a good day peeps.

Sharon

Link to comment
Share on other sites

Here is the answer to installing osCommerce on Yahoo Small Business. I worked non-stop. I posted it on

my website as pdf.

Go here, then open the pdf.

http://www.natural-health-doctor.com/install/

 

installingoscommerceonyahoo

 

Trust me this is probably one of the easiest ways. Getting the paths straight is so important, and a beast to figure out. Yahoo, despite having a nice server has ill equipped staff who knew very little.

 

 

 

 

 

Please let me know if this is good and feel free to share it if it does.

Dr. Bussom

 

www.natural-health-doctor.com

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...