Dear All,
Please Help me , I need a VBA code to Put certain E-mail in From field before sending any E-mail Automatically
Dawy
Dear All,
Please Help me , I need a VBA code to Put certain E-mail in From field before sending any E-mail Automatically
Dawy
Put E-mail In From Field
JamieHiggins
You can use the "SendOnBehalveOfName" property:
Sub MailMe()
Dim outApp As Outlook.Application
Dim outMail As Outlook.MailItem
Set outApp = CreateObject("outlook.Application")
Set outMail = outApp.CreateItem(olMailItem)
outMail.SentOnBehalfOfName = "It'sMe@mail.com"
outMail.To = "1@2.3"
outMail.CC = "4@5.6"
outMail.Subject = "Test"
outMail.Body = "This is a test mail"
outMail.Display
End Sub