Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to Stop Sending E-Mail Spam using PHP mail function
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.


$subject = "Test";
$to = "";
$msg = "Type Your Message";

$headers='From: \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:";
$headers.= "CC:";

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

change to your own email
To Purchase Credit Click here , For how to make money on Sologet forum Click here . 
There is love in sharing
Nice one Nice

Possibly Related Threads...
Thread Author Replies Views Last Post
  Multiple file upload in php Kingsolomon 1 166 11-08-2018, 03:01 PM
Last Post: Solomon
  How to limit text length in php and provide 'Read more' link Kingsolomon 0 159 10-31-2018, 02:08 PM
Last Post: Kingsolomon
  How to read more / hide text using Jquery and PHP Kingsolomon 0 150 10-31-2018, 02:06 PM
Last Post: Kingsolomon
  Download simple HTML email templates Kingsolomon 0 205 10-31-2018, 02:05 PM
Last Post: Kingsolomon
  TIPS How to get Page Loading Time using PHP Kingsolomon 1 178 10-11-2018, 08:29 AM
Last Post: kingugo

Forum Jump:

Users browsing this thread:
1 Guest(s)

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