没有邮件问题 [英] nant mail issues

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

问题描述

任何人都可以建议我如何配置通过nant发送邮件。我甚至已经通过链接,但我是不成功的。



谢谢和关心
maddy

解决方案

这样就可以使用。

 < target name =sendmail> 
< mail
from =NAnt@myCompany.com
tolist =$ {distribution_list}
subject =$ {mailsubject}
mailhost = $ {smtpServer}
message =$ {mailbody}
verbose =true
>
<附件>
< include name =$ {buildroot} /build.log/>
< / attachments>
< / mail>
< / target>


Can anyone please suggest me how we could configure the sending of mails through nant.I had even gone through the link but i was unsucessfull.

thanks and regards maddy

解决方案

Something like this is what you would use.

<target name="sendmail">
    <mail
        from="NAnt@myCompany.com"
        tolist="${distribution_list}"
        subject="${mailsubject}" 
        mailhost="${smtpServer}"
        message="${mailbody}"
        verbose="true"
     >
        <attachments>
            <include name="${buildroot}/build.log" />
        </attachments>
    </mail>
</target>

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

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