app_retrieve_pswd works well on local machine, but not on hosting server(LinuxShared)

Hi,

I have configured the app_retrieve_pswd (the form that does the job of automatically changing password and sending it to the user, if the password has been forgotten):

send_mail_message()

$mail_smtp_server = ‘smtp.gmail.com’; // SMTP server name or IP address
$mail_smtp_user = ‘myemail@gmail.com’; // SMTP user name
$mail_smtp_pass = ‘***********’; // SMTP password
$mail_from = ‘myemail@gmail.com’; // From email
$mail_to = [usr_email]; // To email
$mail_message = $param_message;
$mail_subject = {lang_subject_mail}; // Message body
$mail_format = ‘H’; // Message format: (T)ext or (H)tml

// Send email
sc_mail_send($mail_smtp_server,
$mail_smtp_user,
$mail_smtp_pass,
$mail_from,
$mail_to,
$mail_subject,
$mail_message,
$mail_format,
‘’,’’, ‘465’,‘S’);

if ({sc_mail_ok})
{
sc_alert({lang_mail_sended_ok} );
}
else
{
sc_erro_mensagem({sc_mail_erro});
}

This works fine on my local server (wamp), but not on the hosting server, giving the following error:

<<Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.>>

Look at the server error log … and correct your server settings. That’s not a SC problem …