Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using VFP 6 with Outlook
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 6
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01009195
Message ID:
01009203
Views:
24
You can build a body of email in HTML. This way you can apply whatever formatting you want.
loEmailItem.HtmlBody = lcHtmlBody
>This is a sample code piece we are using to send email to Outlook from VFP 6.
>How do we add information about the font, the size and color for loEmailItem.Body (next to last line, below)
>loApp = CREATEOBJECT("Outlook.application")
> loEmailItem = loApp.CreateItem(0)    && MAILITEM
> loEmailItem.Recipients.Add(ThisForm.cURL)      &&Uses the Recipients colleection
> loEmailItem.Subject = This.Parent.Txtsubject.Value
> loEmailItem.Importance = 1      && IMPORTANCENORMAL
> loEmailItem.Body = This.Parent.EdtNotes.Value
> loEmailItem.Send
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform