Click here to Skip to main content
15,884,083 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi everyone,

I have to send the mail using nant <mail> targets, but i am getting some errors like this

CSS
Error sending mail:
Error enountered while sending mail message.
Make sure that the following information is valid:
Mailhost: smtpclient.everyone.com
Mailport: 80
Use SSL: False
Using default credentials

    Failure sending mail.
        Unable to connect to the remote server


my code is

XML
<target name="send.email">
<mail from="tilak@raj.com" tolist="raj@tilak.com" cclist="tilakraj@tilakraj.com" subject="Test mail" message="Test mail delivered" mailhost="smtpclient.everyone.com" >
<attachments>
   <include name="test.doc" />
</attachments>
</mail>
</target>


please help me to correct this code.....

Thank You
Your's friendly
Tilakraj
Posted
Comments
[no name] 25-Apr-14 7:50am    
I really doubt that you will be able to send mail using port 80.
tilakmoger 26-Apr-14 1:33am    
hey sorry for wrong info man, it is 25, but i cant give mailhost....that's example....
tilakmoger 28-Apr-14 0:39am    
Hi Guys Anyone?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900