Last active
July 1, 2017 02:24
-
-
Save steverobbins/21b729bb335757f3c373 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
ini_set('display_errors', 1); | |
include 'app/Mage.php'; | |
Mage::setIsDeveloperMode(true); | |
$mageRunCode = isset($_SERVER['MAGE_RUN_CODE']) ? $_SERVER['MAGE_RUN_CODE'] : ''; | |
$mageRunType = isset($_SERVER['MAGE_RUN_TYPE']) ? $_SERVER['MAGE_RUN_TYPE'] : 'store'; | |
Mage::app($mageRunCode, $mageRunType); | |
$mail = new Zend_Mail(); | |
$mail->addTo('[email protected]', '=?utf-8?B?' . base64_encode('John Smith') . '?=') | |
->setSubject('=?utf-8?B?' . base64_encode('test') . '?=') | |
->setBodyHtml('<style type="text/css"> body,td { color:#2f2f2f; font:11px/1.35em Verdana, Arial, Helvetica, sans-serif; } </style> | |
<body style="background:#F6F6F6; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px; margin:0; padding:0;"> | |
<div style="background:#F6F6F6; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px; margin:0; padding:0;"> | |
<table cellspacing="0" cellpadding="0" border="0" height="100%" width="100%"> | |
<tr> | |
<td align="center" valign="top" style="padding:20px 0 20px 0"> | |
<!-- [ header starts here] --> | |
<table bgcolor="FFFFFF" cellspacing="0" cellpadding="10" border="0" width="650" style="border:1px solid #E0E0E0;"> | |
<!-- [ middle starts here] --> | |
<tr> | |
<td valign="top"> | |
<h1 style="font-size:22px; font-weight:normal; line-height:22px; margin:0 0 11px 0;">Test</h1> | |
<p style="font-size:12px; line-height:16px; margin:0 0 8px 0;"> | |
test | |
</p> | |
</td> | |
</tr> | |
</table> | |
</td> | |
</tr> | |
</table> | |
</div> | |
</body>') | |
->setReplyTo('[email protected]') | |
->send(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment