Hi,
I have a form where I use both HTML and PHP.
The form’s action sends the data to a .php page (all data lists well):
<form id=“blog-submit-form” name=“blog-submit-form” method=“post” action=“essay-submitted-data.php” />
Also, upon Submit, the user is taken to a “Thank You” page (Also works well):
<input type=“submit” name=“submit” value=“Submit” etc… onclick=“window.open(‘essay-thankyou.php’)”>
I’ve written the php to send all the collected data to my email:
<?php
if(isset($_POST[‘submit’])) {
$to_address=“blog-guy@blog-guy.info”;
$subject=“Essay Submission Form”;
$lname = $_POST[‘lname’];
etc
etc
etc
$message="Input from your form.\r
";
$message .="Last Name: “.$S_lname.”\r
";
etc
etc
etc
$headers = 'From: '.$email."\r
“.'Reply-To: '.$email.”\r
".‘X-Mailer: PHP/’ . phpversion();
mail($to_address, $subject, $message, $headers); }
echo “<b>” . "Last Name: " . "</b> " . $lname . “<br />”;
etc
etc
etc
?>
The problem is with the line: mail($to_address,…); }
I get a SMTP 554 error. I know the SMTP 554 error means the server isn’t recognizing my email address. The msg in the error also says the host is seeing my email attempt as spam - but it’s not. It says the email needs to be authenticated. I’ve called my server people. The email address was obtained from my server. It’s a domain email (GoDaddy). They don’t know why it’s not recognizing it or what to do (or, at least the one guy I spoke to didn’t know).
If you ask why I have both $message and echo, the echo is for a list in the .php page, and the $message is for a list in the email. I’ve tried it w/o the echo but it still doesn’t send me the email.
Any thoughts?
Thanks.