PEAR Manual
Prev |  | Next

# Net_SMTP::data()

Net_SMTP::data() -- Send the DATA command to start message body

## Synopsis

    require_once 'NET/SMTP.php';

``mixedNet_SMTP::data` (string $data)`

## Description

This function sends the message body with the DATA command and terminates the message session.

## Parameter

string `$data`

  The message body to send.

## Return value

returns Returns a PEAR_Error with an error message on any kind of failure, or true on success.

## Throws

throws no exceptions thrown

## Note

This function can not be called statically.

Prev | Home | Next
Net_SMTP::connect() | Up | Net_SMTP::disconnect()