OsCommerce supports the use of SMTP to send email, but does not allow specification of a username and password for outgoing authentication which is required when sending mail from our servers. If you wish to use SMTP to send mail, this guide will walk you through how to set up SMTP with your shopping cart. It is best to use an email address that you created in your cPanel on our server for the SMTP setup, but you can use your outgoing email settings for most other mail providers to send emails.
First thing to do is log in to the administrative panel, then go to Configuration ~> Email options and choose "SMTP" as the Transport Method.
Also verify these other settings:
You'll need to install a 3rd party script called phpMailer. As with any other time, please make a backup copy of any files you are changing in case something goes wrong!
1. Download a copy of phpMailer:
Direct Download of PHPMailer
2. There are two files, class.phpmailer.php and class.smtp.php. Open the FTP site to the OScommerce installation, then upload them both into these folders:
3. There are two files in OsCommerce that you need to edit:
.../includes/classes/email.php
.../admin/includes/classes/email.php
4. In the email.php file, locate this section: (line 519)
5. You'll need to comment out some of these lines, so they look like this:
6. Then copy and paste this code directly below those lines. Be sure to change the Host, Username, and Password fields to match the outgoing mail server. When sending from our systems, please just use 'localhost' as the host, and your entire email address as the username.
7. This needs to be done for both email.php files in order to get the user-side and back end emailing to work. There is a sample email.php available here: http://www.v-nessa.net/imh_files/email.phps
Email: | support@WebHostingHub.com | Ticket: | Submit a Support Ticket |
---|---|---|---|
Call: |
877-595-4HUB (4482) 757-416-6627 (Intl.) |
Chat: | Click To Chat Now |
We value your feedback!
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
new! - Enter your name and email address above and we will post your feedback in the comments on this page!