I tried many ways but image still does not shown out in the BODY email , keep appear as "X" icon
Appreciate if any one can help .
this is my path image :"C:\Users\cc\AppData\Local\Temp\Picture 2.jpg"
Here my file:
I tried many ways but image still does not shown out in the BODY email , keep appear as "X" icon
Appreciate if any one can help .
this is my path image :"C:\Users\cc\AppData\Local\Temp\Picture 2.jpg"
Here my file:
This works for me:
Replace bolded X for '<' as firewall blocks html code.With objMail .To = "[email protected]" .Subject = "Your picture" .Attachments.Add myPath & FileName1, 1, 0 .HTMLBody = "Xhtml>" & _ "Xp style=""text-align:center"">Hi,<br>As you request</p>" & _ "Xp style=""text-align:center""><img src=""cid:" & FileName1 & """ height=520 width=750></p>" & _ "X/html>" .display End With
If you want to insert picture by IMG in html code, you have to add it into email.
Last edited by KOKOSEK; 05-06-2021 at 10:32 AM.
Happy with my answer * Add Reputation.
If You are happy with solution, please use Thread tools and mark thread as SOLVED.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks