2016-10-14 33 views
0

htmlの電子メールはOutlookでは正しく表示されませんが、gmailで正常に動作しています。私は何をすべきか?htmlが正しく表示されない

見通しのデザインブレークがあります..ここ

はhtmlコードです:

上記
strEmailBody = strEmailBody + " <table id=\"table_banner\" cellspacing=\"10\" cellpadding=\"0\" width=\"100%\" align=\"left\" bgcolor=\"#09355A\" border=\"0\" style=\"padding-bottom: 8px; margin-bottom: 12px;\">"; 
strEmailBody = strEmailBody + "<tr><td >"; 

strEmailBody = strEmailBody + "<span style=\"font-family: Arial,Helvetica,sans-serif;font-size: 52px;color:white;\"><strong>Family</strong>Connect<sup style=\"font-size: 20px;\">®</sup></span>"; 
//strEmailBody = strEmailBody + "<span style=\"FONT-SIZE: 10PX;FONT-WEIGHT: BOLD;vertical-align: text-top; bottom: 1ex;color:white;position:relative; bottom: 2.3em;\">TM</span>"; 
strEmailBody = strEmailBody + " <p style=\"border-bottom: 3px solid #ee7701;border-bottom-color: #ee7701;margin-bottom: 10px;margin-top: 4px;\"></p> "; 

strEmailBody = strEmailBody + "<span style=\"font-size: 15px;font-family: Arial,Helvetica,sans-serif; color:white;\">For parents of children with visual impairments </span>"; 
strEmailBody = strEmailBody + "</td></tr>"; 
strEmailBody = strEmailBody + "</table>"; 

strEmailBody = strEmailBody + "<br><br>A new Blog Entry has been posted on the \"" + strBlogName + "\": <br><br>"; 


strEmailBody = strEmailBody + " <br><br><p>You are receiving this message because you signed up to receive e-mail alerts whenever there is new activity on this blog. You can "; 
strEmailBody = strEmailBody + "the " + strUnsubscribeLink + "unsubscribe" + "</a>" + " at any time. "; 
strEmailBody = strEmailBody + " This email was delivered to you by the American Foundation for the Blind. Replies to this email address cannot be answered. For questions/concerns email us at <a href=\"mailto:[email protected]\">[email protected]</a>.</p>"; 

Email in Outlook

は見通しの写真です。

Email in Gmail

Gmailの2番の画像..

私は何をすべき?

+0

strEmailBodyの値をhtmlバリデーターにコピーします(デバッグで値を取る)。また、電子メールを作成する方法を示す – mybirthname

答えて

0

あなたはメールを送信するために何を使用していますか? MailMessageを使用している場合は、IsBodyHtmlをtrueに設定しますか?

MailMessage mm = md.CreateMailMessage(mailTo, ld, new Control()); 
mm.IsBodyHtml = true; 
+0

はい、私はすでに行っています... –

+0

これはあなたの問題のように聞こえる:https://help.aweber.com/hc/en-us/articles/204030726-Why-Doesn-t- My-HTML-Message-Display-In-Outlook- – Bene

+0

には解決策がありますか? –

関連する問題