Welcome Guest, Not a member yet? Register   Sign In
sending a basic mail with php mail()
#5

[eluser]kenjis[/eluser]
This seems to be not a CI problem.

How about this PHP code?

Code:
$headers  = "From: ".utf8_decode($from)."\n";
$headers .= 'Reply-To: '.$data['email']."\n";
$headers .= 'X-Mailer: PHP/' . phpversion();
$success  = @mail($to, stripslashes(utf8_decode($sujet)), stripslashes(utf8_decode($body)), $headers, '-f ' . $data['email']);

Or the last line:

Code:
$success  = @mail($to, stripslashes(utf8_decode($sujet)), stripslashes(utf8_decode($body)), $headers, '-f' . $data['email']);

If PHP error occures, what the error message?


Messages In This Thread
sending a basic mail with php mail() - by El Forum - 03-24-2011, 07:39 AM
sending a basic mail with php mail() - by El Forum - 03-24-2011, 08:11 AM
sending a basic mail with php mail() - by El Forum - 04-24-2011, 05:38 PM
sending a basic mail with php mail() - by El Forum - 04-25-2011, 12:03 AM
sending a basic mail with php mail() - by El Forum - 04-25-2011, 02:31 AM
sending a basic mail with php mail() - by El Forum - 04-25-2011, 03:34 AM
sending a basic mail with php mail() - by El Forum - 04-25-2011, 04:03 AM



Theme © iAndrew 2016 - Forum software by © MyBB