I try to send a mail with smtp and it works good only when a attach a file .
In place of receiving the file , the user receive this :
name="c:\dmedi\test.doc"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="TEST.DOC"
here is the code FW25 Clipper 5.3
* ===
procedure VAMAIL()
local oOutM,oOutMail, cIP ,leficj
oOutM := TSmtp():New( cIP := GetHostByName( "smtp.ulg.ac.be" ) )
sysrefresh()
oOutMail := TSmtp():New( cIP := GetHostByName( "smtp.ulg.ac.be" ) )
MsgWait("Mailing ", cIP,1 )
oOutMail:bDone = { || MsgWait("Done","Mailing ",1 ) }
oOutMail:SendMail( "jacquet@tiscali.be",; // From
{ "jacquetlg@tiscali.be" },; // To
"Test mail " ,; // Msg Text
"Essai Mail depuis BMT " , ; // Subject
{"c:\dmedi\test.doc"} ) // attached files
sysrefresh()
RETURN
Thanks for any help .
Philippe Jacquet .