LPARAMETERS tcFromEmail, tcFromName, tcTo, tcCc, tcBCC, tcSubject,
tcMessage, tcAttachment
DECLARE integer SendMail IN "C:\afp\wwipstuff.dll" ;
STRING cFrom, ;
STRING cFromName, ;
STRING cTo, ;
STRING cCC, ;
STRING cBCC, ;
STRING cSubject, ;
STRING cMessage, ;
STRING cAttachment,;
STRING cMailHost,;
STRING @cError,;
STRING cContentType
lcError = SPACE(513)
lnresult = SendMail( tcFromEmail, tcFromName, tcTo, tcCc, ;
tcBCC, tcSubject, tcMessage, tcAttachment, ;
"mail.YOURSERVER.com" , @lcError , "text/plain")
Please enter your own mail server into the function call. Moer information and developer's license of wwIPstuff is available at www.west-wind.com.
But there are more possibilities to send a mail with Active FoxPro Pages. Althought this article is about AFP 3.0 the same concept is useable with AFP 2.x.