I was trying to find an example that would display a “Friendly name” vs. an “email address” when generating emails using CDOSYS. Here is the code to do this.
Set imsg = Createobject(“cdo.message”)
With iMsg
.To = “John Monday <[email protected]>”
.From = “Steve Friday <[email protected]>”
.Subject = “A Subject Line: ” & Now()
.TextBody = “A Text body message”
.Send
End With
Set imsg = nothing
Other links I found
CDO Programming Tasks
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnmes2k/html/introcdoexch2k.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnmes2k/html/introcdoexch2k.asp
CDO Reference
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dncdsys/html/cdo_roadmap.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dncdsys/html/cdo_roadmap.asp
Sample Chapter 1.21 CDO library
http://www.cdolive.com/procdo.htm
http://www.cdolive.com/procdo.htm
Sample code
http://www.microsoft.com/mspress/books/sampchap/3449.asp
http://www.microsoft.com/mspress/books/sampchap/3449.asp