Top Description Fields Constructors Methods
org.apache.tools.ant.taskdefs.email

pack-priv Class PlainMailer

extends Mailer
Class Inheritance
Known Direct Subclasses
org.apache.tools.ant.taskdefs.email.UUMailer
Imports
java.io.BufferedInputStream, .File, .IOException, .InputStream, .PrintStream, java.nio.file.Files, org.apache.tools.ant.BuildException, .Project, org.apache.tools.mail.MailMessage

Class responsible for sending email through raw protocol methods.
Since
Ant 1.5

Field Summary

Inherited from org.apache.tools.ant.taskdefs.email.Mailer:
bccListccListfilesfromheadershostincludeFileNamesmessagepasswordportreplyToListSSLsubjecttasktoListuser

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
protected void
attach(File
The file to attache
file
,
PrintStream
The message stream to add to
out
)

Attaches a file to this email

private void
public void
send()

Implements abstract org.apache.tools.ant.taskdefs.email.Mailer.send.

Sends the email using the apache MailMessage class.
Inherited from org.apache.tools.ant.taskdefs.email.Mailer:
getDateisPortExplicitlySpecifiedisStartTLSEnabledsetBccListsetCcListsetEnableStartTLSsetFilessetFromsetHeaderssetHostsetIgnoreInvalidRecipientssetIncludeFileNamessetMessagesetPasswordsetPortsetPortExplicitlySpecifiedsetReplyToListsetSSLsetSubjectsetTasksetToListsetUsershouldIgnoreInvalidRecipients

Constructor Detail

PlainMailerback to summary
pack-priv PlainMailer()

Method Detail

attachback to summary
protected void attach(File file, PrintStream out) throws IOException

Attaches a file to this email

Parameters
file:File

The file to attache

out:PrintStream

The message stream to add to

Exceptions
IOException:
if errors occur
badRecipientback to summary
private void badRecipient(EmailAddress rcpt, IOException reason)
sendback to summary
public void send()

Implements abstract org.apache.tools.ant.taskdefs.email.Mailer.send.

Sends the email using the apache MailMessage class.

Annotations
@Override
See Also
org.apache.tools.mail.MailMessage