2 Email addresses for each user

You can create usermeta at time of insert user like, i create zip code in my site see this code, $user_id = wp_insert_user( array( ‘user_login’ => $user_email, ‘user_pass’ => wp_generate_password ( 12, false ), ‘first_name’ => ‘khushu’, ‘last_name’ => ‘soni’, ‘user_email’ => $user_email, ‘display_name’ => ‘khushu’ . ‘ ‘ . ‘soni’, ‘nickname’ => ‘khushu’ . … Read more

How can the recipients and content for comment email notifications on a custom post type be changed?

I did it the long way, with help from a related WordPress.org support thread: add_action(‘comment_post’, ‘notify_author_of_reply’, 10, 2); function notify_author_of_reply($comment_id, $approved){ $comment = get_comment($comment_id); $post_id = $comment->comment_post_ID; $post = get_post($post_id); if($approved && (get_post_type( $post_id )==’ticket’)) { $supervisor = get_userdata( get_post_meta($post->ID, ‘assigned_by’, true) ); $operator = get_userdata( get_post_meta($post->ID, ‘assigned_to’, true) ); $client = get_userdata( $post->post_author ); … Read more

Not able to send links in email after setting header

Nothing is wrong with the code. I just added message body in stripslashes() add_action(‘wp_ajax_mail_link_popup’,’mail_link_popup’); function mail_link_popup() { $headers=”Content-type: text/html;charset=utf-8″; wp_mail($_REQUEST[‘to_email’],$_REQUEST[‘subject’],stripslashes($_REQUEST[‘message_test’]),$headers); } And it’s working now

How to retrieve the sender email with wp_mail()?

I’ve learned an expensive (time) lesson. The next time I’ll want to set a contact form, I’ll first check the host servers specific configuration regarding Email settings ! Thanks to Steve North, I understood that my host doesn’t allow direct custom $headers for security reason… But, I think that, every decent host has solutions for … Read more

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