0

I am sending bulk of mails from fetching in database

function sendMail($subject,$to,$cc,$message){

    $mail = new PHPMailer;
    $mail->isSMTP();               // Set mailer to use SMTP
    $mail->Host = 'myhostname';  // Specify main and backup SMTP servers
    $mail->SMTPAuth = true;

    $mail->Username = 'myusername';
    $mail->Password = 'pass';

    $mail->From = 'myaddress';
    $mail->FromName = 'Test';
    $mail->addAddress($to, '');     // Add a recipient
    $mail->addCC($cc);              // Add a recipient

    $mail->isHTML(true);                                  // Set email format to HTML

    $mail->Subject = ''.$subject;
    //$mail->AddEmbeddedImage('mail_logo.png', 'logoimg', 'mail_logo.png');
    $mail->Body    = $message;
$mail->AltBody="This is text only alternative body.";


    if(!$mail->send()){
        //echo $mail->ErrorInfo;
        return false;
    }
    else
    {
        return true;
    }
}

how to know users read the email or not as well as delivery report on mails???

Chetan Ameta
  • 7,696
  • 3
  • 29
  • 44
Vits B
  • 1
  • 1
    Possible duplicate of [Delivery reports and read receipts in PHP mail](http://stackoverflow.com/questions/1078251/delivery-reports-and-read-receipts-in-php-mail) – Manikiran Apr 12 '16 at 07:26
  • With any certainly there is no way to know –  Apr 12 '16 at 07:36

0 Answers0