Hello all,
I am getting problem to set "from address" in outlook mail item. My task is to copy mails from a existing mailing system ( which stores all the mail in SQL server database) to outlook.
While creating the mail, everything works fine except i can not assign from address.
After creating a mail, when viewed in outlook, i can not see the from address.
Any idea???
Regards
Bishnu
Below is my code
-----------------------------
Set objNewMail = golApp.CreateItem(olMailItem)
With objNewMail
.Body = "hello"
Set a = .Recipients.Add("
[email protected]")
a.Type = olOriginator
Set a = .Recipients.Add("
[email protected]")
a.Type = olTo
.Subject = "hello"
.Save
.Move gnspNameSpace.GetDefaultFolder(olFolderInbox)
End With