php - how to configure your server to send email using cpanel -


this question has answer here:

i trying send email using php. mail returning true. receiving email. guessing maybe there problem server. there tutorial saying how configure server send email using cpanel. please me. stuck hours. if want see code code given below. in advance.

<?php      $msg = "first line of text\nsecond line of text";     $msg = wordwrap($msg,70);     $headers = "from: test1@islamerkotha.com";     mail("erfan.bashar.13@gmail.com", "my subject", $msg, $headers); 

hi might want make sure first hosting provider allows send emails, try see if smtp server available, hosting provider available default

here's tutorial setting smtp using phpmailer send mail using phpmailer


Comments

Popular posts from this blog

javascript - How to synchronize the Three.js and HTML/SVG coordinate systems (especially w.r.t. the y-axis)? -

javascript - How do I find how many occurences are there of a highlighted string, and which occurence is it? -

java - Reading data from multiple zip files and combining them to one -