• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help for emial class

#1
[eluser]paullo[/eluser]
Hello good day,i will be glad if anyone can help me out to fix this bug,i has given me sleepless nights since last sunday and am yet to figure out what could be the cause.

I used CI for a project and it has really been working perfectly earlier for almost a year now,and the system is no more working properly what could have been the cause please,can i anyone help.

This is how it works,it get subscribers datas and send out email to them all at once but now is no more working,instead it will rather redirects a blank page to me.

Here is the code that does the work in my controller folder

function sendemail($emailmsg, $emailaddr, $subject, $name, $sender_email, $userid, $email_id='', $attachment1='', $attachment2='', $campaign_id='') {
$param_data_email = array('email_message'=>$emailmsg,
'email_address'=>$emailaddr,
'email_subject'=>$subject,
'sender_name'=>$name,
'sender_email_addr'=>$sender_email,
'user_id'=>$userid,
'campaign_id'=>$campaign_id,
'send_all'=>'all',
'email_id'=>$email_id,
'attachment1'=>$attachment1,
'attachment2'=>$attachment2
);
//var_dump($param_data_email);exit;
thread_page('/email_scheduler', hostname_from_url(base_url()), 'POST', array2param($param_data_email));
}

#2
[eluser]toopay[/eluser]
Is this upgrade version issue?

#3
[eluser]paullo[/eluser]
Thanks for your immediate response. Okay s it because am using the older version or what? so what and what do i have to add or remove from the url_helper or libarary?

#4
[eluser]toopay[/eluser]
I want to know, are you experienced this problems after upgrade to latest version?

#5
[eluser]paullo[/eluser]
No,am still using 1.7.3, anything that can help me?

#6
[eluser]toopay[/eluser]
If you're using email class function in loop (foreach or while) statement, make sure you give some error flag. I suspect, it might be that the email class is break in somewhere on your loop statement.

Post your code on controller or corresponding section, will be help to identify the problems(or even bug).

#7
[eluser]InsiteFX[/eluser]
Code:
$this->email->clear()
Initializes all the email variables to an empty state. This function is intended for use if you run the email sending function in a loop, permitting the data to be reset between cycles.

InsiteFX


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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