you can set the receipt, subject, description, reply-to and header in email.
$receipt = "user@no-spam.ws"; $subject = "This is subject"; $content = 'This is conent of the email. http://www.web-technology-experts-notes.in';
/** Set the Reply -optional field **/ $headers = array( 'Reply-To' => "replyto@no-spam.ws" ); /** Set the Reply -optional field **/ /** Send the Html email - optional field **/ add_filter( 'wp_mail_content_type', 'set_html_content_type' ); /** Send the Html email - optional field **/ $status = wp_mail($receipt, $subject, $content, $headers);
if($status){
echo 'Sent Successfully';
}else{
echo 'Not send';
}
No comments:
Post a Comment