Sponsored Content
Full Discussion: I need technical support
Contact Us Forum Support Area for Unregistered Users & Account Problems I need technical support Post 303022603 by Unregistered on Tuesday 4th of September 2018 03:09:09 AM
Old 09-04-2018
I need technical support

I need to create script to send mail to different group mail is like abc@gmail.com is group name and this group having 10 members. so how i can add the name of group and it resolve the members email id from the group and send mail automatically? how to do it by unix cmds. please help me

here in export mailto= currently i am using different mail ids but i need to use group of mail ids in that place like mailto=abc@gmail.com.

For using this group is there any need to do changes in permission of group and how.
please let me know
Code:
-----------------------------------------------------------
rm /base/app/etl/work/base_Disk_Space_Tuot.csv;
df -k /base/app/ > /base/app/etl/work/base_Disk_Space_Tuot.csv; 
export MAILFROM="hema@gmail.com"
export MAILTO="hemae@gmail.com hema.bhure@gmail.com"
export SUBJECT="Attached Report For base_Total_Disk_Space_Utilization"
export BODY=""
export ATTACH="/base/app/etl/work/base_Disk_Space_Tuot.csv"
export MAILPART=`uuidgen` ## Generates Unique ID
export MAILPART_BODY=`uuidgen` ## Generates Unique ID
(
 echo "From: $MAILFROM"
 echo "To: $MAILTO"
 echo "Subject: $SUBJECT"
 echo "Hello Team,
 
Please find attached file for TOTAL SPACE FOR app!!!! 

Thanks&Regards,
 hhh
 
 --------------- This is automated mail. Please do not reply to this mail------------------"
 
uuencode $ATTACH $(basename  $ATTACH)
 echo "--$MAILPART--"
) | /usr/sbin/sendmail $MAILTO

Unregistered
 

We Also Found This Discussion For You

1. What is on Your Mind?

UNIX.com Free Technical Support Infographic on YouTube

Still learning Adobe After Effects, I just put together this 1 minute infographic for the site. I could have done a better job with the resolutions of some of the "in laptop" screen shots; but then again, I'm not even close to being an expert on all these Adobe graphics tools, but I had fun... (0 Replies)
Discussion started by: Neo
0 Replies
Config::Model::models::PopCon(3pm)			User Contributed Perl Documentation			Config::Model::models::PopCon(3pm)

NAME
Config::Model::models::PopCon - Configuration class PopCon VERSION
version 2.021 DESCRIPTION
Configuration classes used by Config::Model Elements PARTICIPATE If you don't want to participate in the contest, say "no" and we won't send messages.Optional. Type enum. choice: 'no', 'yes'. upstream_default: 'no'. MAILTO - survey e-mail Specifies the address to e-mail statistics to each week.Optional. Type uniline. upstream_default: 'survey@popcon.debian.org'. MAILFROM - forged sender email address MAILFROM is the forged sender email address you want to use in email submitted to the popularity-contest. If this is commented out, no From: or Sender: lines will be added to the outgoing mail, and it will be your MTA's job to add them. This is usually what you want. If your MTA is misconfigured or impossible to configure correctly, and it always generates invalid From: and/or Sender: lines, you can force different results by setting MAILFROM here. This can cause problems with spam bouncers, so most people should leave it commented out.Optional. Type uniline. SUBMITURLS - list of urls to submit data to Space separated list of where to submit popularity-contest reports using http.Optional. Type uniline. upstream_default: 'http://popcon.debian.org/cgi-bin/popcon.cgi'. USEHTTP enables http reporting. Set this to 'yes' to enable it.Optional. Type enum. choice: 'no', 'yes'. upstream_default: 'yes'. HTTP_PROXY Allows one to specify an HTTP proxy server, the syntax is "http://proxy:port". This overrides the environment variable http_proxy.Optional. Type uniline. MY_HOSTID Secret number that the popularity-contest receiver uses to keep track of your submissions. Whenever you send in a new entry, it overwrites the last one that had the same HOSTID. This key was generated automatically so you should normally just leave it alone. Optional. Type uniline. DAY - day of week Only run on the given day, to spread the load on the server a bit. 0 is Sunday, 6 is Saturday. Optional. Type integer. SEE ALSO
o cme AUTHOR
Dominique Dumont COPYRIGHT
2010,2011 Dominique Dumont LICENSE
LGPL2 perl v5.14.2 2012-11-09 Config::Model::models::PopCon(3pm)
All times are GMT -4. The time now is 11:16 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy