Sending mails failing |
[eluser]bhakti.thakkar[/eluser]
hi all, i am trying to send mails once the required details and validations are done Code in Controller: register.php Code: $this->load->library('email'); But somehow my mails are not sent. i have yet changed anything in config/Email.php. this is just a test mail which i am trying to do. where is my code failing
[eluser]bastones[/eluser]
Can you add the following code to the bottom and post the results: Code: echo $this->email->print_debugger();
[eluser]bhakti.thakkar[/eluser]
Hi, This is what i get when i do: echo $this->email->print_debugger(); Code: Your message has been successfully sent using the following protocol: mail Can anyone figure it why mail doesnt actually come? Thanks
[eluser]Bluemill Media[/eluser]
UPDATED: I'm having a similar problem, though mail only seems to fail with certain mail services, such as hotmail, and possibly Yahoo, but works with gmail. It is now also able to deliver to POP addresses... Seems the problem only exists with an (as of yet) undefined list of web-mail service providers. Can anybody imagine a reason this would be occurring? I'm on a tight deadline and breaking my head trying to debug this issue. Here's my code if it's relevant (platform identifying strings replaced with PLATFORM_NAME): Code: $EmailConfig = array(
[eluser]leafc[/eluser]
I have a same issue. I get no error but no mail is sent. here is my code: ============================================================= Code: $config['protocol'] = 'sendmail'; ============================================================= Code: Your message has been successfully sent using the following protocol: sendmail but I don't recieve any mail and I am not using free account mail address. what am I doing wrong here?
[eluser]brianw1975[/eluser]
The good thing is that you are probably not doing anything wrong with your code. The bad part is that you may be running into something that really SUCKS (sometimes) to have to fix yourself or get your hosting provider to fix. Check and see if you have a DomainKey set up for your mail domain - i had a HUGE problem with this and Hotmail accounts when it was first put in place. You want to look here http://antispam.yahoo.com/ and http://domainkeys.sourceforge.net/ Hotmail has this tendency to just drop emails that come from a domain without a DomainKey - i mean drop as in "gone, do not pass go, do not go to jail, do not collect $200 and no, you will not get a bounce as undeliverable" - just gone. Hopefully I am wrong, so good luck.
[eluser]gh0st[/eluser]
I've noticed that the email class never sets the return path in my tests. I've noticed it in your debug output to ... also, why is "from" never showing the actual email address? Quote:From: "EXAMPLE SITE"
[eluser]leafc[/eluser]
Thank you for the comments. >gh0st How can I set "Return-Path:"?
[eluser]Jay Logan[/eluser]
I just ran into the same problem. The way I fixed it was switch to SMTP. First create an e-mail account to send from. I created a dummy noreply account on my server. Then enter your SMTP log in info into CI. That should send the e-mails. Hope that helps.
[eluser]leber[/eluser]
i once had a similar issue, solved it by changing the encoding from 8-bit to 7-bit...dunno why, but it worked for me. |
Welcome Guest, Not a member yet? Register Sign In |