F
Frank
Hi,
in my outlook configuration there is a second postbox "username2"
where i have full access. Now I want to send mails where the sender is
this second identity and not my own name "MyUsername". In the normal
Outlook send dialog there is a button "From", so that i can choose the
sender ... but how can i do this in VBA?
I programmed it in Excel VBA like this, it works fine, but only
(automatically) with "MyUsername" as sender:
Dim ol, MyMail As Object
Set ol = CreateObject("Outlook.Application")
Set MyMail = ol.CreateItem(0)
MyMail.Subject = "Hello friends"
MyMail.To = "(e-mail address removed)"
MyMail.Body = "Hello again!"
MyMail.Send
What must i change so that the mail sender is "username2"?? I read the
docu, but i find nothing. I tried something with namespace but without
success.
Thanx for any hints and code examples!
Greetings from Frank
in my outlook configuration there is a second postbox "username2"
where i have full access. Now I want to send mails where the sender is
this second identity and not my own name "MyUsername". In the normal
Outlook send dialog there is a button "From", so that i can choose the
sender ... but how can i do this in VBA?
I programmed it in Excel VBA like this, it works fine, but only
(automatically) with "MyUsername" as sender:
Dim ol, MyMail As Object
Set ol = CreateObject("Outlook.Application")
Set MyMail = ol.CreateItem(0)
MyMail.Subject = "Hello friends"
MyMail.To = "(e-mail address removed)"
MyMail.Body = "Hello again!"
MyMail.Send
What must i change so that the mail sender is "username2"?? I read the
docu, but i find nothing. I tried something with namespace but without
success.
Thanx for any hints and code examples!
Greetings from Frank