We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 30552
    • 75 Posts
    Quote from: mmjaeger at Nov 11, 2009, 02:44 PM

    thanks - tried to send a newsletter to my email address - however, although temailer tells me that it was successful, I’m not getting anything?

    That’s typically another matter entirely. It may depend on your web host. If you have access to error logs, make sure you check them, but typically this problem results from something other than TEmailer code. For instance, I myself have trouble making this work from a GoDaddy-hosted site, but it works for lots of other people hosted at lots of other places.

    Don’t forget to check all spam filters as well.
      • 19889
      • 616 Posts
      got the mail - however no content?
      how do I change the settings for the email headers - please see picture what I got
        • 30552
        • 75 Posts
        Quote from: mmjaeger at Nov 11, 2009, 02:59 PM

        got the mail - however no content?
        how do I change the settings for the email headers - please see picture what I got

        mmjaeger,

        In your manager, go to Modules, then Manage Modules, then click on "TE Mailer" to edit that module. On the next screen, select the Configuration tab. You can change the settings there, then save.
          • 19889
          • 616 Posts
          got you - any idea why there isn’t any content in the mail? the document has two paragraphs?
            • 19889
            • 616 Posts
            those settings don’t seem to have an effect at all - I’m still getting the same header info and no content?
              • 1039
              • 4 Posts
              Hi to all lovely modx people ;-)

              This module looks great but I’ve had no luck with it so far... I can’t even get it past stage one of the installation process... I’ve decompressed the zip so everything’s in assets/modules/temailer, then navigated to /install and it immediately comes up with the following error:

              MODx encountered the following error while attempting to parse the requested resource:
              « Execution of a query to the database failed - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ’s Extreme Sports Newsletter &folder=Newsletter Folder ID;int;69 &path=Path;text;’ at line 1 »
              SQL: INSERT INTO `garyki_1`.`garykingmodx_site_modules` (name,description,guid,properties,modulecode) VALUES(’TE Mailer’,’Used to send newsletters to a mailing list.’,’8b0a81074d86b2a9b46c021d24fb207c’,’&fromemail=Send Email From;string;[email protected]&fromname=From Name;string;Gary King’s Extreme Sports Newsletter &folder=Newsletter Folder ID;int;69 &path=Path;text;../assets/modules/temailer/’,’/*\n TE Mailer v1.5beta\n\n Author: Brandon Jones / Kevin Frey / TransEffect LLC\n Copyright: TransEffect LLC (http://www.transeffect.com)\n Description: Used to send bulk email (but not spam!) from within MODx\n\n Update History:\n 8-21-09 v1.5beta released\n 9-17-07 v1.0 released\n*/\n \ninclude_once($path . \’/temailer.php\’);’)

              :’(

              The name of the modules tables is garykingmodx_site_modules, and each of the fields are present in the database that it’s trying to insert into...

              I really need to get a newsletter plugin up and running asap and am running MODx 1.0.0 rev 5601 with PHP 5.1.6.

              I’d be really grateful if anyone’s got any ideas on this ;-)

              Thanks again to this great community!

                • 1039
                • 4 Posts
                My apologies - please ignore my last post - I foolishly had a single quote in the name of my newsletter!

                It’s been a long day ;-)
                  • 20335
                  • 4 Posts
                  I’m seeing the same problem as mmjaeger. Has anyone figured this out?

                  Thanks,
                  Mark
                    • 20335
                    • 4 Posts
                    Ok, well this is what I figured out so far. It took a little playing around, but I found that the POST data was getting from the form to send.php, but it was all going in under one POST variable $_POST[’postBody’] as a string. I used parse_str to split it up in to an array, so that each variable could be used.


                    I changed the following section of code in the AJAX/send.php file.

                    From:
                    	//get post items
                    	$id = isset($_POST['newsletter']) ? $_POST['newsletter'] : -1;
                    	$subject = isset($_POST['subject']) ? $_POST['subject'] : 'Your Newsletter';
                    	$testemail = isset($_POST['testemail']) ? $_POST['testemail'] : '';	
                    	$fromemail = isset($_POST['fromemail']) ? $_POST['fromemail'] : '[email protected]';
                    	$fromname = isset($_POST['fromname']) ? $_POST['fromname'] : 'The Newsletter Mailer';
                    	$intro = isset($_POST['intro']) ? $_POST['intro'] : '';
                    


                    To:
                    	//get post items
                    	$posttext= isset($_POST['postBody']) ? $_POST['postBody'] : '';
                    	parse_str($posttext,$postarray);
                    	$id = isset($postarray['newsletter']) ? $postarray['newsletter'] : -1;
                    	$subject = isset($postarray['subject']) ? $postarray['subject'] : 'Your Newsletter';
                    	$testemail = isset($postarray['testemail']) ? $postarray['testemail'] : '';	
                    	$fromemail = isset($postarray['fromemail']) ? $postarray['fromemail'] : '[email protected]';
                    	$fromname = isset($postarray['fromname']) ? $postarray['fromname'] : 'The Newsletter Mailer';
                    	$intro = isset($postarray['intro']) ? $postarray['intro'] : '';
                    



                    Hope this helps someone.

                    Mark P.
                      • 16194
                      • 103 Posts
                      What else needs to be changed to make this work?
                        Impossible is nothing - with ModX