How to Configure the Email Options in TomatoCart

Some users in the TomatoCart community face the problem to send the email to the customer. We will show you in this article how to manage the TomatoCart email configurations. There are two methods to setup your email configurations:

Emails Options

  • If the cart is not configured yet, the “Wizard Installation” windows should be loaded and active as accessing your admin panel. The Wizard is in three steps. The second step shown in the figure 1, is configuration of the E-Mail options.Email Configuration in Installation WizardFigure 1. TomatoCart Wizard Installation
  • Even if you don’t enter the email configurations in the wizard installation, it is also possible to configure it under Configuration -> Configuration -> Email Options as shown in Figure 2:Email OptionsFigure 2. Email Options

To change the details, click the fields under the column header of “Value”.Some are set to either True or False.

  • Email Transport Method

    1. Sendmail

      TomatoCart is able to send emails containing HTML to the customer. Sendmail is a Unix method of sending mails while SMTP is used mostly on Windows/Mac servers. Use SMTP if the webserver is a Windows server, and Sendmail if it is a Unix one. To ensure the correct functioning of the emails to be sent to the customers, the following settings need to be set.

      E-Mail Transport Method = Sendmail

      E-Mail Linefeeds = LF

    2. SMTP

      An SMTP mail server is most commonly used when hosting websites on Windows based servers.
      To ensure the correct functioning of the emails to be sent to the customers, the following settings need to be set.

      E-Mail Transport Method = SMTP

      E-Mail Linefeeds = CRLF

  • Email Linefeeds

    Email Linefeeds defines the character sequence used to separate mail headers. Unix/Linux uses LF alone to separate lines (new line character) but Windows uses a combination of CR & LF ( CRLF Line feed).
    Set to LF if you are on a Unix/Linux server and set to CRLF if you are on a Windows server.

  • SMTP Server

    Enter the domain name of your email account server. For example, if you are using the Gmail , this configuration should be smtp.gmail.com.

  • SMTP Server Port

    Enter the port of SMTP server. For example, if you are using the Gmail , this configuration should be 465.

  • SMTP Username

    Enter the account email address. For example, if you are using the Gmail , this configuration should be your gmail account.

  • SMTP Password

    Enter the email account password. For example, if you are using the Gmail , this configuration should be your gmail account password.

  • Use MIME HTML When Sending Emails

    Sending MIME type determines the content of mail like txt/html, txt/xml, etc. Set to true for HTML emails and false for pure text emails.

  • Verifying Email Addresses through DNS

    TomatoCart is able to verify email addresses by contacting the name server for a domain to ensure that it is setup to receive emails. This gives a good check to ensure invalid email addresses can’t be inputted.

    Since all the email addresses contain the domain name (@domain.com), the existence of the domain name can be verified to make sure to some extent that the email ID given by the user is valid. This is done through ‘nslookup’ command; however, this may not work on Windows so keep it false on Windows based servers.

  • Send Emails

    Set to True to send emails to the customers when they register or checkout after purchase and set to False to disable the sending of emails to customers.

Wrong configuration result in sending email failed

Note: If you are using the smtp to send the email, ensure that the E-Mail Address and E-Mail From under Configuration -> Configuration -> My Store is same as the SMTP Username configured in the Email Options.

My Store Configuration

Figure 3. E-Mail Address and E-Mail From under Configuration -> Configuration -> My Store

Modify the TomatoCart email class

If you are using the old TomatoCart edition rather than the v1.1.8, it is necessary to modify the TomatoCart email class as follows:

Go to includes/classes/mail.php and find the following line:

$mail->SMTPAuth = true;

Then, add the following line after the line:

$mail->SMTPSecure = “ssl”;

This issue has been fixed in TomatoCart 1.1.8.

Customize the email content

If you wish to customize the email content, please modify the content under Admin Panel -> Tools -> Email Templates.

Customize the email content

Figure 4. Customize the email content

Looking for quality TomatoCart Web Hosting? Look no further than Arvixe Web Hosting!

Tags: , , , , , | Posted under TomatoCart | RSS 2.0

Author Spotlight

Jack Yin

Jack Yin

TomatoCart Developer & Co Founder - Arvixe Web Hosting / TomatoCart Community Liaison

One Comment on How to Configure the Email Options in TomatoCart

  1. Jack Yin Jack Yin says:

    After modify the TomatoCart email class , if you still can’t send the email, please find the following line:

    $_content_transfer_encoding = ’7bit’,

    Replace the line with: $_content_transfer_encoding = ’8bit’,

Leave a Reply

Your email address will not be published. Required fields are marked *


4 − 3 =

You may use these HTML tags and attributes: <a href="" title="" rel=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>