Show inline image in Auto Responder email from cPanel

Today I am going to share a nice trick that I learnt regarding "How to add inline image to the Auto Responder email sent from cPanel"

Every one running a website might have setup an Auto Responder for inquiry email that are sent to them. The same can be very easily achieved using the "Auto Responders" feature in cPanel


But the problem with setting auto responds using it is that though we can send html responses; there is no way to embed an image in the email being sent. Most of us would love to have the logo of our company in the auto response mail for more professional appearance.

This is how the trick to achieve this goes,
Step 1
Create an email with image etc and the text that you want in the auto response using your favorite email application.

Step 2
Send the email to your GMAIL account. I used gmail cause the next step is easier using it. I tried yahoo but had difficulty figuring things

Step 3
Open the email in gmail and select the option "Show Original" to view the email as text with full details. The option  "Show original" can be found in the drop down at the top right corner of the email.


Step 4
In the text view of your email scroll down to the section where you see the details like From , To, Message Id, Subject etc,..


Take note of things I have highlighted in the attached screenshot above.

Step 5
Create an Auto Responder email in cPanel as normal.

Step 6
Open up Putty; Connect to your hosting server and navigate to following folder i.e.
/home/username/.autorespond

There you might find a file corresponding to the Auto Responder email that you have created something like this i.e. something@somedomain.com
Open this file using the Vi editor and two these two things,

  • Replace the content type line with the content type line copied from "Original" version of email in gmail. The line is highlighted in green in the screen shot in step 4 (Content-Type text)
  • Then replace everything after the subject line in the vi editor with the "Mail-Body" (marked in blue)  in the original text version of mail in gmail.


Step 7

Save and close the Vi editor. And test the hard work that you have done..
The auto response will have the logo of you company embedded in the response making it look more professional and authentic.


NOTE: Once you have done this activity; please never open the auto response email in cPanel else the settings will be reset and you will have to repeat the activity all over again.

Cheers and Have fun!!!





Courtesy goes to the member Sneader at "http://forums.cpanel.net/f43/trick-allow-attachment-auto-responder-240362.html"

0 comments:

Post a Comment