Trimitere mail cu PHP prin SMTP
Scris: Vin Dec 13, 2013
Salutare la toti...am o intrebare...tot caut deja de vre-o 2 zile...vreau sa trimit un email cu php si nu inteleg unde e problema:
sendmail.ini:
php.ini:
index.php:
sendmail.ini:
Cod: Selectaţi tot
smtp_server=smtp.gmail.com
; smtp port (normally 25)
smtp_port=587
smtp_ssl=true
auth_username=myemail@gmail.com
auth_password=mypassword
Cod: Selectaţi tot
sendmail_path = "C:\xampp\sendmail\sendmail.exe -t"
mail.add_x_header = Off
Cod: Selectaţi tot
<?php
mail(
'vasea@yahoo.com',
'Works!',
'An email has been generated from your localhost, congratulations!');
?>