FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour TESTSMTP - Enviar imagem???
Posts: 1286
Joined: Mon Feb 25, 2008 02:54 PM
TESTSMTP - Enviar imagem???
Posted: Thu Mar 27, 2008 02:32 PM

Estou usando o FWH802\SAMPLES\TESTSMTP.PRG para enviar uma imagem, porem ao abrir o email, a imagem vem em forma de caracter não como arquivo JPG que enviei???

function SendMail()

local oOutMail, cIP

oWnd:SetMsg( "Sending Internet email..." )

WSAStartup()
oOutMail := TSmtp():New( cIP := GetHostByName( "smtp.fivetechsoft.com" ) )
MsgInfo( cIP )

oOutMail:bConnecting = { || oWnd:SetMsg( "Connecting to smtp.fivetechsoft.com..." ) }
oOutMail:bConnected = { || oWnd:SetMsg( "Connected" ) }
oOutMail:bDone = { || oWnd:SetMsg( "Message sent successfully" ) }

oOutMail:SendMail( "alinares@fivetechsoft.com",; // From
{ "alinares@fivetechsoft.com" },; // To
"It is working!!!",; // Msg Text
"Testing FiveWin Class TSmtp enhancements",; // Subject
{ "imagem.jpg" } ) // attached files

return nil

ubiratanmga@gmail.com

FWH24.04
BCC7.3
HARBOUR3.2
xMate
Pelles´C
TDolphin

Continue the discussion