sending email with gmail smtp ( secure layer ) in c++

前端 未结 3 2000
忘掉有多难
忘掉有多难 2021-01-14 22:54

does any one had success with gmail smtp servers ? smtp.gmail.com to send emails from c++ code ? i know its using secure layer but i have no idea how to implement such one

3条回答
  •  滥情空心
    2021-01-14 23:34

    Sending to GMail over SSL connection on port 465 does work, and in a straightforward way. You establish connection, you do SSL initialization/handshake, then send EHLO command and it is the usual way from there. You also need login or plain authentication with the server to make it accept your messages.

提交回复
热议问题