Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sending an email in foxpro
Message
De
17/12/2003 14:08:03
 
 
À
17/12/2003 09:12:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00859857
Message ID:
00860036
Vues:
16
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform