本文介绍了如何在邮件中附加密码...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

向其他客户发送邮件. IAM也有绑定图像.但是问题是在AMI处没有显示图像. IAM还附加了代码...请找到....

iam sending mail other customer. iam binding image also .but the problem is image not displayed at amil. iam attaching code also... plz find that..

string Body = sendMessage;
                //"<img alt=\"\" hspace=0 src=\"cid:imageId\" align=baseline border=0 ><br><hr><br><b> your new password for the tool www.achbiz.com a/c name "+username+"  is : "+password+"";
                AlternateView htmlView = AlternateView.CreateAlternateViewFromString(Body, null, "text/html");
                
                LinkedResource imagelink = new LinkedResource(path +
                @"\images\paymentcard.png", "image/jpeg");
                imagelink.ContentId = "imageId";
                imagelink.TransferEncoding = System.Net.Mime.TransferEncoding.Base64;
                htmlView.LinkedResources.Add(imagelink);
                myMess.AlternateViews.Add(htmlView);
                myMess.IsBodyHtml = true;

推荐答案



这篇关于如何在邮件中附加密码...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-12 07:04