We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 16829
    • 4 Posts
    My e-mail server requires authentication.
    Set up the parameters required to file eform.inc.php but got no success.

    What could help me.

    The next part of a configuration

    $mail->Host = "smtpserver";
    $mail->Hostname = "smtpserver";
    $mail->SMTPAuth = true;
    $mail->CharSet = $modx->config['modx_charset'];
    $mail->Username = "login";
    $mail->Password = "xxx";
    $mail->SMTPDebug = true;
    $mail->Mailer = "smtp";
    $mail->IsHTML(true);
    $mail->Sender   = $to;
    $mail->From		= $modx->config['emailsender'];
    $mail->FromName	= $modx->config['site_name'];
    $mail->Subject	= $_lang['ef_mail_abuse_subject'];
    $mail->Body		= $body;
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      There are several section for configuring the mail; that’s just the one for reporting abuse. You’ll need to scroll down in the file a bit to find the section that actually sends the regular report.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 16829
        • 4 Posts
        Thank you for your reply,

        Find the error and is already working.

        Was just missing a few parameters.

        The class phpmailer has a great documentation.