Problem Sending Mail from v8.1

How can this be resolved or is there any alternative or workaround?

I had no problem with sc_send_mail() function in the earlier version of scriptcase.

*/

/**

  • Send a simple email
    */

// Email parameters
$mail_smtp_server = $mail_smtp_server; // SMTP server name or IP address
$mail_smtp_user = $mail_smtp_user; // SMTP user name
$mail_smtp_pass = $mail_smtp_pass; // SMTP password
$mail_from = $mail_from; // From email
$mail_to = $mail_to; // To email
$mail_subject = ‘Test message’; // Message subject
$mail_message = ‘This is a test message.’; // Message body
$mail_format = ‘T’; // Message format: (T)ext or (H)tml
$mail_copies = ‘’; // List of the emails that will recieve the message
$mail_tp_copies = ‘’; // Type copies: BCC (Hiden copies) or CCC (Regular copies)
$mail_port = ‘465’; // Server port
$mail_tp_connection = ‘S’; // Connection security (S) or (N)

// Send email";
sc_mail_send($mail_smtp_server,
$mail_smtp_user,
$mail_smtp_pass,
$mail_from,
$mail_to,
$mail_subject,
$mail_message,
$mail_format,
$mail_copies,
$mail_tp_copies,
$mail_port,
$mail_tp_connection);

