Jump to content

Archived

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

schilders

Email Help Needed

Recommended Posts

Good Evening,

I'm using Dreamweaver 8 to create a registration site. I need to send an email to a registered user confirming their login credentials. I attempted to use the code pasted below:
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<?php
$UserName=$_POST['UserName'];
$Password=$_POST['Password'];
$Email=$_POST['EmailAddress'];
$to= $_POST['EmailAddress'];
$subject= "Login Credentials for Seeding the Future Registration Site";
$receiptMessage = "Thank You for Creating a User Name for the Seeding the Future Registration Site\n\n\nHere is what you submitted to us\n\n"
."User Name: ".$UserName. "\n"
."Password: ".$Password. "\n"
."Email: ".$Email. "\n"
mail($to,$subject,$receiptMessage);
?>
However, when I loaded the page to my server I received an error message:
Parse error: parse error, unexpected T_STRING in /usr/local/apache/htdocs/seeding_staging_sid/user_registration.php on line 123
where line 123 is my mail statement.

Thanks, in advance, for your help.

Share this post


Link to post
Share on other sites
Add a semicolon (;) after you give $receiptMessage the value (before the mail statement).

Otio.

Share this post


Link to post
Share on other sites

×

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.