从 LINQ 列表发送电子邮件多个附件
这对你们大师来说可能很简单,但我对此感到困惑。我有一种方法可以收集电子邮件的所有信息,然后通过 Outlook 发送出去。但是,我想考虑多个附件。我该怎么做呢?我需要在方法标头中更改哪些内容?
public static void sendOutlookMail(string toAddress, string emailSubject, string ccAddress = null, string emailAttachment = null, string emailBody = null)
我知道我必须更改,但不确定更改什么并保留默认值:
string emailAttachment = null
提前致谢。
如果您需要更多详细信息,请告诉我。
This might be very simple for you Gurus but I'm stumped on this. I have a method that will gather all the info for an email and then send it out via outlook. However, I want to account for multiple attachments. How would I do that? What do I need to change in my method header?
public static void sendOutlookMail(string toAddress, string emailSubject, string ccAddress = null, string emailAttachment = null, string emailBody = null)
I know that I have to change, but not sure to what and keep a default value:
string emailAttachment = null
Thanks in advance.
Please let me know if you need more details.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果你想传递字符串列表,你可以将其替换
为:
If you want to pass list of string you can replace this:
with this:
理想情况下你应该将其更改为
希望有帮助
ideally you should change that to
Hope that helps