Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Jun Tangunan
  Where is Jun Tangunan?
 Jun Tangunan
 To: Shaheryar Rashed
  Where is Shaheryar Rashed?
 Shaheryar Rashed
Subject: RE: html text
Thread ID: 393673 Message ID: 393740 # Views: 64 # Ratings: 1
Version: Visual FoxPro 6 Category: Forms
Date: Monday, December 23, 2013 12:28:53 AM         

> Hi Experts!
> i have to make email body with text formatting in a form (which i will send as email body) can anyone guide me where i make it ?
> suppose i have to send following text in email body how i write it in vfp? like :
> "mconame
" + ;
> mconame

Why not simply generate the report and use it as attachment? If you are using FoxyPreview, I believe that email feature is there.

Or if you want to do it as body, then something like this:

Local loOL As outlook.Application , loMail
loOL = Createobject("Outlook.Application")
loMail = loOL.createitem(0)
With loMail
	.subject = "Sample"
	.To = "whatever@gmail.com"
	.Body = "First Line"+CHR(10)+"Second Line"+CHR(10)+"Third Line"
loOl = Null

However, that is in pure text format. I guess for HTML body, then an RTF can be used.



html text Posted by Shaheryar Rashed @ 12/21/2013 9:57:58 AM
RE: html text Posted by Koen Piller @ 12/22/2013 11:33:42 PM
RE: html text Posted by Jun Tangunan @ 12/23/2013 12:28:53 AM
RE: html text Posted by Kulwant Singh @ 12/24/2013 8:08:07 AM
RE: html text Posted by Shaheryar Rashed @ 12/24/2013 8:24:35 AM
RE: html text Posted by Koen Piller @ 12/24/2013 10:00:31 AM