First of all, I already saw this post: problems with mail , but the only answer is unsatisfactory (for example: does not work for me).
I use NAnt to get the latest version of source code, update versions of libraries and applications, create an application, create settings ... all the usual things, I'm sure. I would like NAnt to send an email to some people confirming the completion of the build process; I already checked the official (rather ugly, IMHO) documentation for the task , but the example once copied and configured is not Work.
This is the NAnt goal and objective that I use:
<target name="sendMail" > <mail from=" MyUserName@gmail.com " tolist=" user1@provider1.com ; user2@provider1.com " subject="Subject of email" mailhost="smtp.gmail.com" message="Your new release is ready!"> </mail> </target>
The error message I get is:
530 5.7.0 Must issue STARTTLS first.
It appears that the task was intended to be used by an account whose provider does not need authentication; but what can I do if I have to use an external smtp server that requires authentication (telling my boss that I need an SMTP server in the house, not an option)?
Can someone help / teach me?
Thanks in advance...
source share