File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change 1717$ platform_email ['SMTP_PASS ' ] = '' ;
1818$ platform_email ['SMTP_CHARSET ' ] = 'UTF-8 ' ;
1919$ platform_email ['SMTP_UNIQUE_SENDER ' ] = 0 ; // to send all mails from the same user
20+ $ platform_email ['SMTP_DEBUG ' ] = 0 ; // change to 1 to enable smtp debug
21+ $ platform_email ['SMTP_SECURE ' ] = 'tls ' ; // if you're using SSL: ssl; or TLS: tls. (only used if SMTP_AUTH==1)
Original file line number Diff line number Diff line change @@ -7877,7 +7877,11 @@ function api_mail_html(
78777877 $ mail ->SMTPAuth = 1 ;
78787878 $ mail ->Username = $ platform_email ['SMTP_USER ' ];
78797879 $ mail ->Password = $ platform_email ['SMTP_PASS ' ];
7880+ if (isset ($ platform_email ['SMTP_SECURE ' ])) {
7881+ $ mail ->SMTPSecure = $ platform_email ['SMTP_SECURE ' ];
7882+ }
78807883 }
7884+ $ mail ->SMTPDebug = isset ($ platform_email ['SMTP_DEBUG ' ])?$ platform_email ['SMTP_DEBUG ' ]:0 ;
78817885
78827886 // 5 = low, 1 = high
78837887 $ mail ->Priority = 3 ;
You can’t perform that action at this time.
0 commit comments