I'm not sure who to ask this question, because it's an interoperability issue. I need to be able to send SMTP email through PHP4 on a Windows network. This is a large WAN situation (I think the mail servers are in OH. I'm in AZ, as is my PHP/IIS installation.), so I can't do much experimenting with changing settings on the server. I need to know what will work, before I request any changes.
At the moment, I'm getting "Warning: mail(): SMTP server response: 454 5.7.3 Client was not authenticated. in c:inetpubwwwrootsendmail.php on line 6" errors, using the following code.
This is sendmail.php
$email = $_REQUEST['email'] ;
$message = $_REQUEST['message'] ;
mail( "firstname.lastname@example.org", "Feedback Form Results",
$message, "From: $email" );
<form method="post" action="sendmail.php">
Email: <input name="email" type="text" /><br />
<textarea name="message" rows="15" cols="40">
<input type="submit" />
So...CAN these technologies play nicely together? If so, what do I need to do to make it happen?
Thanks! (This is my first question. See if you can impress me. ;-D )