The Most Active and Friendliest
Affiliate Marketing Community Online!

“Propeller”/  Direct Affiliate

PHP Form: How do i hide my email address?

matlamont

New Member
affiliate
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";
 
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...
 
banners
Back