Embed JPG image in Outlook

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
keleen
Newbie
Posts: 2
Joined: Fri Mar 07, 2014 6:03 pm

Embed JPG image in Outlook

Post by keleen » Fri Mar 07, 2014 9:39 pm

Hello,
I have the below code but am looking for a way to embed the JPG image into the email body rather than attach. Is there a way to embed from a network location? \\serverlocation\folder\filename.jpg?

Let>SENDMAIL_STATUS=0
Let>subject=Automated Report
Let>me=
Let>myname=
Let>recipients=
Let>body=The Automated Report has finished running.
Let>attachments=\\serverlocation\folder\filename.jpg?
Let>server=
SMTPSendMail>recipients,server,me,myname,subject,body,attachments
Thank you,
Karie

User avatar
CyberCitizen
Automation Wizard
Posts: 721
Joined: Sun Jun 20, 2004 7:06 am
Location: Adelaide, South Australia

Post by CyberCitizen » Sun Mar 09, 2014 12:28 pm

As far as I am aware its not possible via SendMail, I think you would need to automate an email client like Outlook, however I will leave it to Marcus to advise as he seams to come up with some fancy options.
FIREFIGHTER

keleen
Newbie
Posts: 2
Joined: Fri Mar 07, 2014 6:03 pm

Post by keleen » Tue Mar 11, 2014 2:54 pm

Thank you CyberCitizen for taking a look at this. Marcus was kind enough to respond via IM. I'm posting below in case anyone else is interested.
"Marcus: Ok, to do that you'd have to use HTML.
SMTPSendMail doesn't currently support HTML email bodies. It will do in 14.1 Until then you have to use VBScript and Microsoft's CDO to construct and send an HTML email. There's an example in the forum."
Thank you,
Karie

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts