|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcontext.arch.util.SendMail
This class contacts a machine's POP port and uses it to send an email message.
| Constructor Summary | |
SendMail()
Basic empty constructor |
|
| Method Summary | |
static void |
main(java.lang.String[] args)
Simple main method that creates the SendMail class and sends a mail using parameters from the command line |
void |
send(java.io.BufferedReader in,
java.io.BufferedWriter out,
java.lang.String s)
This method writes data to a BufferedWriter and reads the response in a BufferedReader. |
void |
send(java.io.BufferedWriter out,
java.lang.String s)
This method writes data to a BufferedWriter. |
void |
sendMail(java.lang.String sendAddress,
java.lang.String mailServer,
java.lang.String sender,
java.lang.String recipient,
java.lang.String subject,
java.lang.String message)
This method sends an email message. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SendMail()
| Method Detail |
public void sendMail(java.lang.String sendAddress,
java.lang.String mailServer,
java.lang.String sender,
java.lang.String recipient,
java.lang.String subject,
java.lang.String message)
sendAddress - The address of the machine requesting the sendmailServer - The machine to contact to use for sending the messagesender - The email addres of the sending personrecipient - The email address of the person the message is being sent tosubject - The subject of the email messagemessage - The actual content of the mail message to send
public void send(java.io.BufferedReader in,
java.io.BufferedWriter out,
java.lang.String s)
in - BufferedReader to read the response fromout - BufferedWriter to write data tos - The data to write out
public void send(java.io.BufferedWriter out,
java.lang.String s)
out - BufferedWriter to write data tos - The data to write outpublic static void main(java.lang.String[] args)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||