Error sending email with tennis control.
Hi, I created an application-type control to open a form where the user can send an email by writing the address that sends email address and receiving email
Send email = $ var_email_invio
Email receiving = $ var_email_to
But trying the email is not sent.
Where did I go wrong ???
$var_email_invio = {email_invio};
$var_oggetto = {oggetto};
$var_messaggio = {text};
/**
- Send a simple email
*/
// Email parameters
$mail_smtp_server = ‘smtp.AAAAAAA.com’; // SMTP server name or IP address
$mail_smtp_user = ‘info@AAAAAAA.com’; // SMTP user name
$mail_smtp_pass = ‘AAAAAAAA’; // SMTP password
$mail_from = $var_email_invio; // From email
$mail_to = $var_email_to; // To email
$mail_subject = $var_oggetto; // Message subject
$mail_message = $var_messaggio; // 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);