Wordpress notification emails going to spam

落爺英雄遲暮 提交于 2019-12-03 22:13:56

I usually handle this on the server level by ensuring all emails sent by wordpress are sent via my own SMTP server. You can do this a couple ways. My preference is to configure all mail being sent from my server to use SMTP. I usually use an Ubuntu server - here is a link to using PostFix SMTP https://help.ubuntu.com/community/Postfix. Another way would be to use one of the SMTP plugins and configure to use your email server.I have used this one in the past - http://wordpress.org/extend/plugins/wp-mail-smtp/screenshots/.

Its work definitely

Please use this code its help you:-

add_filter( 'wp_mail_from', 'my_mail_from' );
                function my_mail_from( $email ) {
                    return "enter yout 'from' id";
                }

                add_filter('wp_mail_from_name', 'new_mail_from_name');
                function new_mail_from_name($old) {
                    return 'enter your "from name"';
                }
       wp_mail( $admin_mail, $subject, $message );
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!