ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erica A Ramsey" <earam...@wideopenwest.com>
Subject RE: mail task failure
Date Fri, 17 Aug 2007 13:45:40 GMT
yes, that is where I placed those files. Still get that error, but the email
does actually get sent just  dumps error message and I can't make it go
away!

-----Original Message-----
From: Steve Loughran [mailto:stevel@apache.org]
Sent: Friday, August 17, 2007 3:55 AM
To: Ant Users List
Subject: Re: mail task failure


Erica A Ramsey wrote:
> hi, i am trying to mail file via ant. I wrote a simple test and it hangs.
> here it is.
>
>     <property name="mail.host" value="smtp.gmail.com" />
>     <property name="mail.port" value="465" />
>     <property name="mail.sender.address" value="my_account@gmail.com" />
>     <property name="mail.sender.user"
> value="my_gmail_account_name_here@abacomm.com.br"/>
>     <property name="mail.sender.password" value="..."/>
>     <property name="mail.recipient.address"
> value="send_to_me_at_this_email_address@wideopenwest.com" />
>
>     <!-- build and mail production version -->
>     <target name="mailarchive" depends="">
> 	<mail mailhost="${mail.host}" mailport="${mail.port}" subject="latest
> binaries of ${application.name} version ${version}" ssl="true"
> user="${mail.sender.user}" password="${mail.sender.password}">
> 	    <from address="${mail.sender.address}"/>
> 	    <replyto address="${mail.sender.address}"/>
> 	    <to address="${mail.recipient.address}"/>
> 	    <message>Latest binaries for ${application.name} version
> ${version}</message>
> 	</mail>
>     </target>
>


always look at the root cause

> Caused by: javax.net.ssl.SSLException: Unsupported record version
> Unknown-50.49
> 	at
>
com.sun.net.ssl.internal.ssl.InputRecord.readV3Record(InputRecord.java:375)
> 	at com.sun.net.ssl.internal.ssl.InputRecord.read(InputRecord.java:360)
> 	at
>
com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:723
> )


Now, I do have it working with gmail:
http://antbook.cvs.sourceforge.net/antbook/examples/diary/core/core-chapter-
07.xml?view=markup


<target name="email-announcement-html" depends="checksum">
   <mail
     tolist="${email.to}"
     from="${email.from}"
     subject="New release of ${target.name}"
     mailhost="${email.server}"
     mailport="${email.port}"
     ssl="${email.ssl}"
     user="${email.user}"
     password="${email.password}"
     messageMimeType="text/html">
     <message><![CDATA[
<p>
   Here is a new build of ${target.name}
   The SHA1 checksum of the file is:
   </p>
   <pre>
       ${src.tar.sha1}
   </pre>
   <p><i>-The development team</i></p>
]]></message>
     <fileset file="${target.zip}" />
     <fileset file="${target.zip}.sha1" />
   </mail>
</target>

-you need the Java activation and mail jars in ANT_HOME/lib

these are the email properties I used
email.port=465
email.server=smtp.gmail.com
email.ssl=true
email.user=something@gmail.com
email.from=${email.user}
email.password=secret
email.to=something@gmail.com





---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message