ATOUTFOX
COMMUNAUTÉ FRANCOPHONE DES PROFESSIONNELS FOXPRO
Visual FoxPro : le développement durable

Forum AtoutFox : Error in using VFPwinsock for sending mail from VFP form.   

Sujet

rss Flux RSS des derniers messages

Vous devez vous identifier pour pouvoir poser une question ou répondre.

lun. 06 août 2018, 05h54
Saurabh
Inde Inde

atoutfox.public.association

Error in using VFPwinsock for sending mail from VFP form.

Respected Senior Members,
I was trying to mail from a form created in VFP9 using the routine VFPwinsock.
For a test try I coded on my send button like-
[ vfp]
If Thisform.CanSendMail
Local loWinSock
loWinSock = Createobject( 'VFP_Winsock_Send_Mail' )
loWinSock.SMTP_host = 'smtp.gmail.com'
loWinSock.From = 'clearcoding@gmail.com'
loWinSock.To = 'saurabh.hom@gmail.com'
loWinSock.Priority = "High"
loWinSock.Subject = "Hello World"
loWinSock.Message = "Hello World"
*loWinsock.Attachment = "c:\temp\mapiecejointe.jpg" && Change This To an existing File On your HD
If Not loWinSock.Send()
? "Error : " + loWinSock.Erreur
Endif
loWinSock = Null
Endif
[/ vfp]

But I got following error message:
Error : <= SGetData : ERROR [530 5.7.0 Must issue a STARTTLS command first. c15-v6sm3265763wmb.2 - gsmtp] -> ERR09 : Expected return was :250

I was told on Foxite forum that this is due to -
'A smtp.monserveurdemail.com use TLS/SLL for comunication.
VFPwinsock class doesn't support TLS/SSL for TCP port 465.'.

I don't have much idea about this.
Since the tool is 100% in VFP I want to use this for mailing. Please help and guide me on the issue.

Journal

Saurabh pense que ce message est la bonne réponse ou qu'il est utile
Saurabh Signale un abus et demande la modération de ce message
Permalink : http://www.atoutfox.org/nntp.asp?ID=0000019165
20 088 messages dans le forum • Liste complète des messages

Publicité

Les pubs en cours :

www.atoutfox.org - Site de la Communauté Francophone des Professionnels FoxPro - v3.4.0 - © 2004-2024.
Cette page est générée par un composant COM+ développé en Visual FoxPro 9.0-SP2-HF3