function sendChangePassLink($from, $fromname, $to, $toname, $subject, $passlink) { $message = ' <table style="width:100%; height: 100%; background:#fafafa"> <tr> <td style="text-align:center; vertical-align:top; padding:20px;"> <table style="width:500px; background:#ffffff; margin:auto"> <tr> <td style="text-align:center; padding:20px;">'; //$message .= '<img src="data:image/png;base64,'.base64_encode(file_get_contents(dirname(__FILE__)."/../../media/startuplist/startuplist_email.png")).'" />'; $message .= '<img src="' . site_url() . 'media/startuplist/startuplist_email.png" />'; $message .= '</td> </tr> <tr> <td style="text-align:left; vertical-align:top; padding:20px; font-family:Arial, Helvetica, sans-serif; font-size:12px"> <b>Hello ' . $toname . ',</b> <br> <br> To change your password please click <a href="' . $passlink . '" target="_blank">here</a> or visit the link below;<br> <br> ' . $passlink . ' </td> </tr> </table> </td> </tr> </table>'; $bouncereturn = $from; //where the email will forward in cases of bounced email $emails = array(); $emails[0]['email'] = $to; $emails[0]['name'] = $toname; emailBlast($from, $fromname, $subject, $message, $emails, $bouncereturn, 0); //last parameter for running debug }
<?php include_once dirname(__FILE__) . "/emailer/email.php"; $from = "*****@*****.**"; $fromname = "Jairus Bondoc"; $bouncereturn = "*****@*****.**"; //where the email will forward in cases of bounced email $subject = "Testing Email Blast"; $message = "<b>Hello World</b>"; $emails[0]['email'] = "*****@*****.**"; $emails[0]['name'] = "Jairus Bondoc"; $emails[1]['email'] = "*****@*****.**"; $emails[1]['name'] = "Jairus Bondoc"; $emails[2]['email'] = "*****@*****.**"; $emails[2]['name'] = "Jairus Bondoc"; emailBlast($from, $fromname, $subject, $message, $emails, $bouncereturn, 1); //last parameter for running debug