Advertisement
Guest User

Untitled

a guest
Jan 13th, 2015
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.17 KB | None | 0 0
  1.         //GENERATOR E-MAIL
  2.         function mailSender($mailTitle, $mailContent, $mailServerEmail, $mailReceiverEmail){   
  3.             $mailSubject = '=?UTF-8?B?".base64_encode($mailSubject)."?=';
  4.             $mailSubject = ' – '.$mailTitle.'';      
  5.  
  6.             $mailContent = '<html>
  7.                 <head>
  8.                     <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  9.                 </head>
  10.                 <body>
  11.                     <img src="'._BOOT.'/design/img/logo.png" alt="" style="margin:auto auto 20px 0px; width:390px; height:auto; display:block;" />
  12.                     <h1 style="margin-top:0px; margin-bottom:8px; font-family:Ubuntu Regular, Segoe UI, Verdana, sans-serif; font-size:24px;">Witamy serdecznie!</h1>
  13.                     <font style="font-family:Ubuntu Light, Segoe UI Light, Verdana, sans-serif; font-size:15px;">'.$mailContent.'</font>
  14.                     <br /><br />
  15.                     <font style="font-family:Ubuntu Light, Segoe UI Light, Verdana, sans-serif; font-size:12px;">Wiadomość wygenerowana została przez system w sposób automatyczny, nie odpowiadaj na nią!</font>
  16.                 </body>
  17.                 </html>';
  18.             $sendEmail = mail("$mailReceiverEmail", "$mailSubject", $mailContent, "From: sth<".$mailServerEmail.">\n"."Content-type: text/html; charset=utf-8\n");
  19.            
  20.             return TRUE;
  21.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement