Setting up vTiger Outgoing Email Server With Mandrill

Multiples SMTP Servers? Are you looking to have one SMTP per user in your vTiger 6? Check out a This add-on

 

One really common feature request from vtiger users is to have a unique outgoing server for each user.

Since vtiger has only one outgoing server and many people use gmail as they smtp server, many of the vtiger’s users have found that all outgoing emails are arriving as they were sent by the user which firstly set up the SMTP Server. This is a gmail restriction that needs to be solved using other provider or allowing gmail to send the emails from each user email address. More on this here…

One alternative that we found is using a generic smtp provider like Mandrill.

What is mandrill?

Mandrill is designed to help applications or websites that need to send transactional emails from Mailchimp Server. Please keep in mind that mandrill is not intended to be used to send email newsletters or blast emails campaigns.

The best part of using mandrill is that you can send up to 12.000 emails a month for free from each account. That means that you are covered for the first users and way beyond.

How to set up vtiger outgoing email server with Mandrill SMTP

Mandrill provides an SMTP server for each account, so all you need to do is to configure vtiger’s outgoing email server using the mandrill credentials.

Mandril smpt vtiger crm

The second part is to modify vTiger core to provide all the information mandrill needs to send out your email. To do that simply modify the following file: modules/Emails/mail.php with the following changes

vTiger email code

Click to Full Version

That’s all.. With this simple modification you can start using the mandrill emails servers for your outgoings emails avoiding any spam filters, blacklist, server issue and the already mentioned gmail rule.

3 Comments:
  1. Hello!
    Great tutorial, do you know if there are more changes with Vtiger 6.1.0 as the mail.php file is different? Thanks!

    • Indeed I made changes on 6.1.0 and emaisl were not reching mandrill. When I use the 6.1.0 original file, emails are sent to Mandrill but only the first one is delivered.
      I looked into API log and found that the others are not delivered as the field “reply to” is not correct and Mandrill doesn’t forward to inbox, it ays rejected.

      Thanks!

      • Hi.. VT6 and 6.1 are not exactly the same so this post is not 100% valid. We need to release and update version.