The mail is being generated and sent on the server side, you can use any
SMTP server you have access to. The client's mail server is irrelevant.
> Hi Jeff,
>
> Thanks for your hint.
> I use only the <form action="mailto:.......> tag in my JSP-file.
> I took a short look at the javamail-api and the JavaMail custom tag lib
> from jspinside, but I'm wondering why I have to set the mail-server name
> explictitly:
> props.put("mail.smtp.host","mymailhost.com")
> If I want the user of my webapp send an email to my company I don't know
> his mailserver and
> I can't say: 'you have to type your mail-server-name in here: ..."
> (which user knows this?)
> The form action mailto... uses the mail-client which is set as default
> and creates a message 'automatically'.
> How can I use the JavaMail api in this case? Can I check the default
> mail-client and server
> of the user? I think this would be =B4much better than to use the
> implemented clients as they have a lot of restrictions (no attachements,
> only a fix amount of chars in the subject, and so on).
>
> Any more suggestions?
> Peter
>
>
>
> Jeff Rancier wrote:
> >
> > Are you using the Javamail 1.2 API? If so, take a look at the
Interface
> > part, in javax.mail.
> > Jeff
> >
> > -----Original Message-----
> > From: P.Miller [mailto:p.miller@b...]
> > Sent: Monday, October 22, 2001 5:40 AM
> > To: Pro_JavaServer_Pages
> > Subject: [pro_jsp] mailto: how can I pass an attachement ?
> >
> > Hello,
> >
> > does anybody know how it's possible to pass a file automatically as an
> > attachement in the
> > HREF mailto: Tag
> > (like ?subject=......&body=....)
> > Or is there another way i can attach a file?
> > Any help would be greatly appreciated.
> > Peter