Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sending an email in foxpro
Message
From
17/12/2003 14:08:03
 
 
To
17/12/2003 09:12:21
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00859857
Message ID:
00860036
Views:
18
go to www.west-wind.com. Look at the WIPstuff class. It allows you to send email directly from a VFP app. You can assign the return address via a property, variable or hard code it.

example:

PROCEDURE p_sendemail
parameters lcFileName,lcEmailAdr, lcSenderEmail

*-- send Email
set classlib to wwipstuff additive

loIP = createobject("wwIPStuff")

loIP.cmailserver = "rollpak.com"
loIP.csenderEmail = lc_SenderEmail
loIP.csenderName = "Rollpak Customer Service"

loIP.cRecipient = lc_emailadr

loIP.csubject = "Invoice Delivery"

In this case the parameters are as follows:
lcFileName is the name of the PDF attachment to send
lcEmailAdr is the email address(s) of the receipent(s)
lcSendEmail is the return email address



We use this to email invoices to our customers. Works very well

Alan Wyne
IS Manager
Rollpak Corp
Previous
Reply
Map
View

Click here to load this message in the networking platform