Barion Pixel

A PHP mail() függvény használható-e imprimir

  • 4

A SPAM tevékenységek megelőzése érdekében a PHP mail() függvényt letiltottuk, ennek engedélyezésére nincs lehetőség.Email küldése a tárhelyről csak biztonságos SMTP kapcsolaton keresztül működhet, ezzel elkerülve az esetleges kellemetlenségeket.

SMTP kapcsolat simán PHP-val példa:
$mail =newPHPMailer();
$mail->IsSMTP();
$mail->CharSet='UTF-8';

$mail->Host="mail.example.com";// SMTP server example
$mail->SMTPDebug=0;// enables SMTP debug information (for testing)
$mail->SMTPAuth=true;// enable SMTP authentication
$mail->Port=25;// set the SMTP port for the GMAIL server
$mail->Username="username";// SMTP account username example
$mail->Password="password";// SMTP account password example

Esta resposta lhe foi útil?

« Retornar