sending email not working |
[eluser]sudinem[/eluser]
I've use these codes to send email. But, when I run the code, it returns me the message "Something went wrong..." But, when I change $config['protocol']='mail'. ...Then I get the message "your message has been sent". But, when I check my inbox, I didn't get any mails. I've googled my problem but couldn't get any solution. Do you guyz have any solution??? Code: function testMailer()
[eluser]InsiteFX[/eluser]
You need to load the library before you set any email parameters! Code: $this->load->library('email'); InsiteFX
[eluser]sudinem[/eluser]
[quote author="InsiteFX" date="1289846558"]You need to load the library before you set any email parameters! Code: $this->load->library('email'); InsiteFX[/quote] No effect even after doing this
[eluser]InsiteFX[/eluser]
Read this: CodeIgniter Email Library Look at Setting Email Preferences. InsiteFX
[eluser]ardi[/eluser]
I have same problem like summer student, when i tried to send email, debugger said email has been successfully and without error, but when i checked in my inbox, it's nothing ... for information i use codeigniter 2.0, any someone can fix it ??? thanks for your help before (i'm sorry for my bad english )
[eluser]cideveloper[/eluser]
If you have a gmail account try these settings Code: $config['protocol']="smtp"; That way you can check with a server you know that can send mail. Sometimes sendmail might not be configured properly, and this will rule out any problem with CI
[eluser]ardi[/eluser]
awesome, my problem solved quickly ... thanks a ton for all responses, and special thanks for cideveloper terima kasih banyak (say thanks in indonesian) :coolsmile: |
Welcome Guest, Not a member yet? Register Sign In |