Carlos Mora - hotmail lib

Carlos Mora - hotmail lib

Postby MGA » Sun May 06, 2018 8:58 pm

Amigo Carlos Mora,

existe uma LIB para enviar email via hotmail?

é possível compartilhar?
ubiratanmga@gmail.com

FWH18.02
FWPPC
Harbour/xHarbour
xMate
Pelles´C
TDolphin
MGA
 
Posts: 1238
Joined: Mon Feb 25, 2008 2:54 pm
Location: Brasil/PR/Maringá

Re: Carlos Mora - hotmail lib

Postby Carlos Mora » Mon May 07, 2018 9:18 am

Hola SGS,
no he probado con hotmail pero creo que CDO puede funcionar. ¿Algún colega del foro usa CDO con hotmail? Siendo ambos de Microsoft, apostaría a que sí.

Nombre del servidor SMTP smtp-mail.outlook.com

Puerto SMTP 587

Método de cifrado SMTP STARTTLS

Code: Select all  Expand view

loCfg := CREATEOBJECT( "CDO.Configuration" )
WITH OBJECT loCfg:Fields
   :Item( "http://schemas.microsoft.com/cdo/configuration/smtpserver" ):Value := "smtp-mail.outlook.com"
   :Item( "http://schemas.microsoft.com/cdo/configuration/smtpserverport" ):Value := 587
   :Item( "http://schemas.microsoft.com/cdo/configuration/sendusing" ):Value := 2
   :Item( "http://schemas.microsoft.com/cdo/configuration/smtpauthenticate" ):Value := .T.
   :Item( "http://schemas.microsoft.com/cdo/configuration/smtpusessl" ):Value := .T.
   :Item( "http://schemas.microsoft.com/cdo/configuration/sendusername" ):Value := "yourAccount@outlook.com"  // <---- change this
   :Item( "http://schemas.microsoft.com/cdo/configuration/sendpassword" ):Value := "yourPassword" // <---- change this  
   :Update()
END WITH

loMsg := CREATEOBJECT ( "CDO.Message" )
WITH OBJECT loMsg
   :Configuration = loCfg
   :From = "yourAccount@outlook.com"  // <---- change this
   :To = "destination@mailserver.com" // <----- direcci¢n de correo del destinatario
   :Subject = "Prueba con CDO"
   :TextBody = "Este es un mensaje de prueba con CDO desde Harbour."
   :Send()
ENDWITH
 
Saludos
Carlos Mora
http://harbouradvisor.blogspot.com/
StackOverflow http://stackoverflow.com/users/549761/carlos-mora
“If you think education is expensive, try ignorance"
Carlos Mora
 
Posts: 989
Joined: Thu Nov 24, 2005 3:01 pm
Location: Madrid, España

Re: Carlos Mora - hotmail lib

Postby MGA » Wed May 09, 2018 10:27 pm

Vou testar obrigado.
ubiratanmga@gmail.com

FWH18.02
FWPPC
Harbour/xHarbour
xMate
Pelles´C
TDolphin
MGA
 
Posts: 1238
Joined: Mon Feb 25, 2008 2:54 pm
Location: Brasil/PR/Maringá


Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 34 guests