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:
- 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.Figure 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:Figure 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
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
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 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.
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.
Enter the account email address. For example, if you are using the Gmail , this configuration should be your gmail account.
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.
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.
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.
Figure 4. Customize the email content
Looking for quality TomatoCart Web HostingArvixe Web Hosting!