It it require special setup to use the sc_mail_send macro ?
I created a PHP button to execute e-mail transfer with the following code:
$message = "Hello <b> TEST </b>, ";
$message .= “<br><br>”;
$message .= “below follows the message sent by the user <b>TEST</b>.”;
$message .= “<br><br><br>”;
$message .= “<hr>”;
$message .= “<br />”;
$message .= “test test test test”;
$message .= “<br><hr>”;
sc_mail_send(“smtp.abcd.com”,
‘almond’,
‘password’,
“almond@abcd.com”,
“almond@abcd.com”,
“almond@abcd.com”,
“almond@abcd.com”,
“H”, “” , “”, “25”, “N”, “”);
if ({sc_mail_ok}) {
sc_alter(‘Message sent successfully!’);
} else {
sc_error_message(“There was a problem in sending! Please contact the System
Administrator through telephone (xx) xxxx-xxxx.”);
}
When executed under SC8, it show:
Fatal error: Uncaught exception ‘Swift_TransportException’ with message ‘Failed to authenticate on SMTP server with username “almond” using 1 possible authenticators’ in …
The password is valid.
On production environment, the screen become blank after click the confirmation message.
Is there any special requirement for the sc_mail_send to work, such SMTP server ?
Regards,
Almond Wong