0
에 매개 변수를 전달/메일의 경우내가 쓴 아래의 코드를 사용하여 파이썬에서 이메일을 보낼 메일 스크립트
<script>
$(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;
});
});
</script>
을 reffered, 난 구글 코드 아래 reffered
from google.appengine.api import mail
mail.send_mail(sender="Example.com Support <[email protected]>",
to="Albert Johnson <[email protected]>",
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
""")
이제 질문은, 아약스 전화 .. 어떻게 mail.py 스크립트에서 HTML 매개 변수를받을 수 있습니까? pls 내가 파이썬을 처음 사용하는 데 도움이