PHPMailer configuration

Karel Falber
2019-04-11 09:07

We recommend to use PHPMailer for sending emails from your website. The configuration should look like this:

    //Server settings
    $mail->SMTPDebug = 0;                       // Enable verbose debug output
    $mail->isSMTP();                                      // Set mailer to use SMTP
    $mail->Host = 'smtp.snackhost.eu';
    $mail->SMTPAuth = true;
    $mail->Username = 'your_whole_email';  // SMTP username
    $mail->Password = 'your_password';       // SMTP password
    $mail->SMTPSecure = 'ssl';
    $mail->Port = 465;           

You have to create email in SnackHost dasboard and use this email for sending              

Average rating: 1 (3 Votes)

You cannot comment on this entry