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


require_once 'NET/SMTP.php';

mixedNet_SMTP::data ( string $data )


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


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 no exceptions thrown


This function can not be called statically.

Attempt to connect to the SMTP server. (Previous) Attempt to disconnect from the SMTP server. (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.