View Full Version : Why does this happen
nobody
April 16th, 2003, 10:59 PM
I have a mailer doohicky.. and I just curious as to why something happens...
<?
// Mail out
$f = "From : ";
$From = $f . $email;
mail("5852611864@vtext.com", $subject, $message, $From);
?>
That code doesn't send the e-mail address
<?
// Mail out
$f = "$From : ";
$From = $f . $email;
mail("5852611864@vtext.com", $subject, $message, $From);
?>
That one does.. any clue why
also... is there a way to make it so when the user inputs their email address it actually shows up as coming from there?
nobody
April 18th, 2003, 01:17 PM
bizump
lostinbeta
April 18th, 2003, 01:44 PM
There are absolutely no differences between the code, are you sure you posted the right two versions?
eyezberg
April 18th, 2003, 01:57 PM
difference is the "$" in $From
in 1st case, you just send the word,
in the second ($From ) the value of that php variable...
lostinbeta
April 18th, 2003, 02:01 PM
Ohhh.... man, I went through that over and over and over... and NEVER noticed that. Good eye Eyez..... :P
nobody
April 18th, 2003, 02:09 PM
Yup, eyez founded it.
So it's just because the one was a word, and the other was a variable?
lostinbeta
April 18th, 2003, 05:11 PM
Yeah
nobody
April 18th, 2003, 08:48 PM
oh.. well it still doesn't do what its supposed to, but its closer
Jubba
April 18th, 2003, 09:01 PM
what exactly are you trying to do? I'm a little unclear as to what you want... its not sending the e-mail at all? or its just not saying what the From field is?
nobody
April 18th, 2003, 09:37 PM
Jubba:
It is sending the email, the subject and the actual message part show up, but what happens is that it comes from host33@ipowerweb.com, not from the inputed emaiil, and I'm wondering if there is a way to have it show up like that or if its ubpossible
Jubba
April 18th, 2003, 09:52 PM
yeah, did you read all of my post here: http://www.kirupaforum.com/forums/showthread.php?s=&threadid=17313
it explains the header information in the 7th post down...
nobody
April 18th, 2003, 10:06 PM
Jubba, I read it, but I'm still lost
Like, I can make the name show up, just not in the right place..
and i don't really need the bcc thing if thats what you thought i meant.. sorry for bein annoying
Jubba
April 18th, 2003, 10:07 PM
no not the bcc thing. it tells you how to put the From: part in.
nobody
April 18th, 2003, 10:09 PM
Ok, well I'm gonna do what I can, I'll post what I've done to further screw up my thing in a minute. :beam:
nobody
April 18th, 2003, 10:10 PM
$headers = "From: $fromName <$fromName@$SERVER_NAME> \n";
isnt that just gonna make it be from the person's name at xxviii.net? (xxviii.net being my server thing)
Jubba
April 18th, 2003, 10:11 PM
you can make it say wherever you want. just change the varialbes.
nobody
April 18th, 2003, 10:12 PM
ok, just a minute, ill try real quick
nobody
April 18th, 2003, 10:16 PM
I just realized something
isnt
$headers = "From: $fromName <$fromName@$SERVER_NAME> \n";
just going to place From: Whoever@whatever.com at the top or wherever?
I want the inputed email address to actually be the email address you recieved from
Jubba
April 18th, 2003, 10:18 PM
oh, then check out the link in that thread. There is a complete explanation of headers in there...
Jubba
April 18th, 2003, 10:18 PM
check out Replay-to
Jubba
April 18th, 2003, 10:18 PM
oops Reply
nobody
April 18th, 2003, 10:18 PM
alright,
thanks jubba:beam:
I'm just gettin into php so if I'm stupid and annoying please forgive me
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.