Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    Regular Coder
    Join Date
    Dec 2005
    Posts
    702
    Thanks
    0
    Thanked 0 Times in 0 Posts

    In PHP how replace service@polis-land.com below with $email ?

    In PHP how replace service@polis-land.com below with $email ?
    this is a php mail() script where $email = $_GET['e']; .

    Code:
     $headers = "From:service@polis-land.com"; 
    $headers .= "\nBcc:a080725@cytanet.com.cy"; 
    $headers .= "\nReply-To:service@polis-land.com";                     //, $email
    $headers .= "\nContent-Type: text/html; charset=UTF-8";
    $headers .= "\nMIME-Version: 1.0";

  • #2
    Senior Coder NancyJ's Avatar
    Join Date
    Feb 2005
    Location
    Bradford, UK
    Posts
    3,169
    Thanks
    19
    Thanked 65 Times in 64 Posts


    Open up your text editor, select service@polis-land.com, type $email...

  • #3
    Regular Coder
    Join Date
    Dec 2005
    Posts
    702
    Thanks
    0
    Thanked 0 Times in 0 Posts
    you mean $headers .= "\nReply-To:$email"; ?

  • #4
    Senior Coder NancyJ's Avatar
    Join Date
    Feb 2005
    Location
    Bradford, UK
    Posts
    3,169
    Thanks
    19
    Thanked 65 Times in 64 Posts
    any place where you want $email to appear in place of service@polis-land.com

  • #5
    Regular Coder
    Join Date
    Dec 2005
    Posts
    702
    Thanks
    0
    Thanked 0 Times in 0 Posts
    you mean $headers .= "\nReply-To:$email"; ?

    IS this correct ?

  • #6
    Super Moderator Inigoesdr's Avatar
    Join Date
    Mar 2007
    Location
    Florida, USA
    Posts
    3,638
    Thanks
    2
    Thanked 404 Times in 396 Posts
    If the value of $email is what you want to put there. Please don't ask stupid questions repeatedly. Nancy already gave you an answer. If you want to know what the headers are for lookup the function or mail headers.


  •  

    Posting Permissions

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