如何在邮件中附加密码... [英] how to attached password in a mail...

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

问题描述

向其他客户发送邮件. 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;

推荐答案

此处有一个通用的电子邮件例程: ^ ]可能会有所帮助.
There is a generic email routine here: Sending an Email in C# with or without attachments: generic routine.[^] which may help.


您可以看到此链接
点击
点击
You can see this links
Click
Click


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

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