Everybody! This is important. In a few days, these forums will be moving over to using the totally sweet Discourse platform. To ensure this migration happens smoothly with no loss of content, these forums are currently in a read-only mode. I do apologize for the inconvenience.

There is never a good time to turn the forums off for an extended period of time, but I promise the new forums will be a billion times better. I'm pretty sure of it.

See you all on the other side in a few days, and if you have any (non-technical) questions, please e-mail me at kirupa@kirupa.com. For technical questions, try to find a tutorial that corresponds to what you are looking for and post in the comments section of that page.

Cheers,
Kirupa

Page 1 of 2 12 LastLast
Results 1 to 15 of 22

Thread: Why does this happen

  1. #1

    Why does this happen

    I have a mailer doohicky.. and I just curious as to why something happens...
    PHP Code:
    <?

    // Mail out
    $f "From : ";
    $From $f $email;
    mail("5852611864@vtext.com"$subject$message$From);

    ?>
    That code doesn't send the e-mail address

    PHP Code:
    <?

    // 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?

  2. #2
    bizump

  3. #3
    There are absolutely no differences between the code, are you sure you posted the right two versions?

  4. #4
    difference is the "$" in $From
    in 1st case, you just send the word,
    in the second ($From ) the value of that php variable...
    Joe
    www.eyezberg.com

  5. #5
    Ohhh.... man, I went through that over and over and over... and NEVER noticed that. Good eye Eyez.....

  6. #6
    Yup, eyez founded it.
    So it's just because the one was a word, and the other was a variable?

  7. #7
    Yeah

  8. #8
    oh.. well it still doesn't do what its supposed to, but its closer

  9. #9
    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?

  10. #10
    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

  11. #11
    yeah, did you read all of my post here: http://www.kirupaforum.com/forums/sh...threadid=17313

    it explains the header information in the 7th post down...

  12. #12
    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

  13. #13
    no not the bcc thing. it tells you how to put the From: part in.

  14. #14
    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.

  15. #15
    PHP Code:
    $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)

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Home About kirupa.com Meet the Moderators Advertise

 Link to Us

 Credits

Copyright 1999 - 2012