Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Modules / DAO / VBA / January 2006

Tip: Looking for answers? Try searching our database.

Specify sender address usinf with mailoutlook

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
sariahdog - 20 Jan 2006 15:14 GMT
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?
sariahdog - 20 Jan 2006 15:55 GMT
I found an earlier post thatI believe has what I am looking for,

.sentonbehalfofname

> 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".
[quoted text clipped - 22 lines]
>
> Any ideas?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.