CodeIgniter Forums
Email Library - 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 Library (/showthread.php?tid=34210)



Email Library - El Forum - 09-22-2010

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


Ok the above code doesn't send the e-mail unless I change both to and from to the same email address ($email). When I have the above settings it doesn't send it. Anyone's help will be appreciated.

Thanks in advance.


Email Library - El Forum - 09-25-2010

[eluser]jmadsen[/eluser]
I think you'll need to post some calling code functions, etc. There's nothing wrong with the email class; your error is somewhere else in your code.

We can't help you without seeing everything.


Email Library - El Forum - 09-25-2010

[eluser]RedIgniter[/eluser]
Thanks for the reply, but I found the error, you actually have to have my@website.net set up or else it won't send an e-mail, its like sending e-mail from an e-mail that doesn't exist. Anyways that works now, and thanks for replying.


Email Library - El Forum - 09-25-2010

[eluser]jmadsen[/eluser]
thanks for posting the solution!


Email Library - El Forum - 09-25-2010

[eluser]RedIgniter[/eluser]
No problem Smile