Welcome Guest, Not a member yet? Register   Sign In
Email Library
#1

[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.
#2

[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.
#3

[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.
#4

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

[eluser]RedIgniter[/eluser]
No problem Smile




Theme © iAndrew 2016 - Forum software by © MyBB