mailing list problem |
[eluser]mohamed eid[/eluser]
hello i try to make mailing list but it dosent send to the mail this is my code Code: function sendmail() can any one help me to know where is the error ??
[eluser]InsiteFX[/eluser]
Your not setting any of the email protocols! Code: $config['protocol'] = 'sendmail'; Some of these need to be setup in your php.ini file.
[eluser]mohamed eid[/eluser]
no this is not the problem if i used one email to send it wok correctly but when i called the mail from database it not sended the problem is from this part Code: $emails=$this->useremail_model->getall_email(); the problem in fetch the emails from database an buting them in Code: $this->email->to('$email->usermail')
[eluser]InsiteFX[/eluser]
Now tell me whats wrong with this? Code: foreach($emails as $email) That's your problem it's basic php debugging! And if you cannot figure it out! Move your if statement into your foreach...
[eluser]mohamed eid[/eluser]
it is not give me any php error it give m message email sent but when i checked the emils i didnt find any mail arrived to my email
[eluser]mohamed eid[/eluser]
i have to email in the database [email protected] and [email protected] the message sended to [email protected] and not sended to [email protected]
[eluser]mohamed eid[/eluser]
when i added new email to database the message sended to the third emil only and not sended to other emails what is the problem now ??
[eluser]InsiteFX[/eluser]
CodeIgniter User Guide - Email Class CodeIgniter User Guide - The Database Class |
Welcome Guest, Not a member yet? Register Sign In |