Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

log::dispatch::email::mailsend(3pm) [debian man page]

Log::Dispatch::Email::MailSend(3pm)			User Contributed Perl Documentation		       Log::Dispatch::Email::MailSend(3pm)

NAME
Log::Dispatch::Email::MailSend - Subclass of Log::Dispatch::Email that uses the Mail::Send module VERSION
version 2.32 SYNOPSIS
use Log::Dispatch; my $log = Log::Dispatch->new( outputs => [ [ 'Email::MailSend', min_level => 'emerg', to => [qw( foo@example.com bar@example.org )], subject => 'Big error!' ] ], ); $log->emerg("Something bad is happening"); DESCRIPTION
This is a subclass of Log::Dispatch::Email that implements the send_email method using the Mail::Send module. CHANGING HOW MAIL IS SENT
Since Mail::Send is a subclass of Mail::Mailer, you can change how mail is sent from this module by simply "use"ing Mail::Mailer in your code before mail is sent. For example, to send mail via smtp, you could do: use Mail::Mailer 'smtp', Server => 'foo.example.com'; For more details, see the Mail::Mailer docs. AUTHOR
Dave Rolsky <autarch@urth.org> COPYRIGHT AND LICENSE
This software is Copyright (c) 2011 by Dave Rolsky. This is free software, licensed under: The Artistic License 2.0 (GPL Compatible) perl v5.14.2 2012-05-25 Log::Dispatch::Email::MailSend(3pm)

Check Out this Related Man Page

Log::Dispatch::Syslog(3pm)				User Contributed Perl Documentation				Log::Dispatch::Syslog(3pm)

NAME
Log::Dispatch::Syslog - Object for logging to system log. VERSION
version 2.32 SYNOPSIS
use Log::Dispatch; my $log = Log::Dispatch->new( outputs => [ [ 'Syslog', min_level => 'info', ident => 'Yadda yadda' ] ] ); $log->emerg("Time to die."); DESCRIPTION
This module provides a simple object for sending messages to the system log (via UNIX syslog calls). Note that logging may fail if you try to pass UTF-8 characters in the log message. If logging fails and warnings are enabled, the error message will be output using Perl's "warn". CONSTRUCTOR
The constructor takes the following parameters in addition to the standard parameters documented in Log::Dispatch::Output: o ident ($) This string will be prepended to all messages in the system log. Defaults to $0. o logopt ($) A string containing the log options (separated by any separator you like). See the openlog(3) and Sys::Syslog docs for more details. Defaults to ''. o facility ($) Specifies what type of program is doing the logging to the system log. Valid options are 'auth', 'authpriv', 'cron', 'daemon', 'kern', 'local0' through 'local7', 'mail, 'news', 'syslog', 'user', 'uucp'. Defaults to 'user' o socket ($ or @) Tells what type of socket to use for sending syslog messages. Valid options are listed in "Sys::Syslog". If you don't provide this, then we let "Sys::Syslog" simply pick one that works, which is the preferred option, as it makes your code more portable. If you pass an array reference, it is dereferenced and passed to "Sys::Syslog::setlogsock()". AUTHOR
Dave Rolsky <autarch@urth.org> COPYRIGHT AND LICENSE
This software is Copyright (c) 2011 by Dave Rolsky. This is free software, licensed under: The Artistic License 2.0 (GPL Compatible) perl v5.14.2 2012-05-25 Log::Dispatch::Syslog(3pm)
Man Page

15 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Send Mail with attachment and a body

(4 Replies)
Discussion started by: manojram
4 Replies

2. UNIX for Dummies Questions & Answers

Mail Server

Hi Guru's Im a complete newbie to unix/linux and have been given a project on setting up a mail server for little over 80 users by my client. I would like your assistance on how i could go about this project. - What unix/linux Os Should i use -What Other programs/Packages should i install... (4 Replies)
Discussion started by: ravneet
4 Replies

3. UNIX for Dummies Questions & Answers

Sleep - Send Email

Working on a script to look in a directory for a certain file. If the file is not there, check the time. If the time is greater than 10:00, send me an email. If it's not, sleep for 15 minutes and then do this all over again. I can get it to email me if the file's not there without the sleep... (4 Replies)
Discussion started by: dstinsman
4 Replies

4. UNIX for Dummies Questions & Answers

Pl. Help me in code Email

