At my wits end with this. Was getting “cannot display file -HTTP550” error msg so I moved php file to the “cgi-bin” directory. Now I’m getting a “broken link” google msg.
html form tag:
<FORM action="../cgi-bin/mailtest.php" method="post" enctype="text/plain" onSubmit="return checkForm(this);">
php file:
[php]<?php
{
Warning: mail() [function.mail]: SMTP server response: 553 5.3.0 … DISCARD Spam Relay in \\HOSTING\DFS\20\9\8\5\2043295589\user\sites\marshallphotographic.com\www\phpmail.php on line 10
}
ini_set(“sendmail_from”,"[email protected]");
$toaddy = "[email protected]";
$fromaddy = "[email protected]";
$msgsubj = “testing phpmail”;
$msgbody = “This email was sent using the PHP mail() function. If you received this email than the PHP mailer is working fine.”;
if (mail($toaddy, $msgsubj, $msgbody, “From: $fromaddy”))
{
header( "Location: http://www.tristatecasinoparties.com/index.htm" ) ; }
else
{ header( "Location: http://www.tristatecasinoparties.com/blackjack.htm" ) ; }
?> [/php]