App-MonM
view release on metacpan or search on metacpan
lib/App/MonM/Channel/Email.pm view on Meta::CPAN
package App::MonM::Channel::Email;
use strict;
use utf8;
=encoding utf-8
=head1 NAME
App::MonM::Channel::Email - MonM email channel
=head1 VERSION
Version 1.00
=head1 SYNOPSIS
<Channel MyEmail>
Type Email
Enable on
# Real Email addresses
To to@example.com
#Cc cc@example.com
#Bcc bcc@example.com
From from@example.com
# Schedule
#At Sun-Sat[00:00-23:59]
# MIME options
#Encoding 8bit
# 8bit, quoted-printable, 7bit, base64
#ContentType text/plain
#Charset utf-8
# SMTP extra headers
#<Headers>
# X-Foo foo
# X-Bar bar
#</Headers>
# Attachments
#<Attachment>
# Filename screenshot.png
# Type image/png
# Encoding base64
# Disposition attachment
# Path ./screenshot.png
#</Attachment>
#<Attachment>
# Filename payment.pdf
# Type application/pdf
# Encoding base64
# Disposition attachment
# Path ./payment.pdf
#</Attachment>
# SMTP options
# If there are requirements to the case sensitive of parameter
# names, use the "Set" directives
# By default will use <Channel SendMail> section of general config file
Set host 192.168.0.1
Set port 25
#Set sasl_username TestUser
#Set sasl_password MyPassword
Set timeout 20
</Channel>
=head1 DESCRIPTION
This module provides email method
=over 4
=item B<sendmsg>
For internal use only!
=back
=head1 CONFIGURATION DIRECTIVES
The basic Channel configuration options (directives) detailed describes in L<App::MonM::Channel/CONFIGURATION DIRECTIVES>
=over 4
=item B<From>
Sender address (email)
=item B<Set>
Sets SMTP options:
Set host SMTPHOST
SMTP option "host". Contains hostname or IP of remote SMTP server
Default: localhost
Set port PORT
SMTP option "port". Contains port to connect to
Defaults to 25 for non-SSL, 465 for 'ssl', 587 for 'starttls'
Set timeout TIMEOUT
( run in 1.253 second using v1.01-cache-2.11-cpan-df04353d9ac )