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