我使用默认的POPMail
课程来获取特定电子邮件帐户的电子邮件。从每条消息中,我需要读取所有附件并从中提取一些数据。但我无法找到任何方法来实现这一目标!好像@ModelType VisualBasic.MyViewModel
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width" />
<title>IndexValid100</title>
@*MAKE SURe these references are included*@
<script type="text/javascript" src="https://code.jquery.com/jquery-1.12.4.min.js"></script>
@*get nuget for jquery.unobtrusive-ajax.min, cdn is for mvc3 and won't work*@
<script src="~/Scripts/jquery.unobtrusive-ajax.min.js"></script>
</head>
<body>
<div id="result"></div>
@Using (Ajax.BeginForm("Index", New AjaxOptions With {.UpdateTargetId = "result"}))
@Html.EditorFor(Function(model) model.Foo)
@Html.ValidationMessageFor(Function(model) model.Foo)
@<input type="submit" value="OK" />
End Using
</body>
</html>
类没有特定的方法来获取邮件的附件。