0 Replies Latest reply on Oct 23, 2009 5:28 AM by sabby76

    sendmail.asp

    sabby76

      Hi
      I've filled
      .To = "comments@pizzapal.co.uk"
      I don't know what fills

      .From = "mail-address"
      ?


      Have a gander

      sendmail.asp file:

       

      <%
      sch = "http://schemas.microsoft.com/cdo/configuration/"

       

      Set cdoConfig = CreateObject("CDO.Configuration")

       

      With cdoConfig.Fields
      .Item(sch & "sendusing") = 2 ' cdoSendUsingPort
      .Item(sch & "smtpserver") = "intmail"
      .update
      End With

       

      Set cdoMessage = CreateObject("CDO.Message")

       

      With cdoMessage
      Set .Configuration = cdoConfig
      .From = "mail-address"
      .To = "comments@pizzapal.co.uk"
      .Subject = "13.31"
      .TextBody = "This is the Email Body"
      .Send
      End With

       

      Set cdoMessage = Nothing
      Set cdoConfig = Nothing
      %>

       

      FLA 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;