没有邮件问题 [英] nant mail issues
本文介绍了没有邮件问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
谢谢和关心
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屋!
查看全文