05-16-2010
Your post is somewhat vague and warrants a vague response.
In general unix mail successfully received by sendmail on HP-UX is held in named files in directory /var/mail where the filename is the username. It is usually safe to null a mail file with ">mailfilename". Providing that you avoid filenames which are the same as unix usernames it is usually safe to copy a mailfile within /var/mail prior to nulling the original file.
Of you are talking about undelivered mail stuck in directory /var/spool/mailq it becomes more complicated.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Dear friends:
I have these data files:
fileaa
fileab
fileac
filead
I want to email these file to someone. How can I email EACH SINGLE FILE with a wild card character?
mail john@mail.com<fileaa
mail john@mail.com<fileab
...............................ac... (4 Replies)
Discussion started by: bobo
4 Replies
2. UNIX for Dummies Questions & Answers
I have a program the will split a large file into smaller files. It works great. I, however, have problem of email these file out to other people:
I may have 1 or more files afer SPLIT
datafileaa
datafileab
datafileac
manually:
mailx -s "data" email@email.com<datafileaa
mailx -s... (5 Replies)
Discussion started by: bobo
5 Replies
3. Shell Programming and Scripting
Hi,
I would like to send an email with more than one attachement. I am using uuencode. I want to achive by suing uuencode. Also please let me know other ways.
-Thambi (7 Replies)
Discussion started by: thambi
7 Replies
4. UNIX for Dummies Questions & Answers
I am trying to find the email log file that would have info on users downloading their pop mail. Our email is hosted on a unix server running apache. I am not sure the exact version of mail software running, but when I telnet to the mail server the response I get is this "+OK POP3 v2003.83rh... (3 Replies)
Discussion started by: mstarcom
3 Replies
5. Shell Programming and Scripting
Hey folks
Thank you for helping me.I find this website so useful and handy.My latest issue is about notifying change in files say file.txt,file2.sh ...etc to a group of people using sendmail.We are using bash here.
--CoolKid (4 Replies)
Discussion started by: coolkid
4 Replies
6. Shell Programming and Scripting
Hi,
New to Unix and trying to do something -
I am trying to zip bunch of file and email -
/sbin/sh
If i use mail then I can not specify subject -
uuencode file.zip file.zip | mail -s "testfile" mailadd@group.com
Error is - mail: illegal option -- s
If i use mailx then I can specify... (7 Replies)
Discussion started by: bhush782003
7 Replies
7. Shell Programming and Scripting
Hi,I would like to send all the files in a particular folder to an e-mail id .I am able to send a particular file via email but that gets displayed in the email as content using the mailx option. I just want to view it in the mailbox as an attached file. Could you please help me out in... (1 Reply)
Discussion started by: arunkumarmc
1 Replies
8. UNIX for Dummies Questions & Answers
Hi,
I need to zip 4 files and send an email attaching the zipped files...
Pls help..
Win
---------- Post updated at 10:49 AM ---------- Previous update was at 10:36 AM ----------
Hi,
I need to convert 4 text files into xls,zip these 4 files and send an email attaching the... (2 Replies)
Discussion started by: win4luv
2 Replies
9. UNIX for Dummies Questions & Answers
Dear Members,
I am trying to send a file as an attachment from the command prompt in Linux.
I am using the following:
(echo "Find attached Exception Report"; uuencode $DATA_TOP/out/data/$err_rpt_file $err_rpt_file)|/bin/mailx -s "***Exceptions Found" davidk@xyz.com Here err_rpt_file... (2 Replies)
Discussion started by: sandeep_1105
2 Replies
10. UNIX for Beginners Questions & Answers
Hi all,
we have a requirement , we need to check the files availability in the unix folder and their record counts need to be emailed as attached format
Files Count
File_1 123
File_2 1898
File_3 29
File_4 456
File_5 123 (2 Replies)
Discussion started by: KK230689
2 Replies
LEARN ABOUT DEBIAN
log::dispatch::email::mailsend
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)