Example: Sending Email Using a Remote PHP Web Script

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • sara2006
    Forum Member
    • Apr 2006
    • 32

    #31
    Problem

    i did all things you said and the mail sends to my address but my mail address and subject and message dont show you know it sends without the setting in autoplay
    and it's my php file :


    // specify recipient email address
    $to="[email protected]";

    // send our email
    mail ("$to","$subject","$body","$from");

    ?>

    and i use ams6

    i'm sorry for my bad english
    thanks :lol
    Last edited by sara2006; 12-15-2006, 10:41 PM.

    Comment

    • adnan
      Forum Member
      • Aug 2006
      • 34

      #32
      thanks

      help





      Comment

      • adnan
        Forum Member
        • Aug 2006
        • 34

        #33
        i'm sorry for my bad english
        الأخت سارة يبدو أنك عربية

        أنا كذلك لا أجيد اللغه الانلجيزية

        دائما أذا أحتجت حاجه أسئلهم بالصور

        أتمنى أن تكون عربي

        لكي تفهميهم سؤالي باللغه الانجليزي

        لأني صفر بالانجليزي

        ملاحظه
        أكتب سؤالك بالعربي ممكن أجاوب عليه

        بالتوفيق

        Comment

        • white sky
          Forum Member
          • Oct 2005
          • 21

          #34
          good one mate:yes

          Comment

          • David REMD
            Indigo Rose Customer
            • Apr 2007
            • 173

            #35
            AMS 6.0 Submit to PHP

            Corey, I used your exact code in the mail.php file; changing only the email address. I used your sample project. I did receive an email, however, the email came through without any of the form input data (blank email). Here is the code in my mail.php file:

            PHP Code:
            <?php 

            // specify recipient email address 
            $to="[email protected]";

            // send our email 
            mail ("$to","$subject","$body");

            ?>
            Please help.

            Comment

            • Intrigued
              Indigo Rose Customer
              • Dec 2003
              • 6138

              #36
              If I may, Corey is no longer employed by Indigo Rose Corporation. Maybe another user or I.R. member will respond in his absence.
              Intrigued

              Comment

              • Ham
                Forum Member
                • Apr 2005
                • 189

                #37
                Maby this will help

                your php mail script
                PHP Code:
                <?php 

                // specify recipient email address 
                $to="[email protected]"

                // send our email 
                mail("$to","$from","$subject","$body"); 


                ?>

                on click
                Code:
                -- clear error variable
                error = 0;
                
                -- Get values from input fields
                from = Input.GetText("Input1");
                subject = Input.GetText("Input2");
                body = Input.GetText("Input3");
                
                -- check for empty fields and deliver errors if needed
                if String.Length(from) < 1 then
                Dialog.Message("ERROR", "Bla Bla.");
                error = 1;
                end
                if String.Length(subject) < 1 then
                Dialog.Message("ERROR", "Bla Bla.");
                error = 1;
                end
                if String.Length(body) < 1 then
                Dialog.Message("ERROR", "Bla Bla.");
                error = 1;
                end
                
                if error~=1 then
                -- if no errors exist, send the email now and give a confirmation dialog
                HTTP.Submit("http://www.yourwebsite.com/mail.php", {from=from, subject=subject, body=body}, SUBMITWEB_POST, 20, 80, nil, nil);
                Dialog.Message("Thanks", "Bla Bla ");
                
                end
                Seems to work here. If it doesnt chek your smtp.

                Comment

                Working...
                X