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 . 
There is love in sharing
#2
Nice one Nice
  


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

Forum Jump:


Users browsing this thread:
1 Guest(s)


Users that viewed this thread:
1 User(s) read this thread:
Solomon
How to Stop Sending E-Mail Spam using PHP mail function00