If you need to embed an image into a SharePoint outgoing email:
- Install http://spdactivities.codeplex.com/ for 2007 OR http://spdactivities2010.codeplex.com/ for 2010
- Open SharePoint Designer and create a workflow variable named emailBody
- In the variable, add the following at the very beggining, replacing Myimage.jpg with the name of your image:
<head>
<meta name="content-disposition" content="inline; filename=Myimage.jpg">
</head>
- Format your email, and then to insert the image, create a div tag at the bottom of the email string:
<div style="text-align: center;">
<img src="Myimage.jpg" alt="myimagelogo" />
</div>
- Add the action: Send Email with List Item Attachments
- Attach the image in the activity, with the same name as used above (Myimage.jpg)
- In mine, I always want to attach the same image in every outgoing email, so I uploaded an image to a SharePoint document library and I attached the image based on the specific title it contained
- In the email body of the action, add the workflow variable: emailBody
- Save, publish and test it out!
I tried and it work well in Outlook. How can we have this to work let say we want to send the e-mail to an outlook.com or gmail.com account. With these kind of account, the file doesn't show... It shows only as an attachment.
ReplyDelete