Created
January 31, 2020 09:33
-
-
Save danielstrelec/1adb3c6a1a3bbc56de438840531e9177 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// zasílání e-mailů přes SMTP bez pluginu | |
function wt_smtp( PHPMailer $mail ) { | |
$mail->Host = 'smpt.server'; | |
$mail->Port = 465; | |
$mail->SMTPSecure = 'tls'; | |
$mail->Username = 'jmeno'; | |
$mail->Password = 'heslo'; | |
$mail->SMTPAuth = true; | |
$mail->IsSMTP(); | |
} | |
add_action( 'phpmailer_init', 'wt_smtp' ); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment