Outlook Express - 电子邮件问题 [英] Outlook express - Email problem

查看:107
本文介绍了Outlook Express - 电子邮件问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个Web应用程序,我必须通过电子邮件在表格中发送一些信息。我使用简单的HTML标签来显示电子邮件中的数据。我能够完美地在Web浏览器(IE和Firefox)中查看数据。在outlook express中,数据混杂在一起。



谁能告诉别人还需要做什么?

解决方案

< blockquote>如果你使用命名空间System.Web.Mail然后保持

使用Html作为正文格式



请参阅下面的代码

MailMessage msg = new MailMessage();

msg.From =< from mailid =>;

msg。 To =< to mailid =>;

msg.BodyFormat = MailFormat.Html;

msg.Priority = MailPriority .High;

msg.Subject =测试

msg1.Body =< your html =code =>;

SmtpMail.SmtpServer =< your smtp =server =>;

SmtpMail.Send(msg);

看看是否有帮助



如果你使用的话命名空间使用System.Net.Mail;



message.IsBodyHtml = true;

如果有,请告诉我们它适用于你


创建适用于Outlook,Outlook Express和Web浏览器的电子邮件HTML非常棘手。



快速30分钟速成课程

http://sixrevisions.com/web_design/creating -html-emails / [ 30分钟速成课程^ ]



有些东西有用,有些则没有。



我试过了内置样式,但它们不起作用。



这是将旧的学校html属性与CSS样式相结合的组合。



S. o喜欢下面的元素将适用于一切。坚持使用固定值,例如60px,而不是50%。

< td width =60style =width:60px;>< / td> 





这是我使用的一个片段,这是我读过的html文件,替换数据,并输入正文net.mail,它适用于我目前测试的所有内容。



< table width =700style =宽度:700px;背景颜色:rgb(234,230,228); border =0cellspacing =0cellpadding =0> 
< tr>
< td colspan =3style =height:146px; text-align:left; vertical-align:top;>
< a href =http://buckridgebarn.com?clid=smtptarget =_ blank>
< img alt =Buck Ridge Barns标题图片标题图片src =http://buckridgebarn.com/EN-US/images/smtp/bg-SMTP_Header.jpgstyle =border:none; />
< / a>
< / td>
< / tr>

< tr>
< td valign =topwidth =700height =32style =width:700px; height:32px; text-align:left; padding-left:20px;>
 
< / td>
< / tr>

< tr>
< td valign =topwidth =700height =64style =width:700px; height:64px; text-align:left; padding-left:20px;>
< div style =height:64px; color:rgb(40,40,40); font-size:1.2em; font-weight:800; vertical-align:top;>
<%smtp.CustomerName%>已连接到<%smtp.WebsiteName%>
< / div>
< / td>
< / tr>
< / table>


使用outlook express修复Outlook Express问题



http://www.outlookexpressfix.com


I am developing a web application and i have to send some information in a table through email. I have used simple HTML tags to display the data in email. I am able to see the data in web browsers(IE and Firefox)perfectly. In outlook express,the data gets mingled.

Can anyone tell what else needs to be done?

解决方案

If you are using the namespace System.Web.Mail then keep the
use Html as the body format

see the code below
MailMessage msg = new MailMessage();
msg.From = "<from mailid="">";
msg.To = "<to mailid="">";
msg.BodyFormat = MailFormat.Html;
msg.Priority = MailPriority.High;
msg.Subject = "Test"
msg1.Body = "<your html="" code="">";
SmtpMail.SmtpServer = "<your smtp="" server="">";
SmtpMail.Send(msg);
See whether it helps or not

if you are using the namespace using System.Net.Mail;

message.IsBodyHtml = true;
Please let me know if it is working for you


Creating HTML for Email that works in both outlook, outlook express and web browsers is quite tricky.

Quick 30 minute crash course for it
http://sixrevisions.com/web_design/creating-html-emails/[30 minute crash course^]

Some things work, and some don't.

I've tried built-in styles, but they don't work.

It's a combination of having the old school html attributes combined with CSS styling.

So like the element below will work on everything. Stick with fixed values first like 60px, instead of 50%.

<td width="60" style="width: 60px;"></td> 



Here's a snippet of what I use, this is from a html file that I read, replace the data, and feed into the body of net.mail, and it works on everything I have tested on so far.

<table width="700" style="width: 700px; background-color: rgb(234,230,228);" border="0" cellspacing="0" cellpadding="0">
 <tr>
    <td colspan="3" style="height:146px; text-align: left; vertical-align: top;">
        <a href="http://buckridgebarn.com?clid=smtp" target="_blank">
          <img alt="Buck Ridge Barns header image header image" src="http://buckridgebarn.com/EN-US/images/smtp/bg-SMTP_Header.jpg" style="border: none;" />
           </a>
     </td>
 </tr>

 <tr>
     <td valign="top" width="700" height="32" style="width: 700px; height: 32px; text-align: left; padding-left: 20px;">
			         
      </td>
 </tr>

 <tr>
    <td valign="top" width="700" height="64" style="width: 700px; height: 64px; text-align: left; padding-left: 20px;">
      <div style="height: 64px; color: rgb(40,40,40); font-size: 1.2em; font-weight: 800; vertical-align: top;">
        <% smtp.CustomerName %>, has connected to <% smtp.WebsiteName %>
      </div>
    </td>
 </tr>
</table>


Fix outlook express problems by using of outlook express fix

http://www.outlookexpressfix.com


这篇关于Outlook Express - 电子邮件问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