We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28042 ☆ A M B ☆
    • 24,524 Posts
    You missed the language files; in the lang folder. Line 13:
    $modx->TXNewsletters['txtlang']['subscribe_mod_msg'] = 'You can change your subscription or completly unsubscribe.';
    
      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
      • 9130
      • 171 Posts
      Quote from: carbonara at Aug 26, 2009, 01:01 PM

      Could someone let me know where the text that is displayed when the unsubscribe page is displayed is located please? The bit that says "You can change your subscription or completly unsubscribe.". I’ve done a search for the term and even just the work "subscription" on the whole downloaded Txnewsletters folder and it’s come up with a blank.
      It’s in the language files: /assets/modules/txnewsletters/lang/lang.english.inc.php
        • 4610
        • 24 Posts
        Thanks.

        It appears my windows search facility just isn’t working as it’s coming up blank searching even just on the lang folder. I’m now looking to get rid of the ">>" that seems to be inserted before eash message. I’ve deleted all the ones from the txnewsletters snippet but it’s none of those. I’ve changed the text in the variable "[’txtlang’][’subscribe_mod_edit_msg1’]" so i’m looking for the place that’s written out to screen to get rid of the ">>" before it. I would search for the string but windows won’t find it.
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          txnewsletters.inc.php, line 534.
              $html .='>> '.$modx->TXNewsletters['txtlang']['subscribe_mod_edit_msg1'].' <input type="submit" value="'.$modx->TXNewsletters['txtlang']['ok'].'" />'."\n";
          
            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
            • 4610
            • 24 Posts
            Thats great, thanks.
              • 24935
              • 160 Posts
              It’s line 15 in the language file:

              assets/modules/txnewsletters/lang/lang.english.inc.php
                • 26931
                • 2,314 Posts
                Hi everybody,

                i installed TXNewsletters0.9 on a MODx Evolution website without any problems, the module’s up and running, i can subscribe to a newsletter, but i get an error when i try to send one:
                Error during sending !
                Some newsletters have not been sent correctly.
                i tried every change to txnewsletters.inc.php mentioned in this thread, CURL is enabled and i’ve checked if emails will be sent to a freemail address (by requesting a new password via weblogin - it works), but i keep getting the error message...

                any further ideas what could cause the problem?

                thanks, j

                PHP Version 5.2.10
                  • 26931
                  • 2,314 Posts
                  Hi there,

                  ...is there a way to check if the TxNewsletter mail function is working on my server (besides running TxNewsletter), so that i know if the problem is my TxNewsletter installation, or my server?

                  thanks, j
                    • 28042 ☆ A M B ☆
                    • 24,524 Posts
                    It just uses the PHP mail() function in a loop. Check your server’s mail logs.
                      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
                      • 26931
                      • 2,314 Posts
                      Hi Susan,

                      [Thu Aug 27 17:46:00 2009] [error] [client 188...] ALERT - mail() - double newline in headers, possible injection, mail dropped (attacker ’188...’, file ’/pathtoassets/assets/modules/txnewsletters/txnewsletters.inc.php’, line 1536), referer: mydomain.com/manager/index.php?a=112&id=4

                      any ideas?