Passing Parameters to a Mail Script
<p>I want to send an email from python using the below codes i wrote/reffered</p>

<pre><code>&lt;script&gt;
$(document).ready(function() {

    $("#form1").submit(function(){
        $("#form1").validationEngine();
        if($('div input[type=text]').val() != "")
    {
        var textfield2=document.getElementById("textfield2").value;
        var textarea=document.getElementById("textarea").value;
        var dataS=$("#form1").serialize();
        $.ajax({
            type: "POST",
            crossDomain: 'true',
            url: "mail.py",
            success: function( ){
                alert("completed");
            },
            error: function(){
                alert(dataS);
            }

        });
    }
    return false;  

    }); 

});
&lt;/script&gt;
</code></pre>

<p>For the mail part , i reffered the below google code </p>

<pre><code>from google.appengine.api import mail

mail.send_mail(sender="Example.com Support &lt;support@example.com&gt;",
              to="Albert Johnson &lt;Albert.Johnson@example.com&gt;",
              subject="Your account has been approved",
              body="""
Dear Albert:

Your example.com account has been approved.  You can now visit
http://www.example.com/ and sign in using your Google Account to
access new features.

Please let us know if you have any questions.

The example.com Team
""")
</code></pre>

<p>Now the question is , on ajax call .. How can i recieve the HTML parameters in the mail.py script? pls help i'm new to python</p>
