Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Blat & stunnel
Message
 
À
08/05/2015 13:41:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01619557
Message ID:
01619578
Vues:
85
Pretty sure those settings are not correct. The server port AFAIK is smtp.gmail.com:587. You'll also need username and password passed.


Here's an example of using wwSmtp (part of West Wind Client Tools) to send mail to GMail:
DO wwSmtp && load libraries

LOCAL loSMTP as wwSmtp
loSmtp=CREATEOBJECT("wwSmtp")
loSmtp.nMailMode = 0  && 2 - wwIPStuff mode (Win32 - default)   0 - .NET wwSmtp

loSmtp.cMailServer="smtp.gmail.com:587"
loSmtp.lUseSsl = .T.
loSmtp.cSenderEmail="rstrahl@mydomain.com"
loSmtp.cSenderName="Mr. Testa"


*** Optional Username
loSmtp.cUsername = "ricks@gmail.com"
loSmtp.cPassword = "secret"


loSmtp.cRecipient="somebody@sweat.com,another@bust.com"
loSmtp.cCCList="rstrahl@east-wind.com,looser@nobody.com"
loSmtp.cSubject="wwSmtp Test Message"

*** Optionally specify content type - text/plain is default
loSmtp.cContentType = "text/html"  
loSmtp.cMessage="Who said this had to be <b>difficult</b>?"

*** Optionally provide an alternate content type or plain text fallback
loSmtp.cAlternateContentType = "text/plain"
loSmtp.cAlternateText = "Plain text can go here."

*** Optionally send file attachments
loSmtp.AddAttachment("c:\temp\somefile.pdf")

llResult = loSmtp.SendMail()      

IF !llResult
   Wait window loSmtp.cErrorMsg
ENDIF
+++ Rick ---



>Hi,
>
>I have been using blat successfully for a while now but I now need to use it to send email which requires SSL/TSL (I am using gmail as a test). So I've installed stunnel and configured it like this:
>
>client = yes
>[ssmtp]
>accept = 25
>connect = smtp.gmail.com:465
>
>
>Unfortunately when I send my email it's not working. I get this in the log file:
>
>2015.05.08 13:33:35 LOG7[4]: Service [ssmtp] started
>2015.05.08 13:33:35 LOG5[4]: Service [ssmtp] accepted connection from 127.0.0.1:54592
>2015.05.08 13:33:35 LOG7[4]: SSL state (accept): before/accept initialization
>2015.05.08 13:34:05 LOG3[4]: SSL_accept: Peer suddenly disconnected
>2015.05.08 13:34:05 LOG5[4]: Connection reset: 0 byte(s) sent to SSL, 0 byte(s) sent to socket
>2015.05.08 13:34:05 LOG7[4]: Local socket (FD=596) closed
>2015.05.08 13:34:05 LOG7[4]: Service [ssmtp] finished (0 left)
>
>So after 30 seconds the Peer suddenly disconnects.
>
>Any ideas what I need to do?
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform