Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to Stop Sending E-Mail Spam using PHP mail function
#1
The mail() function included with stock PHP does not support SMTP authentication, for example. If mail() does not work for you then for this or another reason, try the PHPMailer package, which is much more comprehensive while maintaining, to a large extent, the simplicity and ease of mail() for sending mail from PHP. Mark the following points then proceed to code.

Code

Code:
$subject = "Test";
$to = "sologetforum@gmail.com";
$msg = "Type Your Message";

$headers='From: info@bladephp.co \r\n';
$headers.='Reply-To: info@bladephp.co\r\n';
$headers.='X-Mailer: PHP/' . phpversion().'\r\n';
$headers.= 'MIME-Version: 1.0' . "\r\n";
$headers.= 'Content-type: text/html; charset=iso-8859-1 \r\n';
$headers.= "BCC: info@sologet.com";
$headers.= "CC: info@sologet.com";

mail($to, $subject, $msg, $headers);

change info@sologet.com to your own email
To Purchase Credit Click here , For how to make money on Sologet forum Click here 

HIRE ME FOR WEBSITE DESIGNING USE THE PM BUTTON TO SEND ME MESSAGE

There is love in sharing
  


Messages In This Thread
How to Stop Sending E-Mail Spam using PHP mail function - by Kingsolomon - 10-31-2018, 02:10 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  TIPS How to add one day in current date using php Kingsolomon 1 857 04-14-2020, 01:16 AM
Last Post: Shugudun
  How to session timeout warning with countdown using PHP, Ajax and HTML Kingsolomon 1 852 04-14-2020, 01:10 AM
Last Post: Shugudun
  TIPS How to get Page Loading Time using PHP Kingsolomon 2 1,004 04-14-2020, 01:01 AM
Last Post: Shugudun
  How to read more / hide text using Jquery and PHP Kingsolomon 1 874 04-14-2020, 12:57 AM
Last Post: Shugudun
  How to limit text length in php and provide 'Read more' link Kingsolomon 1 1,067 04-14-2020, 12:43 AM
Last Post: Shugudun

Forum Jump:


Users browsing this thread:
1 Guest(s)

How to Stop Sending E-Mail Spam using PHP mail function00