- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: sendmail
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2003 03:00 AM
тАО07-21-2003 03:00 AM
I got the attached script from i do not remember where. In a way it works for "TO" and "CC". Is anybody able to explain how it works.
How may I send to multiple addressees ("TO's") and or "CC's" and "BCC's". What is obsolete in this script?
Many thanks in advance
Juerg
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2003 03:23 AM
тАО07-21-2003 03:23 AM
Re: sendmail
I have not checked how it works, but, you can send to multiple addresses with the sendmail alias capability, you can put an alias to the TO and CC fields and update the aliases file accondingly.
If you modify the aliases file you must run the newaliases command to rebuild the sendmail aliases database.
Frank.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2003 03:35 AM
тАО07-21-2003 03:35 AM
Solution#!/usr/bin/sh
export EMAIL_TO="dej,tbd"
export EMAIL_FROM=juerg.denneberg@ch.ey.com
export EMAIL_CC="dej,tbd"
export EMAIL_SUBJECT="Dienstleistungsertrag"
export EMAIL_ALL="$EMAIL_TO,$EMAIL_CC"
{
echo To: $EMAIL_TO
echo From: $EMAIL_FROM
echo CC: $EMAIL_CC
echo Subject: $EMAIL_SUBJECT
uuencode DLE.pdf Dienstleistungsertrag.pdf
} | /usr/sbin/sendmail $EMAIL_ALL
First, all of the variables are set (export). Then the sendmail input is constructed (inside the curly braces). Finally, sendmail receives it's input via the pipe.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2003 03:41 AM
тАО07-21-2003 03:41 AM
Re: sendmail
I'm attaching a mail script for reference that also does attachments. Its got five input parameters but I added that and its easy to strip out.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2003 04:09 PM
тАО07-21-2003 04:09 PM
Re: sendmail
Attached is the sample given to our new people.
It covers different types fo email possiblilities. As others have stated, you email list can be in a variable with multiple addresees.
Best of luck.
Regards,
dl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-22-2003 04:09 AM
тАО07-22-2003 04:09 AM
Re: sendmail
It works. Many Thanks
And Thanks also to all others involved
Regards
Juerg Denneberg