cpharry Posted April 18, 2009 Share Posted April 18, 2009 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. Quote Link to comment https://forums.phpfreaks.com/topic/154686-solved-email-system/ Share on other sites More sharing options...
jackpf Posted April 18, 2009 Share Posted April 18, 2009 The From: $email should succeed in adding the author to the email. Unless...$email is not a valid email address? Try putting in your email address instead of $email and see what happens. Quote Link to comment https://forums.phpfreaks.com/topic/154686-solved-email-system/#findComment-813431 Share on other sites More sharing options...
cpharry Posted April 18, 2009 Author Share Posted April 18, 2009 No still get the from thing saying [email protected] There has to be a way that i can make that change from that into WoW Base. Quote Link to comment https://forums.phpfreaks.com/topic/154686-solved-email-system/#findComment-813435 Share on other sites More sharing options...
beebosoft Posted April 18, 2009 Share Posted April 18, 2009 I set all my email addresses before i write the email and then just put the variables into where they want to be $radd = "myemail"; mail( $radd, $subject, $mail, "From: $email" ); Not sure if that will help you. Angie Quote Link to comment https://forums.phpfreaks.com/topic/154686-solved-email-system/#findComment-813438 Share on other sites More sharing options...
cpharry Posted April 18, 2009 Author Share Posted April 18, 2009 Thanks everyone i have solved the problem thanks to the posts here. After looking carfully a spark lit in my head Thanks once more. Quote Link to comment https://forums.phpfreaks.com/topic/154686-solved-email-system/#findComment-813442 Share on other sites More sharing options...
soak Posted April 18, 2009 Share Posted April 18, 2009 Can you tell us how you solved it please? That way, if someone finds this thread in a search they may benefit from it. Quote Link to comment https://forums.phpfreaks.com/topic/154686-solved-email-system/#findComment-813445 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.