| java.lang.Object com.sun.portal.netfile.servlet.java1.SendFile
SendFile | class SendFile (Code) | | SendFile will create a multipart message with the second
block of the message being the given file.
this demonstrates how to use the FileDataSource to send
a file via mail.
usage: java SendFile to from smtp file true|false
where to and from are the destination and
origin email addresses, respectively, and smtp
is the hostname of the machine that has smtp server
running. The file is the file to send. the message next parameter either turns on or turns off
debugging during sending.
version: 1.4, 98/06/16 author: Christopher Cotton |
Method Summary | |
String | encode(String s_to_be_encoded, String character_set) | InternetAddress[] | parseAddress(String s, String charset) | InternetAddress[] | parseAddress(String s) Bug 4494943
Created to parse the string for comma delimited internet mail addresses
The use of personal names is not allowed and no effort is being made
as part of this function to parse for personal names and seperate them from
the internet email addresses.
Thus email are expected to be entered by the user of two forms
1. | String | sendAttachedFile(String to, String from, String replyto, String cc, String bcc, String host, String subject, String message, Map filetosendList, String dbgval, String charSet, NetFileResource nfr_user_locale_i18n_bucket, String displayFileName) |
parseAddress | InternetAddress[] parseAddress(String s, String charset) throws AddressException(Code) | | |
parseAddress | InternetAddress[] parseAddress(String s) throws AddressException(Code) | | Bug 4494943
Created to parse the string for comma delimited internet mail addresses
The use of personal names is not allowed and no effort is being made
as part of this function to parse for personal names and seperate them from
the internet email addresses.
Thus email are expected to be entered by the user of two forms
1. internetEmailAddress@domain
2. emailAddress
Both forms should have commas seperators.
This function has been created as the InternetAddress.parse(String) function
is throwing AddressException for valid email addresses.
|
sendAttachedFile | String sendAttachedFile(String to, String from, String replyto, String cc, String bcc, String host, String subject, String message, Map filetosendList, String dbgval, String charSet, NetFileResource nfr_user_locale_i18n_bucket, String displayFileName) throws NetFileException(Code) | | |
|
|