Hi,
I am trying to embed an image in my html mail body using as follows:

<img src="/muc/sites/default/files/Applicant2.jpg" />
Hello

But mail is not being sent. Error:"Message body empty." However, if I use absolute path like

<img src="http://localhost/muc/sites/default/files/Applicant2.jpg" />
Hello

Mail is being sent but to my gmail account, but image is not visible. As it becomes a remote content. I have read all readme.txt, done googling etc. but didn't find any resolution.

Kindly help me out.

CommentFileSizeAuthor
Mimemail_image.JPG40.59 KBsachin.lal
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

sachin.lal created an issue. See original summary.

chrlvclaudiu’s picture

Status: Needs work » Closed (works as designed)

Hi,

Is this http://localhost/muc/sites/default/files/Applicant2.jpg the URL you're sending within the email ?
If so, then there's no way the browser will find this image as it's an place not accessible from the Internet. Replace localhost with an URL which is visible from the Internet.

Hope this helps.

Claudiu