They say you learn something new every day.

Outlook Items (31/08/2012)

I recently needed to load an eMail in Outlook with a particular set of users in the to field. I was going to do it with a “mailto:” link, but then discovered this neat bit of vbscript for automating sending eMails with Outlook.

FUNCTION SendEmail()

 set objOutlk = createobject(“Outlook.Application”)
 set objMail = objOutlk.createitem(0)
  objMail.to = to
  objMail.display
 set objMail = nothing
 set objOutlk = nothing

END FUNCTION

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Tag Cloud

%d bloggers like this: