• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Email are not sending.

#1
This is my code of sending email but it gives error "Multiline found" instead of sending email.

case 5: // email for sending different report attachments //


 
  ////// attachment header ///////////////////////////////
     $headers = array();
   $headers[] = "MIME-Version: 1.0";
   $headers[] = "From: cashxcash.com<{$sender}>";
   $headers[] = "Content-Type: multipart/mixed; boundary=\"{$uid}\"";
   $headers[] = "This is a multi-part message in MIME format.";
   $headers[] = "--{$uid}";
   $headers[] = "Content-type:text/plain; charset=iso-8859-1"; // Set message content type
   $headers[] = "Content-Transfer-Encoding: 7bit";
   $headers[] = ""; // Dump message
   $headers[] = "--{$uid}";
   $headers[] = "Content-Type: application/octet-stream; name=\"{$fileName}\""; // Set content type and file name
   $headers[] = "Content-Transfer-Encoding: base64"; // Set file encoding base
   $headers[] = "Content-Disposition: attachment; filename=\"{$fileName}\""; // Set file Disposition
   $headers[] = $encoded_content; // Dump file
   $headers[] = "--{$uid}--"; //End boundary
 
return mail($reciever,"{$variables['emailContains']} Report from Cashxcash!","", implode("\r\n", $headers) );
break;
Reply

#2
Some email servers require a valid return email address so make sure you ave one, this is for bounced emails.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.