我试图使用ActionMailer 0.7.0从我的MVC 3项目发送电子邮件。ActionMailer失败,“值不能为空参数名称:uriString”
我已经按照项目网站上发布的样本来信了。
但是,当我尝试发送以下错误总是发生电子邮件:
“值不能为空参数名:uriString中”
它发生在电子邮件正文中的@ Url.AbsoluteAction。
@using ActionMailer.Net
@model User
@{
Layout = null;
}
Welcome to My Cool Site, @Model.FirstName
We need you to verify your email. Click this nifty link to get verified!
// The error happens in the line bellow
@Url.AbsoluteAction("Verify", "Account", new { code = @Model.EmailActivationToken.ToString() })
Thanks!
有人能帮助我吗?我错过了什么?
另一个问题:我仍然在开发fase中,所以我将mailSettings配置为“SpecifiedPickupDirectory”,如示例中所示。即使当我评论有问题的电子邮件时,我也会发出异常:“SMTP主机未被指定。”有人可以帮助我一个完整的例子,没有一个小故障。谢谢 – 2012-02-15 21:14:19
如果没有解决方案可以有人建议另一个工具发送电子邮件与MVC 3?谢谢... – 2012-02-16 12:32:36