Attach A Photo To An Email In Outlook 2011

Microsoft Office for Mac 2011 tutorial: Outlook basics 2 1. Add a new e-mail account You can use Outlook to manage multiple e-mail accounts, including Microsoft Exchange, POP, IMAP, and Windows Live accounts. Before you can send and receive e-mail messages, you first have to set up an e-mail account. Let's set up your e-mail account. Create personalized signatures to attach to your outgoing email messages in Microsoft Outlook 2011 for Mac. Include a personalized message, your favorite quote, your company name and website,.

Attach A Photo To An Email In Outlook 2011 Download

Attach a photo to an email in outlook 2011 online

Attach A Photo To An Email In Outlook 2011 Free

Attach A Photo To An Email In Outlook 2011

Last week we had to send 200 mails using a CSV file. I have created a script that reads the information from the CSV file and add it in the mail. In this blog I stripped the script down to a minimum.

Attach A Photo To An Email In Outlook 2011

It may look like a large script but it is possible to combine the commands.

<#
.SYNOPSIS
This function sends mail that can be included with an image
.DESCRIPTION
Use this script to easily send multiple mails to customers using powershell and use an HTML layout.
.NOTES
if you want to add more images you can copy/paste the embed image and assign a new variable and ID
.LINK
http://www.maartenpeeters.nl
#>
function SendMail
{
#Mail Variables
$EmailFrom = “NoReply@maartenpeeters.nl”
$EmailSubject = “Email including images in HTML”
$smtpServer = “<SMTP Server>”
$SendTo = “<SendToMail>”
$Image = “C:scriptsMailScriptTestImage.png”

#Embed Image
$att1 = new-object Net.Mail.Attachment($Image)
$att1.ContentType.MediaType = “image/png”
$att1.ContentId = “Attachment”

#More information on Mailmessage onhttp://technet.microsoft.com/en-us/library/dd347693.aspx
$mailmessage = New-Object system.net.mail.mailmessage

#Add attachment to the mail
$mailmessage.Attachments.Add($att1)

#Mail body
$body = “<p style=’font-family: Calibri, sans-serif’>
<img src=’cid:Attachment’ /><br />
This is a demonstration mail.
</p>”

#Mail info
$mailmessage.from = $emailfrom
$mailmessage.To.add($sendto)
$mailmessage.Subject = $emailsubject
$mailmessage.Body = $body
$mailmessage.IsBodyHTML = $true
$SMTPClient = New-Object Net.Mail.SmtpClient($SmtpServer, 25)
$SMTPClient.Send($mailmessage)

#Dispose attachments
$att1.dispose()

}
SendMail

Attach A Photo To An Email In Outlook 2011 Version

Any comments or improvements on this script are welcome.

Attach A Photo To An Email In Outlook 2011 Online

Result: