页面顶部显示一个问号,但我找不到。我只是想从一批电子邮件中发送一封测试电子邮件来验证内容。
<script type="text/javascript">
$(document).ready(function () {
$(function() {
$("#message_submit").live('click', function() {
alert('x');
$.ajax({
type: 'GET',
url: 'cfc/basic.cfc?method=SendTestEmail',
data: 'EmailAddress=' + $("#previewemailaddress").text() + '&emailbody=' + $("#Email_Text").text() + '&emailfrom=' + $("#email_from").text(),
error: function (xhr, textStatus, errorThrown) {
// show error
alert(errorThrown);
},
success: function () {
return true;
}
});
return false;
});
});
)};
<table width="900">
<tr>
<td width="900"><cftextarea name="Email_Text" id="Email_Text" value="#Qmailer.Email_Text#" richtext="True"></cftextarea>
</td>
</tr>
<tr>
<td>
<p><label for="previewemailaddress">Email Address for test email</label><input type="text" size="30" name="previewemailaddress" id="previewemailaddress" /></p>
<p><input type="button" value="Send Test Email" name="commit" id="message_submit"/></p>
</td>
</tr>
</table>