Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

Send email via website in way of SMTP on linux server

phpmailer smtp php.ini sendmail e-mail transport method

  • You cannot reply to this topic
No replies to this topic

#1 lei_tx

  • Community Member
  • 11 posts
  • Real Name:Terry
  • Gender:Male

Posted 03 September 2011, 10:39

Hello Gentleman,

I am a user of oscommerce for about 3 year.
I want to share my experience on set up of SMTP mail sending method. because I searched a lot before make it work on my server but can not find a working contribute.

My server is Linux CentOS, PHP, nginx, mysql.
and don't installed Sendmail
So I have to find a way to send email via the website's php mail function.

my experience is, you can not config php.ini to make website's email work on linux server.

you must find a third-party developed contribution, I introduce PHPMailer
download it from http://code.google.c.../downloads/list

install very easy. just follow the example from README

[HOW TO DO]
at your code editor, open includes/classes/email.php
find if (EMAIL_TRANSPORT == 'smtp') { at line 519
add the example code from README file

and change coresponding line. like host, username, password.

at last, comment out return mail

go to your webpage and have a try.
that's all.



Thanks the developer.

I just want to share this.

Have a nice day.

Edited by lei_tx, 03 September 2011, 10:45.