CodeIgniter Forums
Email not sending - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Email not sending (/showthread.php?tid=34216)



Email not sending - El Forum - 09-22-2010

[eluser]RedIgniter[/eluser]
Code:
$this->email->to($email);
$this->email->from('kayfer.com');
$this->email->subject('kayfer.com | Account Activation');
$this->email->message($message);
$this->email->send();

this script doesn't send the e-mail unless I change both "to" and "from" to $email, which in case becomes the same e-mail, and whenever I receive the e-mail send by the script it shows that the e-mail was sent by me to me. Please help me figure out this bug or error by me, thanks in advance.


Email not sending - El Forum - 09-23-2010

[eluser]Victor Michnowicz[/eluser]
I would try the vanilla Email helper if you are just sending basic emails. I have not had good luck with the Email class on shared hosting (I have Go Daddy).


Email not sending - El Forum - 09-23-2010

[eluser]RedIgniter[/eluser]
I have hostmonster I have the space and the domain, it's just not working unless I change both email to and email from to same email address, in this case $email.


Email not sending - El Forum - 09-23-2010

[eluser]techgnome[/eluser]
The from should be an email address. kayfer.com isn't a valid email address.

Does it work if you put [email protected] as the from address?

-tg


Email not sending - El Forum - 09-23-2010

[eluser]RedIgniter[/eluser]
I mistyped, the e-mail address is [email protected] not kayfer.com