public void setParam ( String type , String file , String fileName , String name , String value , String disposition , String contentID , Boolean oRemoveAfterSend ) throws PageException { if ( file != null ) { boolean removeAfterSend = ( oRemoveAfterSend == null ) ? remove : oRemoveAfterSend . booleanValue ( ) ; setMimeattach ( file , fileName , type , disposition , contentID , removeAfterSend ) ; } else { if ( name . equalsIgnoreCase ( "bcc" ) ) setBcc ( value ) ; else if ( name . equalsIgnoreCase ( "cc" ) ) setCc ( value ) ; else if ( name . equalsIgnoreCase ( "charset" ) ) setCharset ( CharsetUtil . toCharset ( value , null ) ) ; else if ( name . equalsIgnoreCase ( "failto" ) ) setFailto ( value ) ; else if ( name . equalsIgnoreCase ( "from" ) ) setFrom ( value ) ; else if ( name . equalsIgnoreCase ( "mailerid" ) ) setMailerid ( value ) ; else if ( name . equalsIgnoreCase ( "mimeattach" ) ) setMimeattach ( value ) ; else if ( name . equalsIgnoreCase ( "priority" ) ) setPriority ( value ) ; else if ( name . equalsIgnoreCase ( "replyto" ) ) setReplyto ( value ) ; else if ( name . equalsIgnoreCase ( "subject" ) ) setSubject ( value ) ; else if ( name . equalsIgnoreCase ( "to" ) ) setTo ( value ) ; else smtp . addHeader ( name , value ) ; } }
sets a mail param