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?
system
July 16, 2003, 9:53pm
2
Try this:
$SenderName = “your name”;
$SenderEmail = “your email”;
mail("<".$RecipientEmail.">",$Subject, $Message, “From: “.$SenderName.” <” . $SenderEmail . “>”);
system
July 16, 2003, 9:56pm
3
what exactly should i delete and where to put the code u provided ? can u change the file and attach it plz ?
thx
system
July 16, 2003, 10:08pm
4
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
system
July 16, 2003, 10:14pm
5
they r defined in this php file … u got me confused
system
July 16, 2003, 10:19pm
6
what is your contact page? is it a flash movie or an html form?
system
July 16, 2003, 10:24pm
7
system
July 16, 2003, 10:28pm
8
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 ???
system
July 16, 2003, 10:38pm
9
all pages are SWF, each button calls an external SWF
system
July 17, 2003, 10:41am
10
anyone can tell me about that PHP file? should i put the whole path or what ?
system
July 17, 2003, 10:45am
11
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.addr ess with whatever you want
system
July 17, 2003, 11:37am
12
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 ?
system
July 17, 2003, 12:00pm
13
I don’t know what you’re talking about!
did you try the code I posted?!
what exactly do you want it to do?!
system
July 17, 2003, 12:20pm
14
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 ?
system
July 17, 2003, 12:24pm
15
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 ?
system
July 17, 2003, 12:25pm
16
***(bdamage is another nickname of mine)