Hi

I use CDO to send emails via my Gmail address and it works just sweet
When I try the same with an email address some...@outlook.com, it fails
every time with a message The transport failed to connect to the server
(error 1429)

With Gmail, the port number is 465. From my research, Outlook.com uses 587
or 25
I think Outlook requires TSL but I don't see that option with CDO
I've tried the smtpserver as smtp-mail.outlook.com as well as
smtp-mail.live.com

This same process (below) works well with an internal Exchange server.

(Winkiss is a table)
TRY
   Local lcSchema, loConfig, loMsg, loError, lcErr
   lcErr = ""
   lcSchema = "http://schemas.microsoft.com/cdo/configuration/";
   loConfig = Createobject("CDO.Configuration")

   With loConfig.Fields
      .Item(lcSchema + "smtpserver")          = ALLTRIM(winkiss.opt15)
      .Item(lcSchema + "smtpserverport")     = winkiss.portnum
      .Item(lcSchema + "sendusing")            = 2
      .Item(lcSchema + "smtpauthenticate")  = .t.
      .Item(lcSchema + "smtpusessl")          = winkiss.usessl
      .Item(lcSchema + "sendusername")      = ALLTRIM(winkiss.usersig)
      .Item(lcSchema + "sendpassword")      = ALLTRIM(winkiss.empw)
      .Update
   Endwith
   loMsg = Createobject ("CDO.Message")

   With loMsg
      .Configuration = loConfig
      .From            = ALLTRIM(winkiss.opt17)
      .To                = ALLTRIM(winkiss.opt17)
      .Subject         = "Test subject"
      .TextBody      = "Testing SMTP emailing, from myself to myself"
      .Send()
   Endwith

etc

Does anyone have suggestions

-- 
Kind regards,
Sytze de Boer


--- StripMime Report -- processed MIME parts ---
multipart/alternative
  text/plain (text body -- kept)
  text/html
---

_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/cag1nny8xvsx1ibxzpgi8pgeb7uthgyh862ha2uajgyflndo...@mail.gmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to