<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">NAME
    AnyEvent::SMTP - SMTP client and server

VERSION
    Version 0.04

SYNOPSIS
        use AnyEvent::SMTP 'sendmail';

    sendmail
        from =&gt; 'mons@cpan.org',
        to   =&gt; 'mons@cpan.org', # SMTP host will be detected from addres by MX record
        data =&gt; 'Test message '.time().' '.$$,
        cb   =&gt; sub {
            if (my $ok = shift) {
            warn "Successfully sent";
            }
            if (my $err = shift) {
            warn "Failed to send: $err";
            }
        }
        ;

        use AnyEvent::SMTP 'smtp_server';

        smtp_server undef, 2525, sub {
        my $mail = shift;
        warn "Received mail from $mail-&gt;{from} to $mail-&gt;{to}\n$mail-&gt;{data}\n";
        };

EXPORT
    By default doesn't export anything. When requested, uses Client or
    Server exports.

AUTHOR
    Mons Anderson, "&lt;mons at cpan.org&gt;"

COPYRIGHT &amp; LICENSE
    Copyright 2009 Mons Anderson, all rights reserved.

    This program is free software; you can redistribute it and/or modify it
    under the same terms as Perl itself.

</pre></body></html>