小编Ren*_*eep的帖子

通过邮政发送电子邮件时包含徽标

在我的MVC4应用程序中,我使用邮政包发送电子邮件.

我试图通过<img>标签包含徽标,但它不起作用.

我如何加入公司徽标?

控制器动作:

   public ActionResult Index()
   {
       dynamic email = new Email("Example");
       email.To = "xxxxx@xxxxxx";
       email.FunnyLink = "haiii";
       email.Send();
       return View();
   }
Run Code Online (Sandbox Code Playgroud)

查看:

 To: @ViewBag.To From: lolcats@website.com 
 Subject: Important Message 

 <div style="background-color:aqua;">
     Hello, You wanted important web links right?
     Check out this: @ViewBag.FunnyLink

     <br />
     <img src="~/Images/Logo.png" />
 </div>
Run Code Online (Sandbox Code Playgroud)

asp.net-mvc-4 postal

1
推荐指数
1
解决办法
817
查看次数

标签 统计

asp.net-mvc-4 ×1

postal ×1