sendmail - Send Mail fails? [php + xampp] -


in sendmail error log error:

13.05.17 22:33:23 : must issue starttls command first. x41sm21034997eey.17 - gsmtp<eol> 13.05.17 23:02:55 : must issue starttls command first. m48sm20850393eeh.16 - gsmtp<eol> 13.05.17 23:08:05 : must issue starttls command first. bn53sm21242331eeb.7 - gsmtp<eol> 13.05.17 23:43:54 : must issue starttls command first. x41sm21511836eey.17 - gsmtp<eol> 13.05.18 00:07:17 : must issue starttls command first. w52sm21617356eev.12 - gsmtp<eol> 13.05.18 03:03:16 : must issue starttls command first. e50sm22561955eev.13 - gsmtp<eol> 13.05.18 20:28:20 : must issue starttls command first. d10sm3967825wik.0 - gsmtp<eol> 13.05.19 05:14:31 : must issue starttls command first. dj7sm5901394wib.6 - gsmtp<eol> 

and sendmail file:

[sendmail]

smtp_server=smtp.gmail.com smtp_port=587 error_logfile=error.log debug_logfile=debug.log auth_username=artemkller@gmail.com auth_password=hidepass force_sender=artemkller@gmail.com 

my code:

mail (     $email,     'driptone - activate account',     'hello '.$username.'. must activate account before     can start using account.     can activate account clicking on following link:     http://localhost/drip/activate.php?u='.$this->get['user_id'].'&a='.$this->get['generated_code'].'     thank you,     driptone.',     'from: noreply@driptone.com' ); 

what wrong this? used work, not?

the reason gmail uses secure (tls) servers prevent spam.

make sure php installation has ssl support (look "openssl" section in output phpinfo()).

you can set following settings in php.ini:

ini_set("smtp","ssl://smtp.gmail.com"); ini_set("smtp_port","587"); 

also can find solution here if above dosent you.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -