public function sendMail($email, $subject, $msg = NULL) { global $websiteName, $emailAddress; $header = array('From' => 'INNOVAPATH <' . $emailAddress . '>\\r\\n', 'Reply-to' => 'INNOVAPATH <' . $emailAddress . '>\\r\\n'); //Check to see if we sending a template email. if ($msg == NULL) { $msg = $this->contents; } $message = $msg; $message = wordwrap($message, 70); $mail_body = array('text/html' => $message); return PostageApp::mail($email, $subject, $mail_body, $header); }
<?php require_once 'postageapp_class.inc'; $to = '*****@*****.**'; // The subject of the message $subject = 'Postage App test email'; // Setup some headers $header = array('From' => '*****@*****.**', 'Reply-to' => '*****@*****.**'); // The body of the message $mail_body = array('text/plain' => 'Hello world in plain text', 'text/html' => '<h1>Hello world</h1><p>in <b>HTML</b></p>'); // Send it all $ret = PostageApp::mail($to, $subject, $mail_body, $header); // Checkout the response if ($ret->response->status == 'ok') { echo '<br/><b>SUCCESS:</b>, An email was sent and the following response was received:'; } else { echo '<br/><b>Error sending your email:</b> ' . $ret->response->message; } echo '<pre style="text-align:left;">'; print_r($ret); echo '</pre>';
<link rel='stylesheet' type='text/css' media='screen' href='/project/themes/ui.jqgrid.css' /> <link rel='stylesheet' type='text/css' media='screen' href='/project/themes/ui.multiselect.css'/> <link href='/project/admin/models/site-templates/default.css' rel='stylesheet' type='text/css' /> <link rel='stylesheet' href='http://gregfranko.com/jquery.selectBoxIt.js/css/jquery.selectBoxIt.css' /> <script src='http://code.jquery.com/jquery-1.9.1.js'></script> <script src='http://code.jquery.com/ui/1.10.3/jquery-ui.js'></script> <script src='/project/js/i18n/grid.locale-en.js' type='text/javascript'></script> <script src='/project/admin/models/funcs.js' type='text/javascript'></script> <script src='http://gregfranko.com/jquery.selectBoxIt.js/js/jquery.selectBoxIt.min.js'></script> <script src='/prooject/js/jquery.jqGrid.min.js' type='text/javascript'></script> <script type="text/javascript" src="/project/myjs/jHtmlArea-0.8.js"></script> <link rel="Stylesheet" type="text/css" href="/project/mystyle/jHtmlArea.css" /> <script> $(function() { $( '#mymenu' ).menu(); $('input').addClass('ui-corner-all'); }); </script> <style> .ui-menu { width: 130px; } </style> <script type='text/javascript'> //<![CDATA[ $(document).ready(function(){ $('.link').button(); $('#mymenu').menu(); $('select').selectBoxIt();