i have working in informatica & unix (Kshell), i need the simple programm ( to sending of Email in (Kshell Script)). Pl. any one help to do so. From Karthik :confused: (3 Replies)
Discussion started by: karthpar
3 Replies

5. UNIX for Dummies Questions & Answers

Log and Mail problem

Hey Guys, I am trying to do a recursive search in one directory. If the directory contains that specific folder then create a directory in my other remote machine and use SCP to transfer all the contents of the file. Till this stage everything works fine. So now i need to add 2 more... (5 Replies)
Discussion started by: chris1234
5 Replies

6. Shell Programming and Scripting

awk - print file contents except regex

Hello, I have a file which has user information. Each user has 2 variables with the same name like Email: testuser1 Email: testuser1@test.com Email: testuser2 Email: testuser2@test.com My intention is to delete the ones without the '@' symbol. When I run this statement awk '/^Email:/&&!/@/'... (6 Replies)
Discussion started by: rmsagar
6 Replies

7. AIX

Mail bounced back externally - internally ok.

I am unable to send mail externally. It gets refused from any mail server. Here's my current config: oslevel -s 5300-07-05-0831 ******** mail -v foo@yahoo.com < /tmp/oracle.out Warning: .cf file is out of date: sendmail AIX5.3/8.13.4 supports version 10, .cf file is version 9... (3 Replies)
Discussion started by: gravy26
3 Replies

8. Shell Programming and Scripting

Send Email to group ids

hi, I want to send mail to DL... i am sending email to single id using mailx .. how to send to group of ids? :confused: i am using a file which conatins all the ids, is there any other way to send mail without creating the DLfile? DL=path\file.txt mailx -s "Info BG is now... (4 Replies)
Discussion started by: sreelu
4 Replies

9. Red Hat

Sendmail Issue.

Hi Gurus, I have been tampering around with sendmail for the past one week and seem to make little progress. Given below is an abstract of the issue. I have a Fedora 12 server(A VM on vitual Box bridged with a Windows XP host) which has to act as a SMTP server and have accordingly put up the... (8 Replies)
Discussion started by: Hari_Ganesh
8 Replies

10. HP-UX

[Solved] How do I configure Unix Mail Server to use another Mail Exchange Server

We have configured our mail unix server and can send out emails automatically from applications running on unix to different people in our company as well as outside our company. However there is an outside client who is not receiving these emails because the settings on their mail server cannot... (4 Replies)
Discussion started by: Tenyhwa
4 Replies

11. UNIX for Dummies Questions & Answers

stunnell log file has reached its limit

Please help! I am really new to Linux, and my colleague who usually deals with these things isnt here to help me out. We are running Scalix mail services on CentOS 6.0. Email users with IMAP folders are getting an error message stating the server cannot be reached, however POP3 mail users are... (13 Replies)
Discussion started by: beckyboo
13 Replies

12. UNIX for Dummies Questions & Answers

What does it takes to Build a Mail Server?

Subject: What does it takes to build a mail server, its just for fun and learning. Am bad at being techinical, so in short, how to create a gmail-like thing? I have a registered domain, and want to setup a mail server. Have a spare laptop that is running Ubuntu 12.04. What I need to know is,... (4 Replies)
Discussion started by: Memberz Name
4 Replies

13. Shell Programming and Scripting

Check Date Format And Email Out

Hello All, I have a requirement where i need to get the EXTRACT_DATE from a file and check if the date is of valid format or not and then mail it if it is not valid. Appreciate if you can help me with this. I did the following so far. awk '{for(i=1;i++<=NF;)if($i~/^EXTRACT_DATE/) print $i}'... (11 Replies)
Discussion started by: Ariean
11 Replies

14. AIX

Mail command to send attachements

I tried the below command uuencode data.txt | mailx -s “Test Mail” “mrp@xyz.com” But I get the below error ksh: uuencode: not found. Null Message body; hope that' ok which clearly tell that uuencode utility is not found. Is there any other way to send attachments with mail through... (7 Replies)
Discussion started by: rpm120
7 Replies

15. UNIX for Dummies Questions & Answers

Mail

I want to send a mail through shell script with the following command, #!/bin/bash mail -s "Test" upload.xxx@example.com < /root/mail.txt When I am executing the above command through shell script,the following error occurs, /etc/mail/submit.cf:line 545:fileclass:cannot open... (15 Replies)
Discussion started by: kannansoft1985
15 Replies