I am still trying to use something other than my default e-mail to send invoices. This code should send an e-mail from my other e-mail.
An e-mail is created, but it comes from my default address. I can generate an e-mail from the firstname.lastname@example.org address manually. What I am doing wrong here?
Sub testEmail() Dim oLook As Object Dim oMail As Object Set oLook = CreateObject("Outlook.Application") Set oMail = oLook.CreateItem(0) With oMail .SendUsingAccount = "email@example.com" .to ="<personal e-mail address>" .body = "Test Message" .subject = "Test" .Send End With End Sub