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

Change format of email text via code

Status
Not open for further replies.

Kunal

Programmer
May 25, 2001
20
CA
The following is a sample of a code I use to generate and send a email, it places the text into the body of the email itself as opposed to just an attachment. Now this all works fine but am now looking to jazz the email up by adding some formatting to the text i.e font, size, colour, boldness. Now I'm not suere of this is possible and if so how to do this by code as such I would be greatful if any can provide some advise on this and if possible even change my code as an example.

Many thanks

Kunal


Function testmail()
Dim emailtxt As String, db As Database
Set db = CurrentDb()
emailtxt = emailtxt & "Hi" & Chr(13) & Chr(13)
emailtxt = emailtxt & "This is a test email." & Chr(13) & Chr(13)
emailtxt = emailtxt & "Regards," & Chr(13)
emailtxt = emailtxt & "Kunal" & Chr(13)
DoCmd.SendObject , "", "", "joe@joebloggs.com ", "", "", "Test Email ", emailtxt, False, """"""
End Function
 
Don't
Keep it Simple
you don't know who has what e-maIl program on the other end DougP, MCP

Visit my WEB site to see how Bar-codes can help you be more productive
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top