1,只需要在template.php 增加:
function phptemplate_webform_mail_headers($form_values, $node, $sid, $cid) {
$headers = array(
'Content-Type' => 'text/html; charset=UTF-8; format=flowed; delsp=yes',
'X-Mailer' => 'Drupal Webform (PHP/'. phpversion() .')',
);
return $headers;
}
2,如:成功后10秒跳转,把下面代码加进去ebform-confirmation.tpl.php:
$(document).ready(function() {
var delay = 10 ;
var url = "http://google.com";
function countdown() {
setTimeout(countdown, 1000) ;
$('.webform-confirmation').html("Redirecting in " + delay + " seconds.");
delay --;
if (delay < 0 ) {
window.location = url ;
delay = 0 ;
}
}
countdown() ;
});