You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2007/05/10 23:08:57 UTC
DO NOT REPLY [Bug 42389] New: - Ant "Mail" task fails to send mail if "encoding" isn't provided (and Auto selects "Mime" type)
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42389>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=42389
Summary: Ant "Mail" task fails to send mail if "encoding" isn't
provided (and Auto selects "Mime" type)
Product: Ant
Version: 1.7.0
Platform: PC
OS/Version: Windows XP
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: Core tasks
AssignedTo: dev@ant.apache.org
ReportedBy: douglasw@wagnerweb.org
There seems to be a possible bug in ant 1.7.0 (this does NOT affect 1.6.5 or 1.6.2).
When using the <mail> task in ant to generate and send an e-mail on our systems,
the mail will fail to be sent with no error, no warning and no failures unless
the "encoding" attribute is set to an acceptable encoding method.
At my work, "mime" e-mail is unusable. However, when using an ant <mail> task
as follows:
<mail mailhost="stlpsmtprelay"
subject="[PING-ALL] @{server.name} No longer responding to Pings!"
tolist="@{notification.list}"
from="ping_test@rgare.com"
message="${trace.output}"/>
1.7.0 produces the following output:
[mail] Failed to initialise MIME mail: javax/mail/MessagingException
Run through 1.6.5 or 1.6.2 the following is the output:
[mail] Failed to initialise MIME mail: javax/mail/MessagingException
[mail] Using UU mail
[mail] Sending email: [ANT-SERVER] cybere_mtb01 stopped...please don't use
<EOM>
[mail] From Deployment_Process@rgare.com
[mail] ReplyTo []
[mail] To [<valid e-mail addresses here>]
[mail] Cc []
[mail] Bcc []
[mail] Sent email with 0 attachments
When I add an "encoding" statement onto the <mail> task above as follows:
<mail mailhost="stlpsmtprelay"
subject="[PING-ALL] @{server.name} No longer responding to Pings!"
tolist="@{notification.list}"
from="ping_test@rgare.com"
message="${trace.output}"
encoding="plain"/>
I get the appropriate information and the e-mail generates and sends.
I assume there is an issue with the "auto" code in which it makes what it thinks
is an intelligent selection as to which mail type to use (in our case "MIME")
but if that fails doesn't continue beyond to the next mail type like 1.6.5 and
1.6.2 does.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org
DO NOT REPLY [Bug 42389] - Ant "Mail" task fails to send mail if "encoding" isn't provided (and Auto selects "Mime" type)
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42389>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=42389
Darin_Swanson@us.ibm.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |Darin_Swanson@us.ibm.com
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org