Name

dataend

Synopsis

$smtp->dataend(  )

Net::Cmd method issued after datasend to end the sending of data. Sends .\r\n to the server telling it that there’s no more data coming and that it should send the message.

Here’s an example that uses datasend and dataend:

@list_data = (1..10);
$smtp->data(  );
$smtp->datasend(@list_data);
$smtp->dataend(  );

Get Perl in a Nutshell, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.