类似京东,淘宝的广告邮件.里边的最新产品是怎么处理的?

解决方案 »

  1.   

    up lz好豪爽。。话说lz问题不是很清楚嘛。。
      

  2.   

    他们 多是用js处理的,用js做的模板有利于资源优化,更新时方便,不用重新发布。中午有空给你代码吧
    两侧广告用 自定义控件实现的
      

  3.   

     谢谢  [email protected]
      

  4.   

     html 形式的邮件, 上边的动态产品数据 怎么处理? 这个意思
      

  5.   

    可以动态生成HTML啊!!
    把动态生成的HTML当成邮件的内容发出去啊!!产品的图片地址和链接地址都采用绝对地址就可以了!!
      

  6.   

    写程序啊 非常简单的jmail功能 private void SendEmail(string emails, string NewsLetter)
        {
            
            int NID = int.Parse(Session["NID"].ToString());                   //toNames.Add(dar["DName"].ToString());
                //toEmails.Add(dar["DEmail"].ToString());        ////获得内容
            string topcontent = .BLL.NewLetterBLL.GetTopContent(NID);
            string rightcontent = .BLL.NewLetterBLL.GetRightContent(NID);
            string title = .BLL.NewLetterBLL.GetTitle(NID);
            string content = .BLL.NewLetterBLL.GetContent(NID);
            string downcontent = .BLL.NewLetterBLL.GetDownContent(NID);
            ////结束       
                string body = string.Empty;
                jmail.MessageClass mail = new jmail.MessageClass();
                body += "<!DOCTYPE html PUBLIC ' -//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>";
                body += "<html xmlns='http://www.w3.org/1999/xhtml'>";
                body += "<head>";
                body += "<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />";
                body += "<title>newsletter</title>";
                body += "<style type='text/css'>";
                body += "body {background-color: #808080;margin-left: 17px;margin-top: 21px;margin-right: 0px;margin-bottom: 0px;}";
                body += ".STYLE1 {font-family: Arial,'宋体';font-size: 12px;font-weight: normal;color: #000000;line-height: 18px;}";
                body += ".STYLE2 {font-family: Arial, '宋体';font-size: 14px; font-weight: bold; color: #000000; line-height: 18px; }";
                           body += "</style></head>";
                body += "<body>";
                body += "<table width='987' border='0' cellspacing='0' cellpadding='0'>";
                body += "<tr>";
                body += "<td><table width='987' border='0' cellpadding='0' cellspacing='0' bgcolor='#FFFFFF'>";
                body += " <tr>";
                body += "<td width='109' valign='top'><img src='http://.com/images/newsletter-style_061.jpg' width='109' height='92' /></td>";
                body += "<td width='895' valign='top'><table width='878' border='0' cellspacing='0' cellpadding='0'>";
                body += "<tr>";
                body += "<td height='25' colspan='2'>&nbsp;</td>";
                body += "</tr>";
                body += " <td width='18'>&nbsp;</td>";
                body += "<td colspan='2'><span class='STYLE1'>" + topcontent + "</span></td>";
                body += "</tr>";
                body += "<tr>";
                body += "<td colspan='3'><table width='555' height='75' border='0' cellpadding='0' cellspacing='0'>";
                body += "<tr>";
                body += "<td width='18'>&nbsp;</td>";
                body += "<td width='510' valign='top' class='STYLE1'>&nbsp;</td>";
                body += "<td width='27'>&nbsp;</td>";
                body += " </tr>";
                body += " </table></td>";
                body += "</tr>";
                body += "<tr>";
                body += "<td class='STYLE1'>&nbsp;</td>";
                body += "<td width='84' class='STYLE1'>&nbsp;</td>";
                body += " <td width='453' class='STYLE1'><a href='http://www..com/Forward.aspx?NID=" + NID + "' class='link_en1'>SEND THIS NEWSLETTER TO MY FRIENDS</a> | <a href='http://www..com/Emial.aspx' class='link_en1'>PAST NEWSLETTERS</a></td>";
                body += "</tr>";
                body += "</table></td>";
                body += "</tr>";
                body += "<tr>";
                body += "<td valign='top'><table width='555' border='0' cellspacing='0' cellpadding='0'>";
                body += "<tr>";
                body += " <td valign='top'><table width='555' border='0' cellpadding='0' cellspacing='0' class='kuang'>";
                body += "<tr>";
                body += "<td width='19'>&nbsp;</td>";
                body += " <td width='531'>" + title + "</td>";
                body += "</tr>";
                body += "</table></td>";
                body += "</tr>";
                body += "<tr>";
                body += " <td><table width='555' border='0' cellspacing='0' cellpadding='0'>";
                body += "<tr>";
                body += "<td colspan='3'><img name='' src='' width='32' height='8' alt='' style='background-color: #FFFFFF' /></td>";
                body += "</tr>";
                body += "<tr>";
                body += " <td width='9'>&nbsp;</td>";
                body += "<td width='531'><table width='533' border='0' cellspacing='0' cellpadding='0'>";
                body += "<tr>";
                body += "<td width='533' class='STYLE1'>" + content + "</td>";
                body += "</tr>";
                body += " </table></td>";
                body += " <td width='15'>&nbsp;</td>";
                body += "</tr>";
                body += " <tr>";
                body += " <td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td>";
                body += "</tr>";
                body += "</table>";
                body += " <img name='' src='' width='32' height='5' alt='' style='background-color: #FFFFFF' /></td>";
                body += "</tr>";
                body += "<tr>";
                body += " <td><table width='555' border='0' cellspacing='0' cellpadding='0'>";
                body += "<tr>";
                body += " <td width='356'>&nbsp;</td>";
                body += "<td width='199' valign='bottom' class='STYLE1'></td>";
                body += "</tr>";
                body += "</table></td>";
                body += "</tr>";
                body += "</table></td>";
                body += "</tr>";
                body += "</table></td>";
                body += "<td width='11' valign='top' bgcolor='#F6EDED'><img name='' src='' width='11' height='1' alt='' style='background-color: #F6EDED' /></td>";
                body += "<td width='303' align='left' valign='top' bgcolor='#F6EDED'><table width='290' height='356' border='0' cellpadding='0' cellspacing='0'>";
                body += "<tr><td height='18'>&nbsp;</td></tr>";
                body += "<tr>";
                body += "<td height='314' valign='top' class='STYLE1'>" + rightcontent + "<br />";
                body += "</td>";
                body += "</tr>";
                body += "<tr><td height='18' valign='bottom'>&nbsp;</td></tr>";
                body += "</table></td>";
                body += "</tr>";
                body += "</table></td>";
                body += "</tr>";
                body += " <tr>";
                body += "<td><table width='868' height='14' border='0' cellpadding='0' cellspacing='0'>";
                body += "<tr>";
                body += "<td valign='middle'><img name='' src='' width='868' height='5' alt='' style='background-color: #808080' /></td>";
                body += "</tr>";
                body += "</table></td>";
                body += "</tr>";
                body += "<tr>";
                body += "<td align='left' valign='top' class='kuangtext'>" + downcontent + "</td>";
                body += "</tr>";
                body += "</table></td>";
                body += "</tr>";
                body += "</table></td>";
                body += "</tr>";
                body += "<tr>";
                body += " <td><table width='987' border='0' cellspacing='0' cellpadding='0'>";
                body += "<tr>";
                body += "<td width='109' align='left' valign='top'><img src='http://confuciusprograms.com/images/newsletter-style_17.jpg' width='109' height='20' /></td>";
                body += "<td width='878' bgcolor='#FFFFFF'>&nbsp;</td>";
                body += "</tr>";
                body += "</table></td>";
                body += "</tr>";
                body += "<tr>";
                body += "<td align='left' valign='top' bgcolor='#808080'><table width='969' height='28' border='0' cellpadding='0' cellspacing='0' class='downtext'> <tr>";
                body += "<td width='969'>You received this newsletter message from ConfuciusPrograms.com. Please be assured that we will only use your e-mail address to communicate with you about our educational programs. We do not sell or rent information to third parties.<br />";
                body += "This e-mail was sent from an unattended mailbox. Please do not reply. Send any questions to [email protected]<br />";
                body += "If you are not interested in these newsletters and you do not mind missing out on valuable information we will be sending in the future, simply click the following <a href='http://www.confuciusprograms.com/UnSubscribe.aspx'>LINK</a>. This newsletter was sent to: " + emails + " </td>";
                body += "</tr>";
                body += "<tr>";
                body += "<td> <div align='center'>&copy; Copyright 2003-2008 Eyes on China Ltd.<br />";
                body += "ConfuciusPrograms.com <br />Room 717, Fanli Plaza<br /> No. 22, Chao Wai Da Jie<br />100020 Beijing<br />P.R. China<br />";
                body += "For questions regarding the delivery of this Newsletter or regarding Privacy concerns <br />";
                body += "please call Confucius Programs at: +86.10.6588.0899</div></td>";
                body += "</tr>";
                body += "</table></td>";
                body += "</tr>";
                body += "</table>";
                body += "</body>";
                body += "</html>";
                mail.Charset = "GB2312";// 字符集 
                // mail.Encoding = "BASE64";//附件的编码格式 
                mail.ContentType = "text/html";
                mail.ISOEncodeHeaders = false;//是否将信头编码成iso-8859-1字符集 
                //mail.Priority = Convert.ToByte(1);// 优先级 
                mail.From = "[email protected]";//发送人邮件地址 
                mail.FromName = "[email protected]";//发送人姓名 
                mail.Subject = NewsLetter;// 邮件主题 
                mail.MailServerUserName = "[email protected]";//身份验证的用户名 
                mail.MailServerPassWord = "8888888888";
               
                mail.AddRecipient(emails, "", "");
                mail.Body = body;
                           mail.Send("mail..com", false);
                           mail.Close();            }
      

  7.   

    做一个获取最新产品的页面,然后生成静态页面,把html页面以邮件的形式发出去。
      

  8.   

    内置一个算法取出要发email的产品,这个算法可能要你们自己测划