vkd1980 Posted June 22, 2012 Share Posted June 22, 2012 Dear All, I have installed, CCGV, and would like to send Gift Voucher to Customers. But default format is not having beauty, hence I decided to Create html gift voucher, But I am failed, every time I am receiving. Normal Text mail with HTML Codes. I alrdy enabled MIME in Admin, my code is posting here, <?PHP /* gift Voucher HTML mail */ require(DIR_WS_LANGUAGES . $language . 'gv_htmllang.php'); //$ArrayLNTargets = array("\r\n", "\n\r", "\n", "\r", "\t"); //This will be used for taking away linefeeds with str_replace() throughout the mail. Tabs is invisible so we take them away to $html_email='<html><head><meta http-equiv="Content-Type" content="text/html; charset=windows-1252"><title>New Page 2</title><base href="http://localhost:8080/prabhus/" /><link rel="stylesheet" type="text/css" href="css/vinod.css"></head><body><p><a class="logo" href="http://localhost:8080/prabhus/index.php"><img src="http://localhost:8080/prabhus/images/store_logo.png" alt="Prabhus Books" title=" Prabhus Books " width="400" height="110" border="0" /></a></p><p align="center"><font face="Verdana" style="font-size: 25pt" color="#0BB1E8">'.GV_HTML_GFT_WORTH.'</font></p><p align="center"><font face="Verdana" style="font-size: 25pt" color="#FF8000">'. $currencies->format($HTTP_POST_VARS['amount']).'</font></p><p align="center"><b><font face="Arial" size="3" color="#0BB1E8">'.GV_HTML_GFT_REDEEM.'</font></b></p><p align="center"><a href="test">'.HTTP_SERVER . DIR_WS_CATALOG . 'gv_redeem.php' . '?gv_no='.$id1 .'<img border="0" src="http://localhost:8080/prabhus//images/Redeem_button.gif" width="93" height="31"></p><p align="center"><i><b><font face="Verdana" size="2" color="#0BB1E8">'.GV_HTML_VISIT.'</font></b></i></p><p align="center"><b><i><font face="Verdana" size="4" color="#C0C0C0">'.GV_HTML_VC. $id1 .'</font></i></b></p><div class="touchme" style="width: 899; height: 19"><b><font face="Verdana" size="2" color="#0BB1E8">Follow us</font></b> <br><!--Google Plus--> <a class="googleplus" href="YOUR%20GOOGLE%20PROFILE%20LINK" rel="external nofollow" target="_blank"></a> <!--Facebook--> <a class="facebook" href="YOUR%20FACEBOOK%20LINK" rel="external nofollow" target="_blank"></a> <!-- Twitter --> <a class="twitter" href="YOUR%20TWITTER%20LINK" rel="external nofollow" target="_blank"></a></div><br><p><font face="Verdana" size="2"><a href="http://localhost:8080/prabhus/gv_faq.php" style="text-decoration: none"><font color="#C0C0C0">Gift Voucher/Store Credit FAQ</font></a><font color="#C0C0C0"> </font><a href="http://localhost:8080/prabhus/privacy.php" style="text-decoration: none"><font color="#C0C0C0">Privacy Notice</font></a><font color="#C0C0C0"> </font><a href="http://localhost:8080/prabhus/conditions.php" style="text-decoration: none"><font color="#C0C0C0">Conditions of Use</font></a></font><br></p></body></html>' //$html_email = str_replace($ArrayLNTargets, '', $html_email); ?> Please guide me Link to comment Share on other sites More sharing options...
luigicosta Posted June 22, 2012 Share Posted June 22, 2012 http://addons.oscommerce.com/info/7855/v,23 Link to comment Share on other sites More sharing options...
vkd1980 Posted June 22, 2012 Author Share Posted June 22, 2012 @@luigicosta, I already installed the same but. its not supported for CCGV from Admin Link to comment Share on other sites More sharing options...
vkd1980 Posted June 23, 2012 Author Share Posted June 23, 2012 Finally I got it, I am posting the modification done for the use of community members IN Admin/gv_mail.php, the function used for sending mail is at around Line 61 $mimemessage->send($mail['customers_firstname'] . ' ' . $mail['customers_lastname'], $mail['customers_email_address'], '', $from, $subject); and 81, $mimemessage->send('Friend', $HTTP_POST_VARS['email_to'], '', $from, $subject); I have changed the code to tep_mail($mail['customers_firstname'] . ' ' . $mail['customers_lastname'],$mail['customers_email_address'],$subject,$message,'Gift Voucher', $from ); tep_mail('Friend',$HTTP_POST_VARS['email_to'],$subject,$message,'Gift Voucher', $from ); I am creating a Modification in CCGV for sending Gift vouchers using Defauld Header and Footer in mail :thumbsup: Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.