PDA

View Full Version : PHP Mail



Moh
24-02-2008, 10:18 PM
Well I am currently having a problem with php emails.
The message sends etc.., but the sender keeps coming up as
[email protected] on behalf of [email protected]

I have added Reply-To & Return-Path, but they don't fix it.
Does anyone know what I need to add to the headers to make it so it says
Title <[email protected]>

Hypertext
24-02-2008, 11:44 PM
i think its header(From: [email protected]);

Moh
25-02-2008, 08:10 AM
i think its header(From: [email protected]);
Nope, didn't make any difference :(

RYANNNNN
25-02-2008, 12:23 PM
http://uk2.php.net/manual/en/function.mail.php

You can't just paste in the header.

Anyway, you should use PHPMailer

Independent
25-02-2008, 03:01 PM
header('From: [email protected]');

Not sure if them apostraphee things help.

MrCraig
25-02-2008, 04:01 PM
u using the following format?



<?php
mail("MESSAGE SUBJECT","TO","BODY","from: <[email protected]>");
?>

Florx
25-02-2008, 05:07 PM
You should use SMTP anyway because PHP mail usually goes straight to spam.

Invent
25-02-2008, 06:33 PM
You should use SMTP anyway because PHP mail usually goes straight to spam.

Mine doesn't, aha.

Florx
25-02-2008, 06:40 PM
Aha. How? Tell us your secret plz.

Agnostic Bear
25-02-2008, 06:42 PM
Aha. How? Tell us your secret plz.

Mine doesn't either, it doesn't by default.

Florx
25-02-2008, 06:49 PM
Its got something to do with the headers correct?

Want to hide these adverts? Register an account for free!