i did not write MailTransport. so i do not understand how to use the
Object attachment, i have just been typing null an ti seems to work.
however i would like to attach a .txt file
how to i make a text file into Object???
if unclear i will attempt to clear anything up as i know i might be
difficult to understand.
thanks for any input
"morc" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) oups.com...
> i have a class that takes parameters into construcor:
> MailTransport(String fromAddress, String toAddress, String subject,
> String messageBody, Object attachment, String contentType)
> i did not write MailTransport. so i do not understand how to use the
> Object attachment, i have just been typing null an ti seems to work.
> however i would like to attach a .txt file
> how to i make a text file into Object???
> if unclear i will attempt to clear anything up as i know i might be
> difficult to understand.
> thanks for any input
Try reading the documentation for the class.
I know of org.apache.axis.transport.mail.MailTransport, but you're
probably not talking about that class, as it doesn't have a constructor like
the one you describe (it only has a zero argument constructor).
no it is not a built in class. someone else created it. sorry for being
anyhow i think i found a more simpler way to ask my question.
is it possible to cast a File into an Object??
if so please let me know how cuz i can't get the syntax right an im
pulling me hair.
firstname.lastname@example.org opalinski from opalpaweb
This made me think of how emails can have multiple attachments. The
method might allow multiple attachments, that's why it takes an array.
You still don't know what kind of instances the method accepts. Inside
there might be some casting going on.