m0tSiE
asked on
Send FROM using OutMail?
Hi,
I am currently using the attached code to send an email via outlook when a button is clciked, however it doesnt recognise the .From field.
Is there a way around this so I can send from a certain mailbox?
Thanks,
Paul.
I am currently using the attached code to send an email via outlook when a button is clciked, however it doesnt recognise the .From field.
Is there a way around this so I can send from a certain mailbox?
Thanks,
Paul.
With OutMail
.From = "me@email.com"
.To = DestinationEmail
.CC = ""
.BCC = "email@email.com"
.Subject = "Test Message"
.Body = strbody
.htmlbody = strbody
.send()
End With
ASKER
Thanks emoreau,
The problem is that I am sending via an exchange server, therefore I dont have any SMTP details to add.
The problem is that I am sending via an exchange server, therefore I dont have any SMTP details to add.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Cheers.
have a look at http://www.emoreau.com/Entries/Articles/2007/09/Using-SystemNetMail.aspx to be introduced to the System.Net.Mail namespace