It was working fine earlier and sending mails to gmail account but, somehow stopped working for gmail.i checked the spam bucket also but found nothing. When i send mail directly to a gmail account for example if a create a new page with the above code by taking hardcoded values for all the fields($p_to,$p_subject,$p_body) and sends mail then it works. On your PC: Open your Gmail account and click on the gear icon at the top-right corner of your screen to go to your Settings. Enter in an email address to send a test to, and click on Send test email. Once installed, go to Tools > Check Email in your WordPress dashboard. Mail($to,$email_subject,$email_body,$xheaders) This is a basic plugin designed to test if your WordPress installation and/or server can send emails. Set up valid reverse DNS records of your IP addresses that point to your domain. Go to the ‘Apps’ tab then tap open ‘Manage Apps.’. To reduce the chances that messages from your domain are sent to spam or blocked by Gmail, follow the general best practices in this section. Make sure you close the Gmail app before you clear the cache and data. = "Content-Type:text/html charset=\"iso-8859-1\"\n" Follow best practices for sending to Gmail accounts. = "X-Priority: 1\n" //1 Urgent Message, 3 Normal the function works fine when i send mail to yahoo or any other domain but fails when it comes to send mail to the gmail account.below is my code function send_mail($p_to, $p_sub, $p_body) The expunging of old accounts does not only mean losing access to Gmail. i have made a function to send email and calling the function in my php page. I am facing a weird problem in my php script.
0 Comments
Leave a Reply. |