Welcome our webmaster and SEO forum
Please enjoy the forum, contribute what you can, and wind up the Moderators!
Results 1 to 5 of 5

Thread: PHP Form: How do i hide my email address?

  1. #1
    matlamont is offline Junior Member
    Join Date
    Jan 2010
    Posts
    4

    Default PHP Form: How do i hide my email address?

    Hi guys,

    I have a PHP form and when a user submits the form it sends the data to my email address and also sends a confirmation email to the user but the problem i have is the confirmation email to the user shows its from my email address. How can i change it so it says "noreply" or "automated response email"?

    Heres the code that it think is causing the problem

    /* MAIL TO USER */

    $from = "$admin_email<$admin_email>";
    $headers = "Return-Path: <$admin_email>\n";
    $headers .= "X-Sender: <$admin_email>\n";
    $headers .= "From: $from\n" .
    $headers .= "X-Mailer:PHP\n";
    $headers .= "X-auth-smtp-user: $admin_email\n";
    $headers .= "MIME-Version: 1.0\n";
    $headers.="Content-Transfer-Encoding: 8bit\n";
    $headers .="Content-Type: text/html; charset=UTF-8\n";

  2. #2
    Kelios's Avatar
    Kelios is offline Junior Member
    Join Date
    Apr 2010
    Posts
    12

    Default

    if I can find - say ... somewhere I saw

  3. #3
    Jay-S is offline Junior Member
    Join Date
    Apr 2010
    Posts
    19

    Default

    You would just need to set the $admin_email variable to: noreply@yourdomain.com

  4. #4
    surreypcsupport's Avatar
    surreypcsupport is offline Senior Member
    Join Date
    Nov 2008
    Location
    surrey
    Posts
    565

    Default

    Or just capture the details the user entered on the contact form into a database. No need for email then.

  5. #5
    daureluc is offline Junior Member
    Join Date
    Jul 2010
    Posts
    2

    Default

    forget about the above

    just change this:

    $from = "$admin_email<$admin_email>";
    $headers .= "From: No-Reply@yourwebsitename\n" .
    $headers .= "MIME-Version: 1.0\n";
    $headers.="Content-Transfer-Encoding: 8bit\n";
    $headers .="Content-Type: text/html; charset=UTF-8\n";

    and here you go, emails will be sent to your address ($admin_email, but nothing will show on the recipient.
    You've just added to many optional info in your header, your email shouldn't show in the email header to your visitor.

    for more help you can contact support@websiteandcomputer com

    if you need more php help... ask professionals...

Thread Information

Users Browsing this Thread

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

Bookmarks

Bookmarks

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124