Oscommerce is one of the most widely used open source ecommerce shopping cart. It is supported by an open community which is very active. Oscommerce has the option to send mails when a customer registers or places an order. If oscommerce is installed in Linux, sending mails do not require any special configuration. Linux has a send mail command by default which is used by oscommerce to send mails. The same is not the case when oscommerce is installed in windows. When oscommerce is installed in windows, mails are not sent automatically. Certain configurations are to be done in order to send mails.
The first step is to install and configure send mail in windows. Send mail for windows can be downloaded by doing a search in your favorite search engine. Once the download is complete sendmail has to be unzipped to a folder name "sendmail". The next step is to configure sendmail. If the unzipped sendmail directory is checked, one can find a file "sendmail.ini". The following configuration values must be set,
Smtp_server : localhost
Smtp_port : 25
Smtp_ssl = auto
Default_domain=gmail.com
error_logfile=error.log
auth_username = yourid@gmail.com
aut_password = your password to access gmail
pop3_server=
pop3_username=
pop3_password=
force_sender= yourid@gmail.com
force_recipient=
hostname=
Once the sendmail installation is complete, php has to be configured with the send mail path. The sendmail_path entry in the php.ini file must point to the senmail.exe path. Suppose sendmail is in installed in d:\ the the entry should be
Sendmail_path="D:\sendmail\sendmail.exe -t"
Once the sendmail installation is complete, we have to install stunnel for windows. Stunnel for windows can be downloaded by searching the web. Using the installer stunnel can be installed to the required path. Stunnel has to be then configured to work in windows. An ssl certificate has to be created for use with stunnel. Details on creation of ssl certificate can be found here http://www.dylanbeattie.net/docs/openssl_iis_ssl_howto.html.
"stunnel.conf" file can be found in the stunnel installation. The configuration values are defined below
Cert=your certificate name
socket = l:TCP_NODELAY=1
socket = r:TCP_NODELAY=1
debug = 7
output = stunnel.log
client = yes
[pop3s]
accept = 995
connect = 110
[imaps]
accept = 993
connect = 143
[ssmtp]
accept = 127.0.0.1:25
connect = smtp.gmail.com:465
Once stunnel installation is complete apache has to be restarted. Then stunnel has to be started by clicking on run stunnel in the stunnel path. Now oscommerce is configured and ready to send mails.
Send flowers to mumbai using MamboMart
Loading...