Great reccomendation - SendSmtpEmail.PRG is probably one of the most valuable downloads the community has access to. I wonder who wrote it. I keep thinking it was Rick, ER or David F..
CDO will extract the desktops SMTP server name and desktop mail address - SendSmtpEmail takes care of the rest - it should be there for most OS versions:
oCDO=CREATEOBJECT('CDO.Message')
xCFG=oCDO.Configuration
IF xCFG.Fields.Count>12
ulCDOField13=xCFG.Fields(13).Value
ulCDOField15=xCFG.Fields(15).Value
ELSE
MESSAGEBOX([Outgoing email account is not installed.])
ulCDOField13=[NoEmailAccount@YourComputer.com]
ulCDOField15=[NOSMTPSERVERNAME]
ENDIF
>Alessio,
>
>Maybe this will help:
>
>
http://fox.wikis.com/wc.dll?Wiki~SendSmtpEmail>
>
>>Till now I've been using a MAPI based class to send email with VFP.
>>Now I'm asked to send them using SMPT.
>>I tried with some classes but i couldn't do it.
>>Anyone knows something about that ?
>>Is there any Free and simple control to use ?
>>
>>Thx
>>Alessio
Imagination is more important than knowledge