Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $mail = new PHPMailer();
- $mail->IsSMTP(); // telling the class to use SMTP
- $mail->Host = "192.168.30.8"; // SMTP server
- $mail->SMTPAuth = true;
- $mail->Username = "FR\Administrator";
- $mail->Password = "P@ss-word";
- $mail->SetLanguage("en", DIR_3RDPARTY."/phpmailer/language/");
- $mail->From = "aangifte@fr.ism";
- $mail->FromName = "FR.ism";
- $mail->AddAddress("aangifte@fr.ism");
- $mail->Subject = "SMTP Test";
- $mail->Body = "Hello World";
- if(!$mail->Send()) {
- echo 'Message was not sent.';
- echo 'Mailer error: ' . $mail->ErrorInfo;
- } else {
- echo "Sent";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement