Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Outlook Body Text

Status
Not open for further replies.

Gianricus

Programmer
Apr 2, 2003
62
IT
Hi, i have create one e-mail with this code:

Dim olApp As Object
Dim olItem As Object
Dim olAttachments As Object
Dim textbody as string

Set olApp = CreateObject("Outlook.Application")
Set olItem = olApp.CreateItem(olMailItem)
Set olAttachments = olItem.Attachments


textbody = "The body of the e-mail"
olAttachments.Add destination, olByValue

olItem.Recipients.Add "inserire@destinatario.it"
olItem.Subject = "Halo"
olItem.Body = textbody
olItem.OriginatorDeliveryReportRequested = False
olItem.ReadReceiptRequested = False
olItem.Send

Set olApp = Nothing
Set olItem = Nothing

In body text i have write one string var (textbody),
but how can i simulate the return command between 2 or 3 string var?

Thanks
Bye
 
Something like this ?
olItem.Body = textline1 & vbCrLf & textbline2


Hope This Help, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top