How can I format email notification after registration?

wp_mail from Codex Use this example: add_filter( ‘wp_mail_content_type’, ‘set_html_content_type’ ); wp_mail( $mails_to, ‘The subject’, ‘<p>The <em>HTML</em> message</p>’ ); // Reset content-type to avoid conflicts — http://core.trac.wordpress.org/ticket/23578 remove_filter( ‘wp_mail_content_type’, ‘set_html_content_type’ ); function set_html_content_type() { return ‘text/html’; }

Problem using wp_mail function

There are a couple of problems that may lead to failure of your script. First, you have a check for $mailSent at the top so you can redirect. However, at that point, it is undefined. It would be less likely to be a problem if you move it to where you check it at the … Read more

wp_mail BCC admin

$post->post_author will return the ID of the post author, which you can then use with the WP_User object to retrieve the username and add to the outgoing email: if (get_option(‘jr_bcc_apply_emails’)==’yes’) : $author = new WP_User( $post->post_author ); $username = $author->user_login; $to = get_option(‘admin_email’); $subject = __(‘[copy] going for “‘, APP_TD).$post->post_title.'”‘; $message .+ ” {$username}”; wp_mail( … Read more

Contact form – ajax, wp_mail

From quick look at your code you seem to be omitting where you are submitting request to. By default it is just current page, which isn’t typically equipped to receive the request. Since you are using wp_ajax_ hook you need to point request at admin-ajax.php endpoint. On admin side the URL is provided in ajaxurl … Read more

wp_mail issue with sending PDF

Instead of attaching the attachments to body content. Pass it as separate parameter. Like the below one. @wp_mail($to, $subject, $msg, $headers,$mail_attachment); I guess it solves your problem.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)