Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Sending e-Mails (EMAIL_TRANSPORT = SMTP)


khrysller

Recommended Posts

Posted

Hi,

 

I read some topics on this subject, but none of them solves the situation. Actually I am getting the following error:

 

PHP Warning: mail() [<a href='function.mail'>function.mail</a>]: SMTP server response: 501 5.5.4 Invalid Address in E:\home\Web\store\admin\includes\classes\email.php on line 500

 

The line 500 is about the email transport:

 

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 {
	return mail($to, $subject, $this->output, 'From: '.$from.$this->lf.implode($this->lf, $this->headers).$this->lf.implode($this->lf, $xtra_headers));
  }
}

 

Actually my e-mail configuration are set to SMPT, 'cause the server is Windows. The error pops when, for example, request a new password, but if, in the admin section I went to Tools > Send Mail, I can send and receive the mail normally.

 

I would like to know if there is something more that I can do, 'cause I can find any more configuration in the admin about e-mail.

 

Thanks in advanced.

Posted
Hi,

 

I read some topics on this subject, but none of them solves the situation. Actually I am getting the following error:

The line 500 is about the email transport:

 

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 {
	return mail($to, $subject, $this->output, 'From: '.$from.$this->lf.implode($this->lf, $this->headers).$this->lf.implode($this->lf, $xtra_headers));
  }
}

 

Actually my e-mail configuration are set to SMPT, 'cause the server is Windows. The error pops when, for example, request a new password, but if, in the admin section I went to Tools > Send Mail, I can send and receive the mail normally.

 

I would like to know if there is something more that I can do, 'cause I can find any more configuration in the admin about e-mail.

 

Thanks in advanced.

 

 

This solves the problem: http://www.oscommerce.com/forums/index.php?sho...d=1179725

Archived

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

×
×
  • Create New...