[TABLE=“class: scErrorTable, align: center, cellpadding: 0, cellspacing: 0”]
[TR]
[TD=“class: scErrorTitle, align: left”]Error[/TD]
[/TR]
[TR]
[TD=“class: scErrorMessage, align: center”]stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed[/TD]
[/TR]
[/TABLE]
[TABLE=“class: scErrorTable, align: center, cellpadding: 0, cellspacing: 0”]
[TR]
[TD=“class: scErrorTitle, align: left”]Error[/TD]
[/TR]
[TR]
[TD=“class: scErrorMessage, align: center”]stream_socket_client(): Failed to enable crypto[/TD]
[/TR]
[/TABLE]
[TABLE=“class: scErrorTable, align: center, cellpadding: 0, cellspacing: 0”]
[TR]
[TD=“class: scErrorTitle, align: left”]Error[/TD]
[/TR]
[TR]
[TD=“class: scErrorMessage, align: center”]stream_socket_client(): unable to connect to ssl://smtp.mail.yahoo.com:465 (Unknown error)[/TD]
[/TR]
[/TABLE]
Fatal error: Uncaught exception ‘Swift_TransportException’ with message ‘Connection could not be established with host smtp.mail.yahoo.com [ #0]’ in /Applications/NetMake/v81/wwwroot/scriptcase/prod/third/swift/classes/Swift/Transport/StreamBuffer.php:269 Stack trace: #0 /Applications/NetMake/v81/wwwroot/scriptcase/prod/third/swift/classes/Swift/Transport/StreamBuffer.php(62): Swift_Transport_StreamBuffer->_establishSocketConnection() #1 /Applications/NetMake/v81/wwwroot/scriptcase/prod/third/swift/classes/Swift/Transport/AbstractSmtpTransport.php(113): Swift_Transport_StreamBuffer->initialize(Array) #2 /Applications/NetMake/v81/wwwroot/scriptcase/prod/third/swift/classes/Swift/Mailer.php(79): Swift_Transport_AbstractSmtpTransport->start() #3 /Applications/NetMake/v81/wwwroot/scriptcase/app/S3/blank/index.php(1187): Swift_Mailer->send(Object(Swift_Message), Array) #4 /Applications/NetMake/v81/wwwroot/scriptcase/app/S3/blank/index.php(1607): blank_apl->controle() #5 {main} thrown in /Applications/NetMake/v81/wwwroot/scriptcase/prod/third/swift/classes/Swift/Transport/StreamBuffer.php on line 269

/**

  • Send a simple email
    */

// Email parameters
$mail_smtp_server = $mail_smtp_server; // SMTP server name or IP address
$mail_smtp_user = $mail_smtp_user; // SMTP user name
$mail_smtp_pass = $mail_smtp_pass; // SMTP password
$mail_from = $mail_from; // From email
$mail_to = $mail_to; // To email
$mail_subject = ‘Test message’; // Message subject
$mail_message = ‘This is a test message.’; // Message body
$mail_format = ‘T’; // Message format: (T)ext or (H)tml
$mail_copies = ‘’; // List of the emails that will recieve the message
$mail_tp_copies = ‘’; // Type copies: BCC (Hiden copies) or CCC (Regular copies)
$mail_port = ‘465’; // Server port
$mail_tp_connection = ‘N’; // Connection security (S) or (N)

// Send email";
sc_mail_send($mail_smtp_server,
$mail_smtp_user,
$mail_smtp_pass,
$mail_from,
$mail_to,
$mail_subject,
$mail_message,
$mail_format,
$mail_copies,
$mail_tp_copies,
$mail_port,
$mail_tp_connection);

Fatal error: Uncaught exception ‘Swift_TransportException’ with message ‘Connection to smtp.mail.yahoo.com:465 Timed Out’ in /Applications/NetMake/v81/wwwroot/scriptcase/prod/third/swift/classes/Swift/Transport/AbstractSmtpTransport.php:404 Stack trace: #0 /Applications/NetMake/v81/wwwroot/scriptcase/prod/third/swift/classes/Swift/Transport/AbstractSmtpTransport.php(289): Swift_Transport_AbstractSmtpTransport->_getFullResponse(0) #1 /Applications/NetMake/v81/wwwroot/scriptcase/prod/third/swift/classes/Swift/Transport/AbstractSmtpTransport.php(117): Swift_Transport_AbstractSmtpTransport->_readGreeting() #2 /Applications/NetMake/v81/wwwroot/scriptcase/prod/third/swift/classes/Swift/Mailer.php(79): Swift_Transport_AbstractSmtpTransport->start() #3 /Applications/NetMake/v81/wwwroot/scriptcase/app/S3/blank/index.php(1187): Swift_Mailer->send(Object(Swift_Message), Array) #4 /Applications/NetMake/v81/wwwroot/scriptcase/app/S3/blank/index.php(1607): blank_apl->controle() #5 {main} thrown in /Applications/NetMake/v81/wwwroot/scriptcase/prod/third/swift/classes/Swift/Transport/AbstractSmtpTransport.php on line 404

/**

  • Send a simple email
    */

// Email parameters
$mail_smtp_server = $mail_smtp_server; // SMTP server name or IP address
$mail_smtp_user = $mail_smtp_user; // SMTP user name
$mail_smtp_pass = $mail_smtp_pass; // SMTP password
$mail_from = $mail_from; // From email
$mail_to = $mail_to; // To email
$mail_subject = ‘Test message’; // Message subject
$mail_message = ‘This is a test message.’; // Message body
$mail_format = ‘T’; // Message format: (T)ext or (H)tml
$mail_copies = ‘’; // List of the emails that will recieve the message
$mail_tp_copies = ‘’; // Type copies: BCC (Hiden copies) or CCC (Regular copies)
$mail_port = ‘587’; // Server port
$mail_tp_connection = ‘N’; // Connection security (S) or (N)

// Send email";
sc_mail_send($mail_smtp_server,
$mail_smtp_user,
$mail_smtp_pass,
$mail_from,
$mail_to,
$mail_subject,
$mail_message,
$mail_format,
$mail_copies,
$mail_tp_copies,
$mail_port,
$mail_tp_connection);

Fatal error: Uncaught exception ‘Swift_TransportException’ with message ‘Expected response code 250 but got code “530”, with message "530 5.7.1 Authentication required "’ in /Applications/NetMake/v81/wwwroot/scriptcase/prod/third/swift/classes/Swift/Transport/AbstractSmtpTransport.php:383 Stack trace: #0 /Applications/NetMake/v81/wwwroot/scriptcase/prod/third/swift/classes/Swift/Transport/AbstractSmtpTransport.php(281): Swift_Transport_AbstractSmtpTransport->_assertResponseCode(‘530 5.7.1 Authe…’, Array) #1 /Applications/NetMake/v81/wwwroot/scriptcase/prod/third/swift/classes/Swift/Transport/EsmtpTransport.php(269): Swift_Transport_AbstractSmtpTransport->executeCommand(‘MAIL FROM:<whek…’, Array, Array) #2 /Applications/NetMake/v81/wwwroot/scriptcase/prod/third/swift/classes/Swift/Transport/EsmtpTransport.php(348): Swift_Transport_EsmtpTransport->executeCommand(‘MAIL FROM:<whek…’, Array) #3 /Applications/NetMake/v81/wwwroot/scriptcase/prod/third/swift/classes/Swift/Transport/AbstractSmtpTransport.php(416): Swift_Tra in /Applications/NetMake/v81/wwwroot/scriptcase/prod/third/swift/classes/Swift/Transport/AbstractSmtpTransport.php on line 383

[SIZE=20px]I get the same problem. Please help from parties involved to solve this problem[/SIZE]

Same here!

Hello all,
I got same problem and I’m stucked about it …
Did you solve the issue ?? Could you explain how ?
Thanks

Nope, I still have not solved the problem with the built-in SC marco and Scriptcase did not seem to have responded to the problem all these years.
I have yet to test if the function has been resolved for version 9.

Just managed to come across this post from Scriptcase regarding this problem and its solution.

https://support.scriptcase.net/en-us/article/1154-problems-sending-emails