Oracle9i Supplied PL/SQL Packages and Types Reference
Release 1 (9.0.1)

Part Number A89852-02
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents
Go To Index
Index

Master Index

Feedback

Go to previous page Go to beginning of chapter Go to next page

UTL_SMTP , 10 of 15


data Function

This function specifies the body of an e-mail message.

Syntax

UTL_SMTP.DATA (

c     IN OUT NOCOPY connection
body  IN OUT NOCOPY) 
RETURN reply; UTL_SMTP.DATA (
c     IN OUT NOCOPY connection
body  IN OUT NOCOPY);

Parameters

Table 82-13 data Function Parameters
Parameter  Description 

c (IN OUT NOCOPY) 

The SMTP Connection. 

body (IN OUT NOCOPY) 

The text of the message to be sent, including headers, in [RFC822] format. 

Usage Notes

The application must ensure that the contents of the body parameter conform to the MIME(RFC822) specification. The data() routine will terminate the message with a <CR><LF>.<CR><LF> sequence (a single period at the beginning of a line), as required by RFC821. It will also translate any sequence of <CR><LF>.<CR><LF> (single period) in body to <CR><LF>..<CR><LF> (double period). This conversion provides the transparency as described in Section 4.5.2 of RFC821.

The data() call should be called only after open_connection(), helo() / ehlo(), mail() and rcpt() have been called. The connection to the SMTP server must be open, and a mail transaction must be active when this routine is called.

The expected response from the server is a message beginning with status code 250. The 354 response received from the initial DATA command will not be returned to the caller.


Go to previous page Go to beginning of chapter Go to next page
Oracle
Copyright © 1996-2001, Oracle Corporation.

All Rights Reserved.
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents
Go To Index
Index

Master Index

Feedback