Nicolas57 Posted July 8, 2021 Share Posted July 8, 2021 Hi community In MS Outlook I'm trying to send an email from a functional box ( do not know if term is well translated ), meaning my personal box is firstname.name@domain.fr and I'd like to send a mail from it-group@domain.fr ( screenshot attached ) As I am not very skilled with OL UDF, i just pick somewhere code below that fits to my needs : send mails with HTML body Now I need to change the" From" field to pick up one from the combo list 1° Is there a way to get the OL list of "From" addresses ? ( _OL_AccountGet only returns my personnal address ) 2° What is the way to set "From" field to something else than my personnal adress ? I tried such code without any success Local $oOutlook = _OL_Open ( ) Local $oMail = _OL_ItemCreate ( $oOutlook, $olMailItem, "", "", "Subject=" & $Object ) $oMail.BodyFormat = $olFormatHTML $oMail.GetInspector $Signature = $oMail.HTMLBody $oMail.HTMLBody = "test" & $Signature $oMail.To = $Dest ; 1st try = fail ;$oMail.SenderEmailAddress = "it-group@domain.fr" ; 2nd try = fail ;$oMail.From = "it-group@domain.fr" _OL_ItemSend ( $oOutlook, $oMail ) Any help appreciated Regards Link to comment Share on other sites More sharing options...
water Posted July 8, 2021 Share Posted July 8, 2021 This post might help: My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
Nicolas57 Posted July 9, 2021 Author Share Posted July 9, 2021 If i well understood, those questions have been posted in the right topic you initiated This topic can be closed or deleted regards Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now