这是我的任务
<mail
from="jenga_blocks@gmail.com"
tolist="jenga_blocks@gmail.com"
subject="${subject}${subject-suffix}"
mailhost="mail.stg.ee.blabla.com"
>
<files>
<include name="*txt"/>
</files>
<attachments>
<include name="C:\Temp\*.jpg" />
</attachments>
</mail>
失败,出现以下错误
Error sending mail:
Error enountered while sending mail message.
Make sure that mailhost=mail.stg.ee.blabla.com
Exception has been thrown by the target of an invocation.
Class not registered
似乎是互操作问题,我该如何解决呢
感谢您的帮助
答案 0 :(得分:0)
确保:
例如,您可以使用smtp4dev使用本地smtp服务进行测试
启用匿名访问并指定mailhost="localhost"
,并显示电子邮件。您可能还希望在测试期间暂时禁用防病毒和/或防火墙。