Sign in to follow this  
Followers 0
mbkowns

_INetMail Formatt $body multilined

3 posts in this topic

#1 ·  Posted (edited)

I am sending email using _INetMail($address, $subject, $body) Everything works great but I would like to make it multilined on the body variable.

If I set $body="THIS IS SOME TEXT IN MY EMAIL" it works great but my signature is not included in the email even though it is setup to include one everytime. I am using outlook 2003 for sending email.

So what I would like $body to represent is this

$body="

THIS IS SOME TEXT IN MY EMAIL

SUPERMAN

CELL(999)999-9999

FAX(999)999-9991"

#include <INet.au3>
#include <File.au3>

$var = IniReadSection("C:\a.ini", "NEW-WO")
If @error Then 
    MsgBox(4096, "", "Error occurred, probably no INI file.")
Else
    For $i = 1 To $var[0][0]

$Address = "email@test.com
$Subject = "W.O. #" & $var[$i][1]

$Body = ""



 _INetMail($address, $subject, $body)

    Next
EndIf
Edited by mbkowns

Share this post


Link to post
Share on other sites



$body=  @CRLF & @CRLF & _
                "THIS IS SOME TEXT IN MY EMAIL" & @CRLF & _
                @CRLF & _
                "SUPERMAN" & @CRLF & _
                "CELL(999)999-9999" & @CRLF & _
                "FAX(999)999-9991"

???

Share this post


Link to post
Share on other sites

That was exactly it I just wasn't sure about page breaks mostly a DUH moment for me...

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0