[telenet_smtp]=‘smtp.telenet.be’;
[user]=‘site@telenet.be’;
[user_pw]=‘password’;
[from]=‘sender@telenet.be’;
[to]=‘receiver@telenet.be’;
[subject]=‘mijn uitnodiging’;
[message]=“http file or string”);
[glo_copies]=’’;
[attached]=’’;
sc_mail_send([telenet_smtp], [user], [user_pw], [from], [to], [subject], [message], ‘H’, [glo_copies], ‘CCC’, ‘25’, ‘N’, [attached]);
When i send to port 25 and no encryption it works fine, but there are webproviders who drop the mail and so not everyone receive my mails.
So i need to send it protected as TLS on port 587 but then i receive always errors
[SIZE=14px]Fatal error: Uncaught Swift_TransportException: Unable to connect with TLS encryption in C:\Program Files\NetMake\v9\wwwroot\scriptcase\prod hird\swift\classes\Swift\Transport\EsmtpTransport.php:315 Stack trace: #0 C:\Program Files\NetMake\v9\wwwroot\scriptcase\prod hird\swift\classes\Swift\Transport\AbstractSmtpTransport.php(118): Swift_Transport_EsmtpTransport->_doHeloCommand() #1 C:\Program Files\NetMake\v9\wwwroot\scriptcase\prod hird\swift\classes\Swift\Mailer.php(79): Swift_Transport_AbstractSmtpTransport->start() #2 C:\Program Files\NetMake\v9\wwwroot\scriptcase\app\crelanfriendsn\mailsend01\index.php(1535): Swift_Mailer->send(Object(Swift_Message), Array) #3 C:\Program Files\NetMake\v9\wwwroot\scriptcase\app\crelanfriendsn\mailsend01\index.php(2079): mailsend01_apl->controle() #4 {main} thrown in C:\Program Files\NetMake\v9\wwwroot\scriptcase\prod hird\swift\classes\Swift\Transport\EsmtpTransport.php on line 315[/SIZE]
Some one could help?
Thanks in advance,
William.