M
M
Maxim Grechushnikov2014-09-02 14:19:55
gmail
Maxim Grechushnikov, 2014-09-02 14:19:55

gmail, smtp. The box is blocking. How to send mail via SMTP?

$smtpServerHost = 'ssl://smtp.gmail.com';
$smtpServerHostPort = 25;//465;
$smtpServerUser = '***@gmail.com';
$smtpServerUserPassword = '****';
I send mail... but in the answer silence. the google mail box swears at the login attempt, which was blocked.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Ramoder, 2014-09-11
@maxyc_webber

unfortunately, without extrasensory skills it is difficult to understand what you are doing wrong)
what type of authorization is used (PLAIN, LOGIN, CRAM-MD5, etc.)? Maybe you're formatting requests incorrectly (look at wikipedia and rfc, for example this one )
maybe you should pay attention to other ways of interacting with gmail - imap , pop3
also gmail has api

S
sanchower, 2015-04-03
@sanchower

I think this is your case => https://support.google.com/a/answer/166852?hl=ru
Write to Google support and ask to unlock the mailbox

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question