Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

email html


Guest

Recommended Posts

Hey all,

 

I am just doing some basic html in my account created e-mails and am wondering why extra spaces are being put into the e-mail. After the "services include:" item the e-mail looks like it has a couple of <br> being put in from somewhere and it drops the whole member benefits section way down leaving a huge white space. any help would be appreciated. Thanks!

 

define('EMAIL_GREET_NONE', '<table width="500" border="3" cellpadding=3>Dear ' . stripslashes($HTTP_POST_VARS['firstname']) . ',' . "\n\n");
define('EMAIL_WELCOME', 'Welcome to <b>' . STORE_NAME . '</b>!  <br> 
You can now take part in the various services we have to offer you. Some of these services include:
<tr>
 <tr> 
   <td bgcolor="#6699CC"><strong>Member Benefits: </strong></td>
 </tr>
 <tr> 
   <td> <ul>
       <li><strong>Permanent Cart</strong> - Any products added to your online 
         cart remain there until you remove them, or check them out. <br>
       <li><strong>Address Book </strong>- We can now deliver your products to 
         another address other than yours! This is perfect to send birthday gifts 
         direct to the birthday-person themselves. <br>
       <li><strong>Order History</strong> - View your history of purchases that 
         you have made with us. <br>
       <li><strong>Product Reviews</strong> - Share your opinions on products 
         with our other customers. 
     </ul></td>
 </tr>
</tr>
</table>');

Link to comment
Share on other sites

Try it like this

<table width="500" border="3" cellpadding=3>
<tr>
 <td>Dear ' . stripslashes($HTTP_POST_VARS['firstname']) . ',' . "\n\n");
define('EMAIL_WELCOME', 'Welcome to <b>' . STORE_NAME . '</b>!  <br> 
You can now take part in the various services we have to offer you. Some of these services include:
 </td>
</tr>
<tr> 
  <td bgcolor="#6699CC"><strong>Member Benefits: </strong></td>
</tr>
<tr> 
  <td> <ul>
      <li><strong>Permanent Cart</strong> - Any products added to your online 
        cart remain there until you remove them, or check them out. <br>
      <li><strong>Address Book </strong>- We can now deliver your products to 
        another address other than yours! This is perfect to send birthday gifts 
        direct to the birthday-person themselves. <br>
      <li><strong>Order History</strong> - View your history of purchases that 
        you have made with us. <br>
      <li><strong>Product Reviews</strong> - Share your opinions on products 
        with our other customers. 
    </ul></td>
</tr>
</table>

 

You had text outside the normal structure of the table

Link to comment
Share on other sites

This file is the create_account_process.php file. table code I had in there was within the defines. Taking it out of the defines would fix it is what you are saying? I left it in the defines because it seems html works easier there. I also tried the entire <table> setup in one section of one define but that didnt work either.

Link to comment
Share on other sites

part of the problem is there is <br> code being added whereever I have a <table> specification. They are not in my code, but when i take a look at it in the e-mail there is quite a few extras tossed in. When viewed in standard html, the origional code I have ,comes out how i want, its only after processed through osc that it changes. Curious if there is a file somewhere that is adding in code.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...