Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Email from


Recommended Posts



I'm have trouble with the email being sent from my OSCommerce installation. We own and have full control of the Linux box on which it runs and Postfix has been configured correctly. The email system has been verified as working by both calling /usr/sbin/sendmail directly from the console and also writing a quick php script using the mail() function. The resulting emails generated come from root@mydomain.com - however any email sent from OSCommerce appears to come from admin@localhost - this is no use as we need the reply-to address to be sales@mydomain.com.


I modified /etc/php5/apache2/php.ini to change the 'mail.force_extra_parameters = -f sales@mydomain.com' however this had no effect, although it does when calling sendmail directly from the commandline


Can I configure the reply-to address from OSCommerce directly? Or will I have to modify the calling of the /includes/functions/general.php tep_mail() function everywhere it's called? e.g. login.php etc?


It may be worth noting that I have OSCommerce configured to use SMTP mail as the sendmail method would not work and no clues where found in any log files anywhere on my system.



Link to comment
Share on other sites

Go to Admin-->Configuration. Select My Store. Set your email in email address and email from.


Then select email options. Set email transport method to sendmail, email line feeds to LF and send emails to true.


Setting email transport method to smtp is for windows or macos. Linux uses sendmail.

Link to comment
Share on other sites

Thanks for your swift reply.

I tried what you suggested however when using the SMTP email setting this has no effect and mail still comes from admin@localhost.com.


You say that SMTP is only for Windows or MacOS servers, however when using the 'sendmail' setting no mail is sent - which is odd because I can send email using the 'sendmail' command directly from the commandline, also the PHP mail() function has been verified as working using a quick test script.


It would appear that the ideal solution is to have osCommerce use sendmail directly, can you offer any suggestion as to why it may not be working from oscommerce with a vaild sendmail configuration?


Thanks again.

Link to comment
Share on other sites

Hi Jack,

Check the contributions for SMTP add ons, these usually will sovle your problems, SMTP is preferred for Window boxes, but nothing wrong with Linux either.

Can also try the PHP mailer contribution.




Will do. thanks alot.

Link to comment
Share on other sites


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

  • Create New...