Eric Burton
asked on
EMERGENCY: Need to change sender when using Outlook mailitem object in VB.NET code
Hi everybody,
I am currently using an Outlook mailitem object to send email from within VB.NET. The mailitem object has properties for (To:), (Subject:) and (Attachments), but I don't see any way to change the sender. Is a mailitem object appropriate for this?
Please see attached code example!
Thanks for your help!
I am currently using an Outlook mailitem object to send email from within VB.NET. The mailitem object has properties for (To:), (Subject:) and (Attachments), but I don't see any way to change the sender. Is a mailitem object appropriate for this?
Please see attached code example!
Thanks for your help!
you can use .SenderEmailAddress if you are using outlook 2013 library.
https://msdn.microsoft.com/en-us/library/office/ff868262.aspx
https://msdn.microsoft.com/en-us/library/office/ff868262.aspx
@ yo_bee MailItem.SenderEmailAddres s is read-only not tochange the sender
I cannot say for current versions of Outlook, but way back in 2003, we found out, as you seem to have done, that there was no way to change the sender with Outlook.
We found a low cost SMTP server at www.componentsource.com that was even easier to use than Outlook from VBA code, and that had all the features we wanted. My customer used it for years without any problem.
We found a low cost SMTP server at www.componentsource.com that was even easier to use than Outlook from VBA code, and that had all the features we wanted. My customer used it for years without any problem.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
pls try¨something like this
Open in new window
Regards