View Single Post
  #1  
Old 08-21-2013, 11:12 AM
Chadi's Avatar
Chadi Chadi is offline
 
Join Date: May 2004
Location: USA
Posts: 2,043
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default HTML email problems

I edited the notify pm and the new reply notification phrases to use HTML code so the emails sent are pretty emails instead of boring plain text.

Here's the weird thing:
I test it out with some pm's and thread replies and the emails are in proper HTML format.

Then a few hours later they come in plain text HTML code like below


Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional //EN">
<html>
<head>
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
 <title>Talk Jesus Forums</title>
</head>
<body style="margin: 0; padding: 0;" dir="ltr">
<table width="100%" border="0" cellspacing="0">
 <tbody>
     <tr><td align="center">
       <table border="0" cellspacing="0" cellpadding="0"><tbody>
         <tr><td align="left" width="680" style="padding: 20px 15px 0 15px">
           <a href="http://www.talkjesus.com" target="_blank">
             <img src="http://www.talkjesus.com/images/tj-email.png" title="Rdio" border="0" alt="Rdio"></a>
         </td></tr>
       </tbody></table>
     </td></tr>
<tr><td style="padding: 0 15px 40px 15px" align="center">
 <table border="0" cellpadding="0" cellspacing="0"><tbody>
 <tr>
   <td align="center" style="padding: 15px 0;">
     <img src="http://www.talkjesus.com/images/chatroom.png"/>
   </td>
 </tr>
 </tbody></table>
 <table border="0" cellpadding="0" cellspacing="0"><tbody>
 <tr>
   <td width="600"  style="font-size:14px; line-height: 22px;font-family: 'Lucida Grande', Tahoma, sans-serif; -webkit-font-smoothing: antialiased; color: #89949b; height: 121px;" valign="top" align="center">
     <div style="line-height: 28px;-webkit-font-smoothing: antialiased; margin-bottom: 5px">
         <p>Dear Chad</p>
<p>You have received a new private message at Talk Jesus Christian Forums from <span style="color: #E66B1B">spirit1st</span> entitled
<p><span style="color: #E66B1B">e-mails</span></p>
     <p><a href="http://www.talkjesus.com/showthread.php?t=&goto=newpost" style="margin: 4px 0; border-style: solid; display: inline-block; border-width: 18px 50px; border-color: #43a6df; background-color: #43a6df;font-size: 16px; font-weight: normal; text-decoration: none; white-space: nowrap; font-family: 'Lucida Grande', Tahoma, sans-serif;color: #ffffff;" target="_blank">
     click here to view the message</a></p>
     </div>
   </td>
 </tr>
 </tbody></table>
