Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- define(ADMINMAIL, 'test1@gmail.com');
- try{
- $mail = new PHPMailer();
- $ConfirmReadingTo = 'kendreparesh@gmail.com';
- $msPriority = 1;
- $mail->AddAddress('xyz@gmail.com', 'Mr XYZ');
- $mail->AddCustomHeader( 'X-pmrqc: 1' );
- $mail->AddReplyTo(ADMINMAIL,"Admin");
- $mail->SetFrom(ADMINMAIL, 'Admin');
- $mail->FromName = "Support Team<".ADMINMAIL.">";
- $mail->AddCustomHeader("X-MSMail-Priority: $msPriority" );
- $mail->AddCustomHeader("Priority: $msPriority" );
- $mail->addCustomHeader("Return-Receipt-To: $ConfirmReadingTo");
- $mail->addCustomHeader("X-Confirm-Reading-To: $ConfirmReadingTo");
- $mail->addCustomHeader("Disposition-notification-to: $ConfirmReadingTo");
- $mail->ConfirmReadingTo = 'kendreparesh@gmail.com';
- $mail->WordWrap = 200;
- $mail->Encoding = "8bit";
- $mail->CharSet = 'UTF-8';
- $mail->IsHTML(true);
- $mail->Subject = "Subject line ";
- $mail->MsgHTML("This is email body");
- $mail->Send();
- } catch (Exception $e) {
- echo "<br/>".$e->getMessage(); //Boring error messages from anything else!
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement