Hocam ben yapamadım sanırım bunu. Deniyorum ama aşağıdaki hatayı alıyorum
2017-10-30 09:49:04 SERVER -> CLIENT: 220 smtp.gmail.com ESMTP v76sm4368844wmd.35 - gsmtp
2017-10-30 09:49:04 CLIENT -> SERVER: EHLO localhost
2017-10-30 09:49:04 SERVER -> CLIENT: 250-smtp.gmail.com at your service, [88.233.78.143]250-SIZE 35882577250-8BITMIME250-STARTTLS250-ENHANCEDSTATUSCODES250-PIPELINING250-CHUNKING250 SMTPUTF8
2017-10-30 09:49:04 CLIENT -> SERVER: STARTTLS
2017-10-30 09:49:04 SERVER -> CLIENT: 220 2.0.0 Ready to start TLS
SMTP Error: Could not connect to SMTP host.
2017-10-30 09:49:04 CLIENT -> SERVER: QUIT
2017-10-30 09:49:04
2017-10-30 09:49:04
SMTP Error: Could not connect to SMTP host.
mail gönderilemediMailer Error: SMTP Error: Could not connect to SMTP host.