Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

mconnect(1) [osx man page]

mconnect(1)							   User Commands						       mconnect(1)

NAME
mconnect - connect to SMTP mail server socket SYNOPSIS
mconnect [-p port] [-r] [hostname] DESCRIPTION
The mconnect utility opens a connection to the mail server on a given host, so that it can be tested independently of all other mail soft- ware. If no host is given, the connection is made to the local host. Servers expect to speak the Simple Mail Transfer Protocol (SMTP) on this connection. Exit by typing the quit command. Typing EOF sends an end of file to the server. An interrupt closes the connection immedi- ately and exits. OPTIONS
The following options are supported: -p port Specify the port number instead of the default SMTP port (number 25) as the next argument. -r "Raw" mode: disable the default line buffering and input handling. This produces an effect similar to telnet(1) to port number 25. OPERANDS
The following operand is supported: hostname The name of a given host. USAGE
The mconnect command is IPv6-enabled. See ip6(7P). FILES
/etc/mail/sendmail.hf help file for SMTP commands ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ SEE ALSO
telnet(1), sendmail(1M), attributes(5), ip6(7P) Postel, Jonathan B., RFC 821, Simple Mail Transfer Protocol, Information Sciences Institute, University of Southern California, August 1982. SunOS 5.10 9 Nov 1999 mconnect(1)

Check Out this Related Man Page

Email::Sender::Transport::SMTP::TLS(3pm)		User Contributed Perl Documentation		  Email::Sender::Transport::SMTP::TLS(3pm)

NAME
Email::Sender::Transport::SMTP::TLS - Email::Sender with Net::SMTP::TLS (Eg. Gmail) VERSION
version 0.10 SYNOPSIS
use Email::Sender::Simple qw(sendmail); use Email::Sender::Transport::SMTP::TLS; use Try::Tiny; my $transport = Email::Sender::Transport::SMTP::TLS->new( host => 'smtp.gmail.com', port => 587, username => 'username@gmail.com', password => 'password', helo => 'fayland.org', ); # my $message = Mail::Message->read($rfc822) # || Email::Simple->new($rfc822) # || Mail::Internet->new([split / /, $rfc822]) # || ... # || $rfc822; # read L<Email::Abstract> for more details use Email::Simple::Creator; # or other Email:: my $message = Email::Simple->create( header => [ From => 'username@gmail.com', To => 'to@mail.com', Subject => 'Subject title', ], body => 'Content.', ); try { sendmail($message, { transport => $transport }); } catch { die "Error sending email: $_"; }; DESCRIPTION
Email::Sender replaces the old and sometimes problematic Email::Send library, while this module replaces the Email::Send::SMTP::TLS. It is still alpha, but it works. use it at your own risk! ATTRIBUTES The following attributes may be passed to the constructor: host - the name of the host to connect to; defaults to localhost port - port to connect to; defaults to 587 username - the username to use for auth; required password - the password to use for auth; required helo - what to say when saying HELO; no default allow_partial_success - if true, will send data even if some recipients were rejected PARTIAL SUCCESS If "allow_partial_success" was set when creating the transport, the transport may return Email::Sender::Success::Partial objects. Consult that module's documentation. AUTHOR
Fayland Lam <fayland@gmail.com> COPYRIGHT AND LICENSE
This software is copyright (c) 2011 by Fayland Lam. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. perl v5.14.2 2012-06-25 Email::Sender::Transport::SMTP::TLS(3pm)
Man Page