Current location: Hot Scripts Forums » Programming Languages » PHP » Script to send e-mail doesn't work


Script to send e-mail doesn't work

Reply
  #1 (permalink)  
Old 12-02-05, 01:56 PM
NormanTang NormanTang is offline
Newbie Coder
 
Join Date: Sep 2005
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Script to send e-mail doesn't work

Hello.

I'm using this script in attempt to send a PHP e-mail, but when I try it out the result is a blank page. What am I doing wrong?

PHP Code:

<?php

    
echo "<p>Thank you, <b>$_POST[nickname]</b>, for your chapter!</p>";
    echo 
"<p>Your e-mail address is: <b>$_POST[email],/b>.</p>";
    echo 
"<p>Your chapter was:<br>";
    echo 
"$_POST[chapter] </p>";
    
//start building the mail string
    
$msg "Name:    $_POST[nickname]\n";
    
$msg .= "E-mail: $_POST[email]\n";
    
$msg .= "Chapter: $_POST[chapter]\n";
    
//set up the mail
    
$recipient "norman@normantang.net";
    
$subject "Chapters";
    
$mailheaders "From: My Web Site <norman@normantang.net> \n";
    
$mailheaders .= "Reply To: $_POST[email]";
    
//send the mail
    
mail($recipient$subject$msg$mailheaders);
    
?>
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
send mail to all msn contacts de_majoor Script Requests 2 09-20-05 01:56 PM
Mail Script Not Working Porkypine PHP 1 08-24-05 04:58 AM
PHP script problem (please help) osmanmumtaz PHP 0 05-24-05 07:29 AM
Script to send to all userID of a particular domain. etegration Script Requests 2 11-28-03 05:27 AM


All times are GMT -5. The time now is 06:22 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.