Does anyone know if it is possible to create an email with different Recepient, Different Subject line but the same body. Mail merge is not helping at this time.
This surely can be done via scripting, I don't believe Outlook provides such feature actually.
Hereafter a rapid example that shows how to send an email from script.
Create a file named C:emails.txt with lines as:
<b>target@emailserver.com#SubjectLine</b>
Thenrun the script below that will parse the lines in the script and split them in two parts: target address and subject line.
<pre>
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.OpenTextFile("C:emails.txt", 1)
Do Until objFile.AtEndOfStream
Extractinfo = Split(objFile.ReadLine,"#")
SendMail Extractinfo(0), Extractinfo(1)
i = i + 1
Loop
objFile.Close
Sub SendMail(target,subject)
Set objEmail = CreateObject("CDO.Message")
objEmail.From = "admin1@fabrikam.com"
objEmail.To = target
objEmail.Subject = subject
objEmail.Textbody = "Server1 is no longer accessible over the network."
objEmail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
objEmail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserver") = _
"smarthost"
objEmail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
objEmail.Configuration.Fields.Update
objEmail.Send
</pre>
***********
Simple solution? Copy the body and paste in into a new mail message and add the recipient and subject you want. :-)
Last Wiki Answer Submitted: April 10, 2009 4:09 pm by alessandro.panzetta9,695 pts.
If you live outside the United States, by submitting your email address you consent to having your personal data transferred to and processed in the United States.