Welcome Guest, Not a member yet? Register   Sign In
Help with email - I'm new to CI
#2

[eluser]mddd[/eluser]
Code:
$this->email->from('[email address]','[name]');
$this->email->to('[email address]');
These lines don't do anything. You need to put real information in there. Like so:
Code:
$this->email->from(set_value('email'), set_value('name'));
$this->email->to('youradministratoraddress@example'); // replace this with your real address!

Also, if you use information from POST and you use the validation library, DON'T call the POST variables directly!
Otherwise what's the point.. So in stead of this:
Code:
$this->email->subject($_POST['subject']);
$this->email->message($_POST['message']);
do this:
Code:
$this->email->subject(set_value('subject'));
$this->email->message(set_value('message'));


Messages In This Thread
Help with email - I'm new to CI - by El Forum - 06-16-2010, 01:56 AM
Help with email - I'm new to CI - by El Forum - 06-16-2010, 02:28 AM
Help with email - I'm new to CI - by El Forum - 06-16-2010, 02:36 AM
Help with email - I'm new to CI - by El Forum - 06-16-2010, 03:24 AM
Help with email - I'm new to CI - by El Forum - 06-16-2010, 03:51 AM
Help with email - I'm new to CI - by El Forum - 06-16-2010, 03:57 AM
Help with email - I'm new to CI - by El Forum - 06-16-2010, 04:21 AM
Help with email - I'm new to CI - by El Forum - 06-16-2010, 04:56 AM
Help with email - I'm new to CI - by El Forum - 08-13-2010, 09:34 AM



Theme © iAndrew 2016 - Forum software by © MyBB