Php attached multiple excel files in email codeigniter not working - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: Php attached multiple excel files in email codeigniter not working (/showthread.php?tid=68907) |
Php attached multiple excel files in email codeigniter not working - Var91 - 09-12-2017 I want to attach two excel files (sealing_production.xls & sealing_assembly.xls)to my email using php,but I have no idea on how to do it. Can anybody help me please?? Problem When I click on my send mail button, I gets the mail. with all details. but attachment is not working. Try 1.I echo the file name, its prints the file name from controller 2.I also try to put Code: $this-> email -> attach($file); in my model and also this in my sendEmail function Code: $this -> global_model -> sendfullmail($user, $subject, $content,$cc, '',$xls); but the email that i receive is only blank email without content. Here my php code for the send Email function PHP Code: function sendEmail() { and this the function of sendfullmail in my model: Code: //send out full email include cc and bcc What I have tried: I have check similar links on stack overflow about this. But i'm unable to find any solution for this. Link's i have checked
RE: Php attached multiple excel files in email codeigniter not working - InsiteFX - 09-13-2017 And where are you using this statement in your sendfullmail()? $this->email->attach('/path/to/photo1.jpg'); RE: Php attached multiple excel files in email codeigniter not working - Var91 - 09-13-2017 (09-13-2017, 03:59 AM)InsiteFX Wrote: And where are you using this statement in your sendfullmail()? Hi, I try to change my sendfullmail into below PHP Code: function sendfullmail($receipient, $title, $message,$cc,$bcc,$file){ and add this in my sendEmail() PHP Code: $this -> global_model -> sendfullmail($user, $subject, $content,$cc, '',$xls1); RE: Php attached multiple excel files in email codeigniter not working - InsiteFX - 09-14-2017 I got your message but I cannot reply to you because you have Private Messages turned OFF! Are you sending this to a live server or localhost? RE: Php attached multiple excel files in email codeigniter not working - Var91 - 09-14-2017 (09-14-2017, 03:37 AM)InsiteFX Wrote: I got your message but I cannot reply to you because you have Private Messages turned OFF! I'm sending this to a live server... |