Sacheveral
Technical User
I have a routine that sends emails from Access, but I want to specify the 'From' field in the email and it will not seem to let me. Does anyone have any suggestions? The code is:
Set appOutLook = CreateObject("Outlook.Application")
Set MailOutLook = appOutLook.CreateItem(olMailItem)
With MailOutLook
.To = Recips
.From = FromAddress
.Subject = Subject
.Body = Message
.Attachments.Add (FileName)
.Send
End With
For reference my main email account is an Exchange Server, and the account I want to send from (for which I do have 'send from' permissions) is list listed as an additional mailbox.
Many thanks,
Joe
Set appOutLook = CreateObject("Outlook.Application")
Set MailOutLook = appOutLook.CreateItem(olMailItem)
With MailOutLook
.To = Recips
.From = FromAddress
.Subject = Subject
.Body = Message
.Attachments.Add (FileName)
.Send
End With
For reference my main email account is an Exchange Server, and the account I want to send from (for which I do have 'send from' permissions) is list listed as an additional mailbox.
Many thanks,
Joe