Specify sender address usinf with mailoutlook

S

sariahdog

I'm using VBA 6.3 to write code for an action button on an Access form. When
pressed, the code formats an outlook mail message using "with mailoutlook".
The email forms just fine except for the sender address, I can't find any way
except using sendkeys for this. As I'm sure you can guess, this isn't a very
good solution. I'd like use an actual function or variable to set the sender
as I have 3 0r 4 mailboxes I can send from and most often my default is not
what I want to use. Below is part of my current code that works just fine:

' compile email message


With mailoutlook
.Importance = aryMailImportance(CInt(strMailImportance))
.To = mailTo
.Subject = mailSubject
.BCC = mailBCC
.HTMLBody = mailBody

.display
End With

Next is what I'm using to set the sender address that I would like to change:

SendKeys "%R", True
SendKeys "ISS"

Any ideas?
 
S

sariahdog

I found an earlier post thatI believe has what I am looking for,

..sentonbehalfofname
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top