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