Jump to content

Recommended Posts

Posted

Hi guys, i would like to write a codding to send email with Bold/Italic text and new paragraph line. Example like below:

 

  Quote

 

HEAD LINE

 

Body Text

 

this is for testing purpose

 

Expand  

 

Each line have 1 gab line.

$oOApp = ObjCreate("Outlook.Application")
       $oOMail = $oOApp.CreateItem ($olMailItem)
       $oOMail.Save
       With $oOMail
         .To = ($to)
         .Subject = $subj
         .HTMLBody = "HEADLINE" & "Body Text" & "this is for testing purpose"
         .attachments.add ($attachment)
        .Send
       EndWith

 

Posted (edited)

Please have a look at my OutlookEX UDF (link can be found in my signature).
Create an HTML mail to add formatting. The _OL_ItemCreate.au3 example script (example 4) explains how to do.

Edited by water

My UDFs and Tutorials:

  Reveal hidden contents

 

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...