We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 26799
    • 177 Posts
    I compiled the curllib and read about it in the php manual. Now I’ve got a new problem.

    curl_exec doesn’t seem to like my install of modx or something. I say this because I can’t get it to output my src to the email. all I get is a "1", which tells me that it got the data but I can’t have it for some reason. I believe "curl" thinks that the document is empty and is defaulting to 1. I thought it might have something to do with "friendlyURLs" even though that seems to be codded into the snippet, but I turned it off and still nothing.

    http://us2.php.net/manual/en/function.curl-exec.php

    can anyone see why this wouldn’t work properly?
      • 7291
      • 129 Posts
      After a week of trying to figure out newsletter, finally got newsletter to subscribe/unsubscribe and send an email to a user. Can send and receive a msg html text ok. When I try and email a html web page from my website it says ’Your message had been sent!’ on the page. but when I have a look in my hotmail in box and try to read the message it says the following:

      The requested URL /modx-0.9.5/modx-0.9.5/index.php was not found on this server.

      Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


      My questions are:
      1) Is it possible to send a full web page directly from my website that uses photos or snippet calls such as wayfinder and ditto?
      2) Do I need to create a separate template to send?
      3) Is there restrictions on the length of an web page to be emailed?
      2) Is there a pre-formatted newsletter form that I should be using for sending a webdoc?

      Any assistance would make me the happiest guy on earth right now smiley
        [center]-- smiley --[/center]
        [center]New View Media - Custom Website Design[/center]
        [center]Custom Website Design & Marketing = Strategic Business![/center]
        • 26799
        • 177 Posts
        I think this snippet has been abandoned. I’m not sure but there are quite a few posts un-answered on this thread. is anyone actually using this snippet to send documents?
          • 7291
          • 129 Posts
          I was recomended this snippet a week ago, and have been trying to get it to work for a week. Is there another options out there to email web pages?

          Finding it really hard to get any answers...
            [center]-- smiley --[/center]
            [center]New View Media - Custom Website Design[/center]
            [center]Custom Website Design & Marketing = Strategic Business![/center]
            • 26799
            • 177 Posts
            I’m trying to work the bugs outta this snippet myself, if I can get it to work I’ll post it here, but it doesn’t look like there is another option readily available. you could probably find a third party scriptt hat would email a copy of a page based on a url. But nothing that is easily integrated with modx to my knowledge, sorry...
              • 7291
              • 129 Posts
              what bugs are you trying to work out?

              I’ve worked my way around a few, it’s just this last item(posted above) that’s seems to be the last hurdle.

                [center]-- smiley --[/center]
                [center]New View Media - Custom Website Design[/center]
                [center]Custom Website Design & Marketing = Strategic Business![/center]
                • 26799
                • 177 Posts
                I’ve got the script sending pages. But I can’t get it to send a modx site page. if I hard code a url into the script for use with curl it will send that url as long as it’s not a modx document. when I try to send a modx document it only send a "1". I’ve rendered yahoo, and some sites that the company I work for has built. but I can’t get it to render a modx document.


                the issue I’m having at this point is all about curllib. it’s sending me a boolean value instead of a rendered output. Yet it renders Yahoo.com. I wonder if anyone has this snippet working.
                  • 4873
                  • 11 Posts
                  I’ve got a similar problem (can’t send Modx pages) and came to this forum thinking that I might find a solution. However it looks like no one is paying attention to the questions posted here. Does anyone know whether KoopsMailingList can send Modx pages to a webgroup?

                  http://modxcms.com/KoopsMailinglistX-896.html

                  Best,

                  Cevic
                    • 28042 ☆ A M B ☆
                    • 24,524 Posts
                    No, it can’t. It uses its own members list and its own newsletter editor.
                      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
                      • 4873
                      • 11 Posts
                      Thanks Susan.

                      So is there any way we can get a similar function as the Newsletter snippet (i.e. sending users from a webgroup a modx page)?

                      Thanks,

                      Cevic