We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 44363
    • 14 Posts
    Hi ,

    I have used the register extra which sends a activation mail to the users. Everthing was fine all of a sudden I noticed the module doesn't shoot email any more, even though I get message sent success message without any errors in the log

    Tried to trouble shoot:
    1. Checked issue with the server:
    Created a native php script on the server and it was successful. I received an email.

    2. Used bob rays quickemail snippet with debugging code: Got message sent status
    But I havent received any email ( email sending failed)

    3. I checked with formit hooks : same issue ( email sending failed)

    Getting "message sent" with no errors on log. But email not sent ( email sending failed)

    Any help? Appreciated!

    Thanks
    Shivanandan.L
    • Can you post your login register code?
        Benjamin Marte
        Interactive Media Developer
        Follow Me on Twitter | Visit my site | Learn MODX
        • 44363
        • 14 Posts
        Hello Ben,

        Her is the code

        [[!Register?
        &activationResourceId=`29`
        &activationEmailTpl=`lgnActivateEmailTpl`
        &activationEmailSubject=`Please activate your account!`
        &submittedResourceId=`30`
        &preHooks=`recaptcha`
        &useExtended=`1`
        &validate=`terms:equalTo=^1^`
        &customValidators=`equalTo`
        ]]

        Thanks
        Shivanandan.L
        • I would start by removing the &validate and &customValidator parameters to see if they are causing the issues if it sends the email one of them is the culprit.
            Benjamin Marte
            Interactive Media Developer
            Follow Me on Twitter | Visit my site | Learn MODX
            • 44363
            • 14 Posts
            Hello Ben,

            Tried your suggestion. No luck,

            FYI when I tried the forgot password option, The text which has to be sent as mail is displayed on screen. like so;

            --------
            subject:Password Retrieval Email
            BODY:

            checking6xx,

            To activate your new password, please click on the following link:

            http://universites.solutiq.com/index.php?id=33&lp=NNTA4ZHpuZjQ%253D&lu=Y2hlY2tpxxxbmc2

            If successful you can use the following password to login:

            Password: xxxxxxx

            If you did not request this message, please ignore it.

            Thanks,
            Site Administrator

            HEADER:Date: Thu, 29 Aug 2013 20:55:48 +0530 Return-Path: [email protected] From: SOLUTIQ Reply-To: [email protected] Message-ID: <[email protected]> X-Priority: 3 X-Mailer: PHPMailer (phpmailer.sourceforge.net) [version 2.0.4] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/html; charset="UTF-8"
            PARAMS:-oi -f [email protected]

            ---------

            Any idea why it is happening

            Thanks
            Shivanandan.L

              • 3749
              • 24,544 Posts
              First, take out the reCaptcha preHook for now. If that fails for some reason, the email won't be sent.

              It could very well be something at your host. Maybe they don't like the from address or its domain. Often, problems like this can be solved by switching to SMTP. Just set the SMTP System Settings, and MODX will use it for all email.
                Did I help you? Buy me a beer
                Get my Book: MODX:The Official Guide
                MODX info for everyone: http://bobsguides.com/modx.html
                My MODX Extras
                Bob's Guides is now hosted at A2 MODX Hosting
                • 44363
                • 14 Posts
                Hello Bobray,

                As you said, it was something to do with the host. I had to contact them to get it resolved.

                I will try SMTP settings in future. Thanks for the information

                Shivanandan.L