html - More than one email content comes as blank page in php -
i trying send approx 100 mail @ time using php. using following code
$this->view->dataset['title'] = $title; $this->view->dataset['message'] = $message; ob_start(); $this->view->render('emailcontent', 'escalation-question-email-module-content', false); $emailcontent= ob_get_contents(); ob_end_clean(); $emailparam = new stdclass(); $emailparam->sendto = $email; $emailparam->subject = $title; $emailparam->content = $emailcontent; $this->sendmail($emailparam);
the above code iterating approx 100 times through foreach loop. facing odd problem first mail shows html content , other 99 mail content appears blank page.
i replaced ob_get_contents() function file_get_contents() working have use ob_get_contents() function.
can please identify wrong code.
try bringing ob_start() right @ beginning of script.
Comments
Post a Comment