Oracle Forms 9i Samples and Demos


oracle.forms.demos.javamail
Class SendMessage

java.lang.Object
  |
  +--oracle.forms.demos.javamail.SendMessage

public class SendMessage
extends java.lang.Object

Forms JavaMail Integration Sample


This sample provides a simple wrapper function on top of the JavaMail API which can be called from PL/SQL via ORA_JAVA code generated by the Java Importer

Version:
2.0
Author:
kprakash, drmills, 06-December-2001

Constructor Summary
SendMessage()
           
 
Method Summary
static void main(java.lang.String[] args)
          Use for testing.
static void send(java.lang.String SMTPhost, java.lang.String From, java.lang.String To, java.lang.String Subject, java.lang.String Body, java.lang.String Attachment)
          send is a static method that performs some basic validation and then sends the e-mail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SendMessage

public SendMessage()
Method Detail

send

public static void send(java.lang.String SMTPhost,
                        java.lang.String From,
                        java.lang.String To,
                        java.lang.String Subject,
                        java.lang.String Body,
                        java.lang.String Attachment)
                 throws SendMessageException
send is a static method that performs some basic validation and then sends the e-mail
Parameters:
SMTPhost - name or ip address of the SMTP mail host
From - Email address of sender
To - Email address(es) of the recipient(s). If multiple addresses are specified separate them with a space.
Subject - Subject for the Email
Body - Email text
Attachment - File to attach - must be present on the Middle tier not the Browser client

main

public static void main(java.lang.String[] args)
Use for testing. Substitute your values into the code.

Oracle Forms 9i Samples and Demos