Send Email From

Hello,
I'm using "MS Outlook Email VBO", how could I setup "Email From" for sending emails ? It should be variable .
Could I copy standard object and change any code in there to make ti works or there is any other way ?
Thanks.
Br.
Marco.
 
Last edited:
Hi,
tried myself :) ... copied and modified "Send email" object as follow. Works!
If [From] <> "" Then
Dim fromAddress = Trim([From])
Dim recipient = mail.Recipients.Add(fromAddress)
recipient.Resolve 'Attempts to resolve a Recipient object against the Address Book.
If recipient.Resolved Then recipient.Type = OlMailRecipientType.olOriginator
mail.SentOnBehalfOfName = fromAddress 'Returns a String indicating the display name for the intended sender of the mail message. Read/write

End if
 
Top