</td></tr>
 <tr><td style="padding: 45px 15px; background-color: #e1e6e9; height: 200px;" align="center">
   <table border="0" cellpadding="0" cellspacing="0"><tbody>
   <tr>
     <td align="center" valign="bottom">
       <a href="http://www.talkjesus.com/albumall.php?tabid=155">
       <img style="border-width: 0px; border-style: solid; border-color: #b5b6b6;" src="http://www.talkjesus.com/images/albums.png" height="128" width="128"/></a>
     </td>
     <td rowspan="2" width="60">&nbsp;</td>
     <td align="center" valign="bottom">
       <a href="http://www.talkjesus.com/media.php">
       <img style="border-width: 0px; border-style: solid; border-color: #b5b6b6;" src="http://www.talkjesus.com/images/tv.png" height="128" width="128"/></a>
     </td>
   </tr>
   <tr>
     <td width="275" align="center" valign="top" style="padding-top: 10px; font-size:14px; line-height: 18px;font-family: 'Lucida Grande', Tahoma, sans-serif; -webkit-font-smoothing: antialiased; color: #4b5c66;">
       <div style="line-height: 22px;-webkit-font-smoothing: antialiased;">
           <strong>Member Photos</strong></div>
       </td>
     <td width="275" align="center" valign="top" style="padding-top: 10px; font-size:14px; line-height: 18px;font-family: 'Lucida Grande', Tahoma, sans-serif; -webkit-font-smoothing: antialiased; color: #4b5c66;">
       <div style="line-height: 22px;-webkit-font-smoothing: antialiased;">
           <strong>Video Gallery</strong></div>
     </td>
   </tr>
   </tbody></table>
 </td></tr>
 <tr><td style="padding: 45px 15px; background-color: #fff; color: #444; font-size:14px; line-height: 18px;font-family: 'Lucida Grande', Tahoma, sans-serif; -webkit-font-smoothing: antialiased;" align="center">
   <div style="margin: 0 0 45px 0;font-size:20px;font-family: 'Lucida Grande', Tahoma, sans-serif; -webkit-font-smoothing: antialiased;">
       This week's hot topics...     </div>
   <table border="0" cellspacing="0"><tbody>
   <tr>    
 <td valign="top" style="padding: 5px 8px 0 0;">
   <img src="http://www.talkjesus.com/images/metro/blue/statusicon/thread_new-30.png" border="0" width="37" height="37">
 </td>
 <td width="250" valign="middle" align="left">
   <a href="http://www.talkjesus.com/bible-study-hall/21455-denominations-speak-sabbath.html" style="font-size:14px; line-height: 18px;font-family: 'Lucida Grande', Tahoma, sans-serif; -webkit-font-smoothing: antialiased; color: #e1e6e9; padding: 15px; text-decoration: none">
   <span style="color:#999">The Denominations Speak</span></a><br/>
 </td>        
   </tr>
   <tr>    
 <td valign="top" style="padding: 5px 8px 0 0;">
   <img src="http://www.talkjesus.com/images/metro/blue/statusicon/thread_new-30.png" border="0" width="37" height="37">
 </td>
 <td width="250" valign="middle" align="left">
   <a href="http://www.talkjesus.com/bible-study-hall/43978-what-does-jesus-mean-when-he-says.html" style="font-size:14px; line-height: 18px;font-family: 'Lucida Grande', Tahoma, sans-serif; -webkit-font-smoothing: antialiased; color: #e1e6e9; padding: 15px; text-decoration: none">
   <span style="color:#999">What does Jesus mean when....</span></a></td>
   </tr>
   <tr>    
 <td valign="top" style="padding: 5px 8px 0 0;">
   <img src="http://www.talkjesus.com/images/metro/blue/statusicon/thread_new-30.png" border="0" width="37" height="37">
 </td>
 <td width="250" valign="middle" align="left">
   <a href="http://www.talkjesus.com/evidence-bible-prophecy/38327-beast-revelation.html" style="font-size:14px; line-height: 18px;font-family: 'Lucida Grande', Tahoma, sans-serif; -webkit-font-smoothing: antialiased; color: #e1e6e9; padding: 15px; text-decoration: none">
   <span style="color:#999">The Beast Revelation</span></a></td>
   </tr>
   </tbody></table>
 </td></tr>
   <tr><td style="background-color: #f9f9f9; color: #89949b;" align="center">
     <p style="font-size:14px; line-height: 18px;font-family: 'Lucida Grande', Tahoma, sans-serif; -webkit-font-smoothing: antialiased; color: #999">to unsubscribe from this topic click 
     <a href="http://www.talkjesus.com/subscription.php?do=removesubscription&type=thread&subscriptionid=&auth=" style="font-size:14px; line-height: 18px;font-family: 'Lucida Grande', Tahoma, sans-serif; -webkit-font-smoothing: antialiased; color: #E66B1B">here</a></p>
       <p style="margin: 30px 15px; font-size:14px; line-height: 18px;font-family: 'Lucida Grande', Tahoma, sans-serif; -webkit-font-smoothing: antialiased;">
         <a href="http://www.facebook.com/talkjesus" style="text-decoration: none; color: #008fd5;" target="_blank">Facebook</a>
         &nbsp;|&nbsp;
         <a href="http://www.twitter.com/talkjesus" style="text-decoration: none; color: #008fd5;" target="_blank">Twitter</a>
         &nbsp;|&nbsp;
         <a href="http://instagram.com/chad_abizeid" style="text-decoration: none; color: #008fd5;" target="_blank">Instagram</a>
         &nbsp;|&nbsp;
         <a href="http://www.logicweb.com" style="text-decoration: none; color: #008fd5;" target="_blank">LogicWeb</a></p>
   </td></tr>
 </tbody>
</table>
</body>
</html>
Why is this happening? Replicated on iPhone and outlook.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01101 seconds
  • Memory Usage 1,815KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete