Fatal error on online template -> New customer under SC9

When I click on New Customer button, the following error occurs

atal error: Uncaught Swift_TransportException: Connection could not be established with host localhost [Connection refused #61] in /Applications/Scriptcase/v9/wwwroot/scriptcase/prod/third/swift/classes/Swift/Transport/StreamBuffer.php:269 Stack trace: #0 /Applications/Scriptcase/v9/wwwroot/scriptcase/prod/third/swift/classes/Swift/Transport/StreamBuffer.php(62): Swift_Transport_StreamBuffer->_establishSocketConnection() #1 /Applications/Scriptcase/v9/wwwroot/scriptcase/prod/third/swift/classes/Swift/Transport/AbstractSmtpTransport.php(113): Swift_Transport_StreamBuffer->initialize(Array) #2 /Applications/Scriptcase/v9/wwwroot/scriptcase/prod/third/swift/classes/Swift/Mailer.php(79): Swift_Transport_AbstractSmtpTransport->start() #3 /Applications/Scriptcase/v9/wwwroot/scriptcase/app/onlineKiosk/register/register_apl.php(3058): Swift_Mailer->send(Object(Swift_Message), Array) #4 /Applications/Scriptcase/v9/wwwroot/scriptcase/app/onlineKiosk/register/register_apl.php(2954): register_apl->sendEmailRegister() #5 /Application in /Applications/Scriptcase/v9/wwwroot/scriptcase/prod/third/swift/classes/Swift/Transport/StreamBuffer.php on line 269

It seems like the send mail protocol of sc9 is not working

I think something has been setup wrong as it tries to find your webserver on localhost. As I think this is your development system it’s not very likely to find your mailserver there. So there must be a misconfigurations somewhere I guess.