电子邮件pdf作为附件 [英] email pdf as attachment

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

问题描述


如何在电子邮件附件代码而不是文件路径中调用方法


how to call a method in to the email attachment code instead of file path

mail.Attachments.Add(new Attachment("file path"));



我有pdf()方法,因为我有创建pdf的代码,我想通过mail发送该pdf作为附件.因此,我在附件中调用了该pdf()方法.
有什么办法可以这样打电话吗?????如果没有,请给我一些建议怎么做???????



i have pdf() method in that i have the code for creating pdf and i want to send that pdf as attachment through mail.So im calling that pdf() method inside the attachment.
Is there any way to call like this???????? if not plz give some suggestion what to do??????

推荐答案

以下链接刚刚回答了这个问题:
如何将生成的pdf文件作为附件发送到电子邮件中 [ ^ ]
希望您能从中获得帮助.再次引用.
This question was just answered on following link:
How to send generated pdf file as attachment in email[^]
Hope you get some help from it. Refer it once.


看看这个...
Email-sending-in-aspnet.html [
Have a look at this...
Email-sending-in-aspnet.html[^]


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

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