Insert image in SMTP email message

Continuing the discussion from Send image through SMTP email body not as an attachment:

Hi, this is the only way that worked for me. I give you the sample file:

2 Likes

Have you tried sending the body as HTML with the image URL embedded in it to pass the image in the body of the mail?

No, I didn’t? How to know the URL of the embedded images?

Same as the above, make the body of mail as HTML and pass the path of the image in the img tag and send it.

Ok, I tried but it didn’t work. The only way I found to send image inside the html body is the above one.

Cool! Will try it .