Jump to content

[SOLVED] Email system.


cpharry

Recommended Posts

Before i start i have go not much php knowledge so dont give it to me in jargon that i wont understand.

 

Basically i have setup a script that when the user puts there email in its send an email to me stating the email as the title and another email to the person saying that we have recieved it.

 

The problem i have is that the email a new person gets automatically goes in their junk box and the sender is [email protected]

 

Now thats rubbish and i dont want it to be that i want it to be [email protected]

 

Heres the code for the process page im using.

 

<?php
  $email = $_REQUEST['email'] ;
  $message = $_REQUEST['message'] ;
  $to = $_REQUEST['email'] ;
  $subject = "WoW Base";
  $body = "
  
Hello,\n

We have recieved your email. As soon as we have a precise date for opening we will email it to you.\n

After we fully open you will recieve a monthly newsletter. If you dont wish to recieve it then please reply to this email stating that.\n

WoW Base\n";

  mail( "$email", "WoW Base Email Notification", "$body", "$email" );

  mail( "[email protected]", "Newsletter & Opening Email",
    $message, "From: $email" );
  header( "Location: http://www.wow-base.co.uk/" );

?>

 

www.wow-base.co.uk

 

Thats the site its all working but not right as i have said at the top.

 

Thanks to any that can help.

 

Link to comment
https://forums.phpfreaks.com/topic/154686-solved-email-system/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.