Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class mailhandler {
- public function Send($ReceiverSteamID,$subject,$message,$ReceiverUserInfo) {
- if(!empty($ReceiverUserInfo['email'])) {
- // To send HTML mail, the Content-type header must be set
- $headers = 'MIME-Version: 1.0' . "\r\n";
- $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
- // Additional headers
- $headers .= 'From: CodeForage <love@codeforage.com>' . "\r\n";
- $headers .= 'Reply-To: love@codeforage.com' . "\r\n";
- mail($ReceiverUserInfo['email'],$subject,$message,$headers);
- }
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement