nondrinker
Programmer
Hello,
I am trying to send out an email where the receiver should see a person's name in the from part instead of the email address. This is the code i currently have.
Something like:
Set iMsg = CreateObject("CDO.Message")
Set iConf = CreateObject("CDO.configuration")
Set Flds = iConf.Fields
With iMsg
Set .Configuration = iConf
.To = strTo
.CC = strCC
.FROM = strFrom
.Subject = strSubject
.TextBody = strMessage
.Send
End With
In the strFrom variable, if i try to send the email out by using something like: <Person Name> name@name.com then
the system gives an error. Currently the email goes out only if use name@name.com format only.
Any ideas as to how can i send the message out so that to the receiver it should look like as if it came from "Person Name" instead of "name@name.com". If the email address is also showing thats fine too, but i am just trying to add the "Person Name" part in the From part of the message.
Thank you.
I am trying to send out an email where the receiver should see a person's name in the from part instead of the email address. This is the code i currently have.
Something like:
Set iMsg = CreateObject("CDO.Message")
Set iConf = CreateObject("CDO.configuration")
Set Flds = iConf.Fields
With iMsg
Set .Configuration = iConf
.To = strTo
.CC = strCC
.FROM = strFrom
.Subject = strSubject
.TextBody = strMessage
.Send
End With
In the strFrom variable, if i try to send the email out by using something like: <Person Name> name@name.com then
the system gives an error. Currently the email goes out only if use name@name.com format only.
Any ideas as to how can i send the message out so that to the receiver it should look like as if it came from "Person Name" instead of "name@name.com". If the email address is also showing thats fine too, but i am just trying to add the "Person Name" part in the From part of the message.
Thank you.