Hi All,
I am pretty new to the mail service in Sun Solaris 5.10. If anybody help me in writing a script for the multiple recipient with subject and the body would be a helpful.
Kindly help...
Thanks in advance. :)
Warm Regards,
Pramod (5 Replies)
Hi all,
We have scheduled one cronjob which is supposed to show output through mails about 15 systems's current status (whether its up or down) but it send two mails one about 10 system which arrive at 5.30(actual scheduled time) and in second mail about 5 systems.
We want all these... (1 Reply)
This script is to send a email if the IP adress is active
when i run this script it is working and sending emails to external users in different domains, but when this script is scheduled in a cron it is unable to send the emails
#/bin/sh
ifconfig -a | grep 192.168.0.1
if ;
then mail -s... (10 Replies)
Hi
Is there any way we can findout which job/process in unix environment is generating error mails. I am continuously getting it with no subject..
I know the hostname.
And the error in mail - SQL server timed out.
There are hundreds of jobs runing there. How can we find the culprit... (3 Replies)
Hi
Can any one help me out ?
I am trying to send an autogenerated mail with an attachment to bulk of users using 'MAILX' and 'UNENCODE' . I have used it as follows
X " ( cat /sastemp/body.txt; uuencode Test.xls.gz Test.xls.gz ) | mailx -s 'Testing' ' abcd@yahoo.com , efgh@gmail.com ' "
... (9 Replies)
Hi All,
I have a system running with Suse Enterprise Linux 9.0.
xyz# uname -a
Linux xyz 2.4.21-291-smp #1 SMP Tue May 24 14:07:45 UTC 2005 i686 unknown
I would like to configure postfix on this system for sending mails as a root user using "mail" command to smtp server (Windows System)... (5 Replies)
I am trying to send an email to personal id using plsql program. I have written a code in plsql using UTL_TCP package where opens the connections and then senda a mail. But when i execute the program mails are not being sent.
I typed "mail" command on the unix box and got the below result... (5 Replies)
Hi,
Can some one help me with the syntax of the mailx that should send an attachment and also some text in the message body together.
When I am using the following syntax it is not sending the attachment but only the message body.
unix2dos -ascii $REPORTFILE | uuencode $PCFILE | mailx -s... (7 Replies)
Hi Forum,
I am extremely new to unix.Can somebody please help me out with the following:
I am supposed to write a script that will ftp a file which is a .csv and conatins the following:
Mail-id Path of file
abc@xyz.com D:\xyz\abc.htm
ash@sde.com ... (1 Reply)
Mail::SendEasy(3pm) User Contributed Perl Documentation Mail::SendEasy(3pm)NAME
Mail::SendEasy - Send plain/html e-mails through SMTP servers (platform independent). Supports SMTP authentication and attachments.
DESCRIPTION
This modules will send in a easy way e-mails, and doesn't have dependencies. Soo, you don't need to install libnet.
It supports SMTP authentication and attachments.
USAGE
OO
use Mail::SendEasy ;
my $mail = new Mail::SendEasy(
smtp => 'localhost' ,
user => 'foo' ,
pass => 123 ,
) ;
my $status = $mail->send(
from => 'sender@foo.com' ,
from_title => 'Foo Name' ,
reply => 're@foo.com' ,
error => 'error@foo.com' ,
to => 'recp@domain.foo' ,
cc => 'recpcopy@domain.foo' ,
subject => "MAIL Test" ,
msg => "The Plain Msg..." ,
html => "<b>The HTML Msg...</b>" ,
msgid => "0101" ,
) ;
if (!$status) { print $mail->error ;}
STRUCTURED
use Mail::SendEasy ;
my $status = Mail::SendEasy::send(
smtp => 'localhost' ,
user => 'foo' ,
pass => 123 ,
from => 'sender@foo.com' ,
from_title => 'Foo Name' ,
reply => 're@foo.com' ,
error => 'error@foo.com' ,
to => 'recp@domain.foo' ,
cc => 'recpcopy@domain.foo' ,
subject => "MAIL Test" ,
msg => "The Plain Msg..." ,
html => "<b>The HTML Msg...</b>" ,
msgid => "0101" ,
) ;
if (!$status) { Mail::SendEasy::error ;}
METHODS
new (%OPTIONS)
%OPTIONS:
smtp
The SMTP server. (Default: localhost)
port
The SMTP port. (Default: 25)
timeout
The time to wait for the connection and data. (Default: 120)
user
The username for authentication.
pass
The password for authentication.
send (%OPTIONS)
%OPTIONS:
from
The e-mail adress of the sender. (Only accept one adress).
from_title
The name or title of the sender.
reply
E-mail used to reply to your e-mail.
error
E-mail to send error messages.
to Recipient e-mail adresses.
cc Adresses to receive a copy.
subject
The subject of your e-mail.
msg The plain message.
html
The HTML message. If used with MSG (plain), the format "multipart/alternative" will be used. Readers that can read HTML messages will
use the HTML argument, and readers with only plain messages will use MSG.
msgid
An ID to insert in the e-mail Headers. The header will be: Msg-ID: xxxxx
anex
Send file(s) attached. Just put the right path in the machine for the file. For more than one file use ARRAY ref: ['file1','file2']
** Will load all the files in the memory.
zipanex
Compress with zip the ANEX (attached) file(s). All the files will be inside the same zip file.
If the argument has the extension .zip, will be used for the name of the zip file. If not, the file will be "anex.zip", and if exist
only one ANEX, the name will be the same of the ANEX, but with the extension .zip.
** Need the module Archive::Zip installed or the argument will be skipped.
** This will generate the zip file in the memory.
SEE ALSO
Mail::SendEasy::SMTP, Mail::SendEasy::AUTH, HPL.
This module was created to handle the e-mail system of HPL.
AUTHOR
Graciliano M. P. <gm@virtuasites.com.br>
I will appreciate any type of feedback (include your opinions and/or suggestions). ;-P
COPYRIGHT
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.12.4 2011-09-18 Mail::SendEasy(3pm)