Sponsored Content
Full Discussion: Send Email to group ids
Top Forums Shell Programming and Scripting Send Email to group ids Post 302440908 by sreelu on Thursday 29th of July 2010 01:16:43 AM
Old 07-29-2010
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? Smilie
i am using a file which conatins all the ids,
is there any other way to send mail without creating the DLfile?

Code:
   
  DL=path\file.txt
  mailx -s  "Info BG is now running " `cat $DL` < file.txt



Please help me...

Last edited by sreelu; 07-29-2010 at 02:52 AM..
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Script which can send file to diffrent mail ids.

Hi i am looking for the script which can send file to different mailids, please halp me out. Thanks in advance. (3 Replies)
Discussion started by: vpandey
3 Replies

2. Forum Support Area for Unregistered Users & Account Problems

Please list email ids or contact info of members

Hi , Is it possible to list the user's email id for further communication. Thanks, MoonwalaPL (3 Replies)
Discussion started by: moonwalapl
3 Replies

3. HP-UX

Sending email to multiple IDs

Hi, I am trying to send an email to multiple IDs from Unix script. I have given the EmailIds in a file and trying to use the file as input in the script. > cat Email EmailID = "abc@xyz.com cbz@xyz.com" In my script I have . /Email mailx -s "subj" $EmailID This fails with the... (3 Replies)
Discussion started by: sangharsh
3 Replies

4. Shell Programming and Scripting

Send a mail to IDs listed in a text file

I have a list of mail ids in text file and want a ksh script that reads this text file and sends a mail to all mail ids with same subject line and content. I am using UX-HP machine and KSH. Thanks for help in advance! (5 Replies)
Discussion started by: Sriranga
5 Replies

5. Shell Programming and Scripting

Script to send email after comparing the folder permissions to a certain permission & send email

Hello , I am trying to write a unix shell script to compare folder permission to say drwxr-x-wx and then send an email to my id in case the folders don't have the drwxr-x-wx permissions set for them . I have been trying to come up with a script for few days now , pls help me:( (2 Replies)
Discussion started by: nairshar
2 Replies

6. UNIX for Dummies Questions & Answers

new to ldap, send email to a ou or group, and see a list from email client

hi, i'm running openldap on ubuntu 10.04, creating new items with apache directory studio (windows version). i use the ldap just as an address book to our small office (email clients are windows live mail 2009, 2011, microsoft outlook 2007 and 2010). a. i cant see a list of the contacts,... (0 Replies)
Discussion started by: V4705
0 Replies

7. UNIX for Dummies Questions & Answers

Email ids trucated in Mailx function

I wanted to send email to list of people using mailx in unix. I am getting the emailds from a oracle table and getting the ids in a variable. Shell script is shown below: ----------------------------------------------------------------------- filename=testdata921 export filename... (5 Replies)
Discussion started by: sasi02
5 Replies

8. Shell Programming and Scripting

How to send mails based on email ids residing in table?

Hello Gurus, I have one table which consists of two field:- PROG_NAME EMAIL xxxx email1,email2,email3 yyyy email4,email1,email2 I want to to send mails by using mailx command. But how do I get each and every mail ids from table against... (4 Replies)
Discussion started by: pokhraj_d
4 Replies

9. Emergency UNIX and Linux Support

Email ids from gecos

I would like to extract only the email ids from the gecos of each user id. I have to get the email ids of all the users on the server like this. Can someone please assist me with the command/script? (15 Replies)
Discussion started by: ggayathri
15 Replies

10. Shell Programming and Scripting

Email IDs added to .mailrc aliases not receiving mails

hi, I added an email id to a list of existing aliases in .mailrc on my unix box, using vi editor. However, the new id has not been receiving any mails from the box. Kindly help as to what needs to be done here. Does the box need to be rebooted for these changes to reflect? Is there any other... (5 Replies)
Discussion started by: qwerty000
5 Replies
Jifty::Notification(3pm)				User Contributed Perl Documentation				  Jifty::Notification(3pm)

NAME
Jifty::Notification - Send emails from Jifty USAGE
It is recommended that you subclass Jifty::Notification and override "body", "html_body", "subject", "recipients", and "from" for each message. (You may want a base class to provide "from", "preface" and "footer" for example.) This lets you keep all of your notifications in the same place. However, if you really want to make a notification type in code without subclassing, you can create a "Jifty::Notification" and call the "set_body", "set_subject", and so on methods on it. METHODS
new [KEY1 => VAL1, ...] Creates a new Jifty::Notification. Any keyword args given are used to call set accessors of the same name. Then it calls "setup". setup Your subclass should override this to set the various field values. send_one_message Delivers the notification, using the Email::Send mailer defined in the "Mailer" and "MailerArgs" configuration arguments. Returns true if mail was actually sent. Note errors are not the only cause of mail not being sent -- for example, the recipients list could be empty. If you wish to send HTML mail, set "html_body". If this is not set (for backwards compatibility) a plain-text email is sent. If "html_body" and "body" are both set, a multipart mail is sent. See Email::MIME::CreateHTML for how this is done. Be aware that if you haven't set "recipients", this will fail silently and return without doing anything useful. set_headers MESSAGE Takes a Email::MIME object "MESSAGE", and modifies it as necessary before sending it out. As the method name implies, this is usually used to add or modify headers. By default, does nothing; this method is meant to be overridden. body [BODY] Gets or sets the body of the notification, as a string. subject [SUBJECT] Gets or sets the subject of the notification, as a string. from [FROM] Gets or sets the from address of the notification, as a string. recipients [RECIPIENT, ...] Gets or sets the addresses of the recipients of the notification, as a list of strings (not a reference). email_from OBJECT Returns the email address from the given object. This defaults to calling an 'email' method on the object. This method will be called by "send" to get email addresses (for "to") out of the list of "recipients". to_list [OBJECT, OBJECT...] Gets or sets the list of objects that the message will be sent to. Each one is sent a separate copy of the email. If passed no parameters, returns the objects that have been set. This also suppresses duplicates. send Sends an individual email to every user in "to_list"; it does this by setting "to" and "recipient" to the first user in "to_list" calling Jifty::Notification's "send" method, and progressing down the list. Additionally, if "to" was set elsewhere, sends an email to that person, as well. to Of the list of users that "to" provided, returns the one which mail is currently being sent to. This is set by the "send" method, such that it is available to all of the methods that Jifty::Notification's "send" method calls. preface Print a header for the message. You want to override this to print a message. Returns the message as a scalar. footer Print a footer for the message. You want to override this to print a message. Returns the message as a scalar. full_body The main, plain-text part of the message. This is the preface, body, and footer joined by newlines. full_html Same as full_body, but with HTML. parts The parts of the message. You want to override this if you want to send multi-part mail. By default, this method returns a single part consisting of the result of calling "$self->full_body". Returns the parts as an array reference. magic_letme_token_for PATH Returns a Jifty::LetMe token which allows the current user to access a path on the site. perl v5.14.2 2011-01-26 Jifty::Notification(3pm)
All times are GMT -4. The time now is 02:09 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy