Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do you send email attachment from form 6i using java

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi,
I want to be able to attach a PDF file to an email I am sending using JAVA class from a form I created using
Form 6i. The class is imported into the builder and the package generated is being called from a trigger attached to a button.I am using the smtpserver in order to send the email. Following is part of the java code:

public class SendMail
{
/**
* SendMail : Send an E-mail with SMTP
*
* @param out The Printwriter
* @param sSmtpServer Smtp server (ex: mailhost.uk.oracle.com)
* @param sFrom The sender
* @param sTo The destination
* @param sSubject The subject
* @param sMessage The message
* @return "success" or an error message.
*/
I want to know the syntax I need to use for declaring an 'attach' param and how to define it later on in the code where I create the email.
Is there any other way I can do this without having to use
UUENCODE?

Your help is greatly appreciated.
Thank You..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top