.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.42) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "Net::SMTPS 3pm" .TH Net::SMTPS 3pm "2022-10-16" "perl v5.34.0" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" Net::SMTPS \- SSL/STARTTLS support for Net::SMTP .SH "SYNOPSYS" .IX Header "SYNOPSYS" .Vb 1 \& use Net::SMTPS; \& \& my $ssl = \*(Aqstarttls\*(Aq; # \*(Aqssl\*(Aq / \*(Aqstarttls\*(Aq / undef \& \& my $smtp = Net::SMTPS\->new("smtp.example.com", Port => 587, doSSL => $ssl); .Ve .SH "DESCRIPTION" .IX Header "DESCRIPTION" This module implements a wrapper for Net::SMTP, enabling over\-SSL/STARTTLS support. This module inherits most of all the methods from Net::SMTP(2.X). You may use all the friendly options that came bundled with Net::SMTP. You can control the \s-1SSL\s0 usage with the options of \fBnew()\fR constructor method. \&'doSSL' option is the switch, and, If you would like to control detailed \s-1SSL\s0 settings, you can set SSL_* options that are brought from IO::Socket::SSL. Please see the document of IO::Socket::SSL about these options detail. .PP Just one method difference from the Net::SMTP, you can select \s-1SMTP AUTH\s0 mechanism as the third option of \fBauth()\fR method. .PP As of Version 3.10 of Net::SMTP(libnet) includes \s-1SSL/STARTTLS\s0 capabilities, so this wrapper module's significance disappareing. .SH "CONSTRUCTOR" .IX Header "CONSTRUCTOR" .IP "new ( [ \s-1HOST\s0 ] [, \s-1OPTIONS\s0 ] )" 4 .IX Item "new ( [ HOST ] [, OPTIONS ] )" A few options added to Net::SMTP(2.X). .Sp \&\fBdoSSL\fR { \f(CW\*(C`ssl\*(C'\fR | \f(CW\*(C`starttls\*(C'\fR | undef } \- to specify \s-1SSL\s0 connection type. \&\f(CW\*(C`ssl\*(C'\fR makes connection wrapped with \s-1SSL,\s0 \f(CW\*(C`starttls\*(C'\fR uses \s-1SMTP\s0 command \f(CW\*(C`STARTTLS\*(C'\fR. .SH "METHODS" .IX Header "METHODS" Most of all methods of Net::SMTP are inherited as is, except \fBauth()\fR. .IP "auth ( \s-1USERNAME, PASSWORD\s0 [, \s-1AUTHMETHOD\s0])" 4 .IX Item "auth ( USERNAME, PASSWORD [, AUTHMETHOD])" Attempt \s-1SASL\s0 authentication through Authen::SASL module. \s-1AUTHMETHOD\s0 is your required method of authentication, like '\s-1CRAM\-MD5\s0', '\s-1LOGIN\s0', ... etc. If your selection does not match the server-offerred \s-1AUTH\s0 mechanism, authentication negotiation may fail. .IP "starttls ( \s-1SSLARGS\s0 )" 4 .IX Item "starttls ( SSLARGS )" Upgrade existing plain connection to \s-1SSL.\s0 .SH "BUGS" .IX Header "BUGS" Constructor option 'Debug => (N)' (for Net::Cmd) also sets \f(CW$IO::Socket::SSL::DEBUG\fR when \s-1SSL\s0 is enabled. You can set 'Debug_SSL => {0\-3}' separately. .SH "SEE ALSO" .IX Header "SEE ALSO" Net::SMTP, IO::Socket::SSL, Authen::SASL .SH "AUTHOR" .IX Header "AUTHOR" Tomo.M .SH "COPYRIGHT" .IX Header "COPYRIGHT" Copyright (c) 2020 Tomo.M All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.