SMTP Login Details

    // enable SMTP authentication
$mail->SMTPAuth = true;

// sets SMTP port
$mail->Port = 25;

// SMTP account username
$mail->Username = "[email protected]";

// SMTP account password
$mail->Password = "itachairman";

$mail->SetFrom("[email protected]", "Samhita");
$mail->AddReplyTo("[email protected]","Samhita");
$mail->Subject = $subject;
$mail->MsgHTML($body);

// To address
$mail->AddAddress($to);

Previous Post Next Post

You might also like: