This topic is locked

smtp mail not working in 4.1 (288)

8/9/2007 10:52:48 AM
PHPRunner General questions
F
frocco author

Hello,
I am getting a 501 smtp error in 4.1 build 288
I verified that I can send a php mail using the mail function.
<?php

$to = "frocco@stemc.org";

$subject = "Hi!";

$body = "Hi,\n\nHow are you?";

if (mail($to, $subject, $body)) {

echo("<p>Message successfully sent!</p>");

} else {

echo("<p>Message delivery failed...</p>");

}

?>
The above works fine.
In my PHPRunner app, I get this error:
mail() [function.mail]: SMTP server response: 501 Syntax error, parameters in command "MAIL FROM:<PO Master>" unrecognized or missing
Thanks
Frank

Sergey Kornilov admin 8/9/2007

Make sure you have set FROM email address in PHPRunner (Security tab, User Login Settings dialog).

F
frocco author 8/9/2007

Thanks Sergey,
I don't know how I missed this.<g>
Regards,
Frank