PHP Sending mail with Outlook

  PHP

Email

please  go to this code you will understanding

$email_to = $to_details[2];
$email_to = ‘#########’;
echo $email_message = “Dear “.$to_details[1].”,r”.
“You have created the following “.$to_details[5].”r”.
$to_details[6].
“<br>”.”Please find the previous year audit report and documents. If it is not available send the details manually.”.”<br>”.
$files_list.”<br>”.

$email_message .= “This is a multi-part message in MIME format.nn” .
“–{$mime_boundary}n” .
“Content-Type:text/html; charset=”iso-8859-1″n” .
“Content-Transfer-Encoding: 7bitnn” .

$email_message .= “nn”;

$email_message .= “–{$mime_boundary}n” .
“Content-Type: {$fileatt_type};n” .
” name=”{$fileatt_name}”n” .
“Content-Transfer-Encoding: base64nn” .
$data .= “nn” .
“–{$mime_boundary}–n”;

$ok = @mail($email_to, $email_subject, $email_message, $headers);

$email_to = $to_details[4];

$email_message = “Dear “.$to_details[4].” “.$to_details[3].”,

“.
$to_details[5].”
“.
$to_details[6].”

“.
“Has been raised by “.$to_details[1].”r”.”<br>”.”Please find the previous year audit report and documents.

$files_list.”<br>”.
“Thanks,r-iModule Implementation Team.”;
$email_message .= “This is a multi-part message in MIME format.nn” .
“–{$mime_boundary}n” .
“Content-Type:text/html; charset=”iso-8859-1″n” .
“Content-Transfer-Encoding: 7bitnn” .
$email_message .= “nn”;

$email_message .= “–{$mime_boundary}n” .
“Content-Type: {$fileatt_type};n” .
” name=”{$fileatt_name}”n” .
“Content-Transfer-Encoding: base64nn” .
$data .= “nn” .
“–{$mime_boundary}–n”;

ini_set ( “SMTP”, “pod51022.outlook.com” );
date_default_timezone_set(‘Asia/Kolkata’);
$ok = @mail($email_to, $email_subject, $email_message, $headers);

Spread the Code

Leave a Reply

avatar

This site uses Akismet to reduce spam. Learn how your comment data is processed.

  Subscribe  
Notify of