我正在尝试发送一封电子邮件,并使用WP_Mail
但是电子邮件没有发送,我只是没有在页面上收到错误消息。有人能告诉我我的功能是否有问题吗?
<?php
//lets get the redem voucher email that will go to both the user and
$replacements = array(
\'({playerId})\' => $playerId,
\'({message_body})\' => nl2br( stripslashes( $ggs[\'player-redeem\'] ) )
);
$message = preg_replace( array_keys( $replacements ), array_values( $replacements ), $ggs[\'player-redeem\']);
//Handle some basic validation
$errors = array();
//Assigning a picture for {logo} replacement
$logo = \'http://fundrasing.davidbuckleyni.co.uk/wp-content/themes/gogreensoccer3/images/logo.png\';
$headers = \'From: My Name <[email protected]>\' . "\\r\\n";
//Send the message assigned to a var so we can output
$status = send_message( \'[email protected]\', \'[email protected]\', \'Player Wants to Redeem Points\', $message, $logo );
我只使用了默认的wp\\u邮件,但它不是作为测试发送的
wp_mail( \'[email protected]\', \'The subject\', \'The message\' );
我确实收到了来自系统的其他电子邮件,所以我知道它设置正常。