![]() |
i am trying to pass variables with the subject in the send mail - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: i am trying to pass variables with the subject in the send mail (/showthread.php?tid=59992) |
i am trying to pass variables with the subject in the send mail - El Forum - 12-24-2013 [eluser]dinisptc[/eluser] i am trying to pass variables with the subject in the send mail Code: function send_mail($dist_list,$report_file,$reply_to,$name_of_project_manager,$date_meeting,$report_name) { //$this->email->subject('Report construction '.$report_name.' from '.$date_meeting.' by on'); this line gives an error and its not sending the email i am trying to pass variables with the subject in the send mail - El Forum - 12-24-2013 [eluser]CroNiX[/eluser] What's the error? Have you verified that $report_name and $date_meeting are being received by that function and contain data? i am trying to pass variables with the subject in the send mail - El Forum - 12-24-2013 [eluser]dinisptc[/eluser] yes the variables contain data $date_meeting = 2013-12-12 00:00:00 and $report_name = MaisonduLac-03-12-2013.pdf i am going to check the error i am trying to pass variables with the subject in the send mail - El Forum - 12-24-2013 [eluser]dinisptc[/eluser] these are the errors A PHP Error was encountered Severity: Notice Message: fwrite(): send of 8192 bytes failed with errno=104 Connection reset by peer Filename: libraries/Email.php Line Number: 1846 A PHP Error was encountered Severity: Notice Message: fwrite(): send of 3 bytes failed with errno=32 Broken pipe Filename: libraries/Email.php Line Number: 1846 i am trying to pass variables with the subject in the send mail - El Forum - 12-24-2013 [eluser]dinisptc[/eluser] this was the report name MaisonduLac-03-12-2013.pdf $repo=str_replace('-','',$report_name); Report construction MaisonduLac03122013.pdf by on like this its working but with the date its always crashing $originalDate = $date_meeting; $newDate = date("dmY", strtotime($originalDate)); //$repo_Date=str_replace('-','',$newDate); $repo_Date=$newDate; removed the - from the date but its still crashing on email library |