Mail form sender

i have my “form.php” file of the “contact” section of my site uploaded to lycos.co.uk (cos thats the only site which supports PHP, as far as i know).

when i try to send email thru it, i do receive the email to the address i provided in the PHP file -BUT- in the “from” field it is from "myusername@lycos.co.uk "

y is that? ( i have attached the php) can someone help me?

Try this:

$SenderName = “your name”;
$SenderEmail = “your email”;
mail("<".$RecipientEmail.">",$Subject, $Message, “From: “.$SenderName.” <” . $SenderEmail . “>”);

what exactly should i delete and where to put the code u provided ? can u change the file and attach it plz ?
thx

Two variables are being sent to the form, sender_name and sender_mail whatever the values of these variables are when they are sent to your php will be what appears as your emails from name and address.

You need to find where these variables are defined in whatever code (flash? html? other?) is calling your php script and change them to what you want

they r defined in this php file … u got me confused

what is your contact page? is it a flash movie or an html form?

http://www.kirupaforum.com/forums/showthread.php?threadid=16178&highlight=*junk*

something else happened now:

all my site files and SWFs are on Freewebs, except the “contact.swf” which is on Lycos, with it also there is the “sendmail.php” on Lycos.

when clicking on the contact button from Freewebs, the “contact.swf” MC is called from Lycos to be loaded in the main page. i use this code:

//////////////////////////////////////////////
on (release) {
_root.contents.loadMovie(“http://members.lycos.co.uk/username/contact.swf”);
}
///////////////////////////////////////////////

when i try to send an email, it won’t send.
in the “sendmail.php” (which is on Lycos) the code is this:

…bla bla bla …

loadVariables("sendmail.php",this,"POST");
this.onData = function()

…bla bla bla …

is this code the right one or should i include the path to Lycos, like this:

loadVariables(“http://members.lycos.co.uk/username/sendmail.php",this,"POST”);
this.onData = function()

ANYONE GOT AN ADVISE ???

all pages are SWF, each button calls an external SWF

anyone can tell me about that PHP file? should i put the whole path or what ?

find this line of code in your php:


$header = "From: " . $HTTP_POST_VARS['sender_name'] . " <" . $HTTP_POST_VARS['sender_mail'] . ">
";

and replace it with this:


$header = "From: YourName <your@email.address>
";

but replace YourName and your@email.address with whatever you want

y it doesnt show the email of the sender, not of lycos., after the “from” ?

the email of the sender appears only after the “reply to”.

y is that ?

I don’t know what you’re talking about!

did you try the code I posted?!

what exactly do you want it to do?!

this is what i see when i send a test mail:

From : Elie Tabet <elietabet@lycos.co.uk> (i am talking about this)
Reply-To : Elie Tabet <elietabet@something.com>
To : elietabet@hotmail.com
Subject : test

after “From” , y does it show the email from Lycos ? it should display the same email as after “Reply-to” , right ?

yes i used ur code, and it still wont show the email as entered by the visitor, it shows the email of Lycos.

got my point ?

dammit it didnt show the emails …

From : Elie Tabet - bdamage@lycos.co.uk (i am talking about this)
Reply-To : Elie Tabet - elietabet@elietabet.com
To : elietabet@hotmail.com
Subject : test

after “From” , y does it show the email from Lycos ? it should display the same email as after “Reply-to” , right ?

yes i used ur code, and it still wont show the email as entered by the visitor, it shows the email of Lycos.

got my point ?

***(bdamage is another nickname of mine)