14 Replies Latest reply on Sep 25, 2009 7:57 PM by RossRitchey

    I'M WITH STUPID! sendmail.cfm hack not working...

    sabby76 Level 1

      Hi, I'm a lonely, stupid, ignorant person whom is not interested in code or building a sendmail page. I can however, build a frameset in DreamWeaver and up load its page's and content onto the net using filezilla and a webhosting client, I can even build my own btn bar with a get URL content mainframe code...arrrggghh. But then stupid comes back and say's, "use a 2004 mx flash tutorial from the 2004 Flash MX bible, and insert its SWF file from a Flash FLA  from chapter 30" and guess what...It doe's not work! ooohHa! And a little horn apears, as a saintly brow turn's into a not so saintly V shaped furrow. Please, can anyone help, stupid?

      I need to know how to alter the sendmail code, to send email's to enquires@hotmail.com from the contact page on the http://www.pizzapal.co.uk website.

       

      function sendComments() {
      var sender:LoadVars = new LoadVars();
      var responder:LoadVars = new LoadVars();
      responder.onLoad = function(success){
        if (success) {
         _global.serverTime = this.timeDate;
         _root.gotoAndStop("output");
        } else {
         _root.gotoAndStop("error");
        }
      };
      sender.fromEmail = fromEmail_txt.text;
      sender.fromName = fromName_txt.text;
      sender.body = comments_txt.text;
      sender.sendAndLoad("http://enquires@pizzapal.co.uk ", responder, "POST");
      _root.gotoAndStop("wait");
      };
      this._lockroot = true;

       

      Right? Wrong?  Plus, what file do upload onto my server to accomapy the SWF sendmail.cfm page.

      Many thanks for reading and I hope it was entertaining because actors like me and Joey are important to.

      The sendmail_cfm.swf is attached.

        • 1. Re: I'M WITH STUPID! sendmail.cfm hack not working...
          RossRitchey Level 4

          1. The enquires@hotmail.com replaces the email in the sendmail.cfm page.

          2. The sendAndLoad() call should point to the sendmail.cfm page.

           

          The script essentially works like this:

           

          sender.fromEmail = fromEmail_txt.text; //grab the from email from the form field and set it to the 'sender' LoadVars object
          sender.fromName = fromName_txt.text; //grab the from name from the form field and set it to the 'sender' LoadVars object
          sender.body = comments_txt.text; //grab the email body from the form field and set it to the 'sender' LoadVars object
          
          sender.sendAndLoad("/path/to/sendmail.cfm", responder, "POST"); //send the 'sender' LoadVars object to the sendmail.cfm page, so that cfm can send the email, and put any return information into the 'responder' LoadVars object.
          
          • 2. Re: I'M WITH STUPID! sendmail.cfm hack not working...
            sabby76 Level 1

            Thank you for replying Ross

            I've tried replacing the address line

             

            sender.sendAndLoad("http://enquires@pizzapal.co.uk ", responder, "POST");

             

            with

             

            sender.sendAndLoad("http://enquires@hotmail.com ", responder, "POST");

             

            No Luck!

            • 3. Re: I'M WITH STUPID! sendmail.cfm hack not working...
              RossRitchey Level 4

              Again,

               

              The email goes in the sendmail.cfm page NOT the SWF.

               

              The sendAndLoad() call points to the sendmail.cfm page:

               

              sender.sendAndLoad("http://path/to/sendmail.cfm",responder,"POST");

              • 4. Re: I'M WITH STUPID! sendmail.cfm hack not working...
                sabby76 Level 1

                How do put the email enquires@pizzapal.co.uk in the sendmail page?

                 

                Date: Wed, 23 Sep 2009 11:55:10 -0600

                From: forums@adobe.com

                To: sunsabbath76@hotmail.com

                Subject: I'M WITH STUPID! sendmail.cfm hack not working...

                 

                Again,

                 

                The email goes in the sendmail.cfm page NOT the SWF.

                 

                The sendAndLoad() call points to the sendmail.cfm page:

                 

                sender.sendAndLoad("http://path/to/sendmail.cfm",responder,"POST");

                >

                • 5. Re: I'M WITH STUPID! sendmail.cfm hack not working...
                  sabby76 Level 1

                  Hi Ross and sorry for all the confusion

                  The forth line in this script doe's not exsist in the original script found in Flash MX 2004 Bible tutorial CD chapter 30. I've just noticed it doe's exsist however, in the flash 2004 MX Bible and so I've added it to the cfm.swf but it did not work. The original script from the 2004 MX Bible tutorial CD is copy pasted below just for comparative resaons. Please, I really do not understand your commands. So please once more will you just alter the script and I will copy paste it back into the swf.

                   

                  function sendComments() {
                  var sender:LoadVars = new LoadVars();
                  var responder:LoadVars = new LoadVars();
                  var scriptURL:String = "http://www.pizzapal.co.uk/sendmail.cfm";
                  responder.onLoad = function(success){
                    if (success) {
                     _global.serverTime = this.timeDate;
                     _root.gotoAndStop("output");
                    } else {
                     _root.gotoAndStop("error");
                    }
                  };
                  sender.fromEmail = fromEmail_txt.text;
                  sender.fromName = fromName_txt.text;
                  sender.body = comments_txt.text;
                  sender.sendAndLoad("http://enquires@pizzapal.co.uk/sendmail.cfm", responder, "POST");
                  _root.gotoAndStop("wait");
                  };
                  this._lockroot = true;

                   

                  Flash MX 2004 Bible C.D script

                   

                  function sendComments() {
                  var sender:LoadVars = new LoadVars();
                  var responder:LoadVars = new LoadVars();
                  responder.onLoad = function(success){
                    if (success) {
                     _global.serverTime = this.timeDate;
                     _root.gotoAndStop("output");
                    } else {
                     _root.gotoAndStop("error");
                    }
                  };
                  sender.fromEmail = fromEmail_txt.text;
                  sender.fromName = fromName_txt.text;
                  sender.body = comments_txt.text;
                  sender.sendAndLoad("http://www.flashsupport.com/sendmail.cfm", responder, "POST");
                  _root.gotoAndStop("wait");
                  };
                  this._lockroot = true;

                  • 6. Re: I'M WITH STUPID! sendmail.cfm hack not working...
                    sabby76 Level 1

                    I'm sorry not to understand your commands. Please look at the last posting, it may help you to understand that enquires@hotmail.com was meant to be enquires@pizzapal.co.uk

                    • 7. Re: I'M WITH STUPID! sendmail.cfm hack not working...
                      RossRitchey Level 4

                      Your code should look like this:

                       

                      function sendComments() {
                      var sender:LoadVars = new LoadVars();
                      var responder:LoadVars = new LoadVars();
                      var scriptURL:String = "http://www.pizzapal.co.uk/sendmail.cfm";
                      responder.onLoad = function(success){
                        if (success) {
                         _global.serverTime = this.timeDate;
                         _root.gotoAndStop("output");
                        } else {
                         _root.gotoAndStop("error");
                        }
                      };
                      sender.fromEmail = fromEmail_txt.text;
                      sender.fromName = fromName_txt.text;
                      sender.body = comments_txt.text;
                      sender.sendAndLoad(scriptURL, responder, "POST");
                      _root.gotoAndStop("wait");
                      };
                      this._lockroot = true;

                       

                      And then, open the sendmail.cfm page in Dreamweaver or another text editor, find the email address the script is sending to (I am assuming this is part of the tutorial in the book as well...) and change it to your enquires@pizzapal.co.uk

                       

                      Upload the SWF, and the CFM and it should work.... assuming your web host server runs coldfusion scripting.

                      • 8. Re: I'M WITH STUPID! sendmail.cfm hack not working...
                        sabby76 Level 1

                        Please can anyone remove the report abuse icon because I cannot continue with this thread.

                         

                        Sabby76

                         

                        Thanks Ross

                         

                        I accidentally deleted a content folder from the frameset and that meant due to low practical skills in Dreamweaver, I went ahead a deleted the whole site instend of renaming a secondary copy. I then built the frameset up again this evening after going for a walk to cool down, it was one way geetting to know Dreamweaver a little better. The time gave also an oppotunity to think about the sendmail problem and thing's were clearing on the return home, so I sat down a dragged in some new file's from the tutorial C.D and started again, with a copy paste from your email. Thank's once again, it was your advise that truned my attention to the sendmail.cfm, which incidentally, I had over looked on the first attempt's to get the contact's page running. It still doe's not return mail though, so I thought might like to have a look at the script from the sendmail.cfm file... {

                         

                         

                         

                         

                         

                         

                         

                        I hope I carried out your advice correctly and notice also the server port, which I have changed from 23 to 21 and the the servers I.D also was scrubbed in favor to my hosting clients. I've sent then a question on this subject, regarding your question on weather or not their server run's cfm, I will inform of their answer and keep trying anyway.

                         

                         

                         

                        sabby76

                         

                         

                         

                        Date: Wed, 23 Sep 2009 12:48:52 -0600

                        From: forums@adobe.com

                        To: sunsabbath76@hotmail.com

                        Subject: I'M WITH STUPID! sendmail.cfm hack not working...

                         

                        Your code should look like this:

                         

                        function sendComments() {

                        var sender:LoadVars = new LoadVars();

                        var responder:LoadVars = new LoadVars();

                        var scriptURL:String = "http://www.pizzapal.co.uk/sendmail.cfm";

                        responder.onLoad = function(success){

                          if (success) {

                           _global.serverTime = this.timeDate;

                           _root.gotoAndStop("output");

                          } else {

                           _root.gotoAndStop("error");

                          }

                        };

                        sender.fromEmail = fromEmail_txt.text;

                        sender.fromName = fromName_txt.text;

                        sender.body = comments_txt.text;

                        sender.sendAndLoad(scriptURL, responder, "POST");

                        _root.gotoAndStop("wait");

                        };

                        this._lockroot = true;

                         

                        And then, open the sendmail.cfm page in Dreamweaver or another text editor, find the email address the script is sending to (I am assuming this is part of the tutorial in the book as well...) and change it to your mailto:enquires@pizzapal.co.uk

                         

                        Upload the SWF, and the CFM and it should work.... assuming your web host server runs coldfusion scripting.

                        >

                        • 9. Re: I'M WITH STUPID! sendmail.cfm hack not working...
                          RossRitchey Level 4

                          If you want, you can post the files up here and I will take a look at them for errors.

                          • 10. Re: I'M WITH STUPID! sendmail.cfm hack not working...
                            sabby76 Level 1

                            Hi Ross, I've been busy getting one and it's other thing done lately, including asking my hosting client about what their server is able to run under

                            sripting languages. It transpired that ColdFusion was not one of them, so I've upgraded from a starter package to a plus package that runs asp and php. I'm now trying to get an asp script running, here is the script from the sendmail.asp.

                             

                            <%
                            ' Put your SMTP Mail server here. If you do not know, ask your network administrator
                            smtpServer = "194.154.164.103"
                            smtpPort = 21

                            ' ---
                            dim smtpServer, smtpPort


                            Set message = CreateObject ("JMail.Message")
                            'message.ServerAddress = smtpServer & ":" & smtpPort
                            message.From = Request.Form("fromEmail")
                            message.FromName = Request.Form("fromName")
                            message.Subject = "Flash Movie Feedback"
                            message.AddRecipient "enquires@pizzapal.co.uk", "Mark Poole"
                            message.ContentType = "text/html" ' or you can put 'text/plain' for plain text emessage
                            message.ISOEncodeHeaders = false
                            message.ContentTransferEncoding = "8bit"
                            message.Body = Request.Form("body")

                            ' 1 - highest priority (Urgent) ' 3 - normal ' 5 - lowest
                            message.Priority = 3


                            ' Add sender's IP address (not required, but useful for web-based emessage)
                            'message.AddHeader "Originating-IP", Request.ServerVariables ("REMOTE_ADDR")

                            'Send the e-mail
                            message.Send(smtpServer & ":" & smtpPort)
                            Response.write "success=1&timeDate=" & Server.URLEncode(message.Date) & "&end=1"
                            set message = nothing
                            %>

                             

                            There is a lot of advise that I do not understand please can you make sence of the jargon ect and talk some pseudo sense.

                            • 11. Re: I'M WITH STUPID! sendmail.cfm hack not working...
                              sabby76 Level 1

                              Hi Ross

                              I'm going to keep this updated as a go forward. In asp I changed the ports and looked up what smpt was required and updated the script the original script is included underneath...

                               

                              <%
                              ' Put your SMTP Mail server here. If you do not know, ask your network administrator
                              smtpServer = "pop3.live.com "
                              smtpPort = 995

                              ' ---
                              dim smtpServer, smtpPort


                              Set message = CreateObject ("JMail.Message")
                              'message.ServerAddress = smtpServer & ":" & smtpPort
                              message.From = Request.Form("fromEmail")
                              message.FromName = Request.Form("fromName")
                              message.Subject = "Flash Movie Feedback"
                              message.AddRecipient "enquires@pizzapal.co.uk", "Mark Poole"
                              message.ContentType = "text/html" ' or you can put 'text/plain' for plain text emessage
                              message.ISOEncodeHeaders = false
                              message.ContentTransferEncoding = "8bit"
                              message.Body = Request.Form("body")

                              ' 1 - highest priority (Urgent) ' 3 - normal ' 5 - lowest
                              message.Priority = 3


                              ' Add sender's IP address (not required, but useful for web-based emessage)
                              'message.AddHeader "Originating-IP", Request.ServerVariables ("REMOTE_ADDR")

                              'Send the e-mail
                              message.Send(smtpServer & ":" & smtpPort)
                              Response.write "success=1&timeDate=" & Server.URLEncode(message.Date) & "&end=1"
                              set message = nothing
                              %>

                              <%
                              ' Put your SMTP Mail server here. If you do not know, ask your network administrator
                              smtpServer = "127.0.0.1"
                              smtpPort = 25

                              ' ---
                              dim smtpServer, smtpPort


                              Set message = CreateObject ("JMail.Message")
                              'message.ServerAddress = smtpServer & ":" & smtpPort
                              message.From = Request.Form("fromEmail")
                              message.FromName = Request.Form("fromName")
                              message.Subject = "Flash Movie Feedback"
                              message.AddRecipient "robert@theMakers.com", "Robert Reinhardt"
                              message.ContentType = "text/html" ' or you can put 'text/plain' for plain text emessage
                              message.ISOEncodeHeaders = false
                              message.ContentTransferEncoding = "8bit"
                              message.Body = Request.Form("body")

                              ' 1 - highest priority (Urgent) ' 3 - normal ' 5 - lowest
                              message.Priority = 3


                              ' Add sender's IP address (not required, but useful for web-based emessage)
                              'message.AddHeader "Originating-IP", Request.ServerVariables ("REMOTE_ADDR")

                              'Send the e-mail
                              message.Send(smtpServer & ":" & smtpPort)
                              Response.write "success=1&timeDate=" & Server.URLEncode(message.Date) & "&end=1"
                              set message = nothing
                              %>

                              Hope it helps know, I'm not going to anything until your reply.

                              • 12. Re: I'M WITH STUPID! sendmail.cfm hack not working...
                                sabby76 Level 1

                                sendmail.swf

                                 

                                function sendComments() {
                                var sender:LoadVars = new LoadVars();
                                var responder:LoadVars = new LoadVars();
                                var scriptURL:String = "http://www.pizzapal.co.uk./sendmail.asp";
                                responder.onLoad = function(success){
                                  if (success) {
                                   _global.serverTime = this.timeDate;
                                   _root.gotoAndStop("output");
                                  } else {
                                   _root.gotoAndStop("error");
                                  }
                                };
                                sender.fromEmail = fromEmail_txt.text;
                                sender.fromName = fromName_txt.text;
                                sender.body = comments_txt.text;
                                sender.sendAndLoad(scriptURL, responder, "POST");
                                _root.gotoAndStop("wait");
                                }
                                this._lockroot = true;

                                 

                                 

                                sendmail.cfm

                                 

                                <%
                                ' Put your SMTP Mail server here. If you do not know, ask your network administrator
                                smtpServer = "mail.hotmail.com "
                                smtpPort = 25

                                ' ---
                                dim smtpServer, smtpPort


                                Set message = CreateObject ("JMail.Message")
                                'message.ServerAddress = smtpServer & ":" & smtpPort
                                message.From = Request.Form("fromEmail")
                                message.FromName = Request.Form("fromName")
                                message.Subject = "Flash Movie Feedback"
                                message.AddRecipient "enquires@pizzapal.co.uk", "Mark Poole"
                                message.ContentType = "text/html" ' or you can put 'text/plain' for plain text emessage
                                message.ISOEncodeHeaders = false
                                message.ContentTransferEncoding = "8bit"
                                message.Body = Request.Form("body")

                                ' 1 - highest priority (Urgent) ' 3 - normal ' 5 - lowest
                                message.Priority = 3


                                ' Add sender's IP address (not required, but useful for web-based emessage)
                                'message.AddHeader "Originating-IP", Request.ServerVariables ("REMOTE_ADDR")

                                'Send the e-mail
                                message.Send(smtpServer & ":" & smtpPort)
                                Response.write "success=1&timeDate=" & Server.URLEncode(message.Date) & "&end=1"
                                set message = nothing
                                %>

                                I give up for 24hrs or any suggestions?

                                • 13. Re: I'M WITH STUPID! sendmail.cfm hack not working...
                                  sabby76 Level 1

                                  Hi, Ross, I posted this earlier wondered weather you could help? Attached is a gif of both the flash and dreamweaver sendmail.asp sendmail_asp.swf file in the respective G.U.I's.

                                   

                                  Hi, I'm a learner with basic dreamweaver skills. I've attached a gif with a printscreen from dreamweaver and flash both are 2004 mx. I've recieved one email from the contact sendmail page from www.pizzapal.co.uk. I need some advise as to why the contact page doe's not display information from the output label and why the emails no longer arrive @ enquires@pizzapal.co.uk. The enquires email address is linked to sunsabbath76@hotmail.com and that is the port and smpt I've used.

                                   

                                  Many thanks for reading and I hope you can offer some straight forward steps because, once again I'm a beginner.

                                   

                                  Sabby76

                                   

                                   

                                   

                                  Date: Thu, 24 Sep 2009 05:46:59 -0600

                                  From: forums@adobe.com

                                  To: sunsabbath76@hotmail.com

                                  Subject: I'M WITH STUPID! sendmail.cfm hack not working...

                                   

                                  If you want, you can post the files up here and I will take a look at them for errors.

                                  >

                                  • 14. Re: I'M WITH STUPID! sendmail.cfm hack not working...
                                    RossRitchey Level 4

                                    One thing I notice right away is that the AddRecipient is backwards.  The name should go first, then the email:

                                     

                                    message.AddRecipient "Mark Poole", "enquires@pizzapal.co.uk"

                                     

                                    I'm not sure about the RTMP/Port issues with redirecting to a different email address, but my guess is that you should be using the email that corresponds with that RTMP server, not the enquires@pizzapal.co.uk.