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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

email

Status
Not open for further replies.

jamesmills

Technical User
Jul 30, 2003
43
0
0
GB
Hey people i have this code so far. In the boy i want to be able to put:

"Somthing like this
With line brakes in it
so i can send
a body
of the email

like this"

''Send account activation e-mail to customer

''set customer address
emailCustomerEmail = "james@sharkeye.co.uk"
''set email subject
emailSubject = "Subject"
''set email body text = ""
emailBody = &quot;main body <br> /n&quot; & _
&quot;james&quot;

DoCmd.SendObject acSendNoObject, , , emailCustomerEmail, , , emailSubject, emailBody

Thanks
 
at the end of each line you want to break at, add:

Code:
strBody = &quot;This would for example be line 1.&quot; & chr(13) & chr(10)

strBody = strBody & &quot;This would for example be line 2.&quot; & chr(13) & chr(10)

strBody = strBody & &quot;This would for example be line 3.&quot; & chr(13) & chr(10)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top