Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

swift mailer 530 Must issue a STARTTLS command first.

//encrytion should be set while using email library
$transport = (new Swift_SmtpTransport($smtp_server, $smtp_port))
                        ->setUsername($smtp_username)
                        ->setPassword($smtp_password)
                        ->setEncryption('tls');  //important to set encryption here.
Source by ourcodeworld.com #
 
PREVIOUS NEXT
Tagged: #swift #mailer #Must #issue #STARTTLS #command
ADD COMMENT
Topic
Name
1+2 =