Sponsored Content
Top Forums Shell Programming and Scripting uuencode mailx - send multiple emails Post 302324918 by clx on Friday 12th of June 2009 08:15:31 AM
Old 06-12-2009
if you want to send another email.. then you must have some value differ..
either subject or content or recipients.. if everything is same and you just want to add the recipients.. just modify your "$MAIL_TO" and/or "$MAIL_TO_TEST"
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

mailx and uuencode question

I have this code below that works well. I also want to attach a logfile to the email. The first part of this code is the body of the email. echo "The size of $dirname/$f1 size = $f1size, and $dirname/$f2 = $f2size'" | mailx -s "Error with file sizes on $HOST Server" xyz@company.com ... (1 Reply)
Discussion started by: ssmiths001
1 Replies

2. Shell Programming and Scripting

Using mailx to send email to multiple users.

Hi, I am using the mailx command to send email to multple users. The command works fine when i am sending mail to a single user but when i insert multiple email ids inside the quote it does not work. All the email ids are coming from a property file.Please have a lookt at the property file and... (4 Replies)
Discussion started by: priyaksingh
4 Replies

3. Shell Programming and Scripting

uuencode/mailx

Hi all, I know how to use the uuencode/mailx commands to mail a single file within a directory, e.g. uuencode file.dat file.dat | mailx joe.smith@mail.com but now, i need to be able to mail every file within the directory with one command, any ideas? thanks :b: (1 Reply)
Discussion started by: ocelot
1 Replies

4. Shell Programming and Scripting

mailx, uuencode problem

I've this command to run ... Purpose : Send attachment file with e-mail body... ( E-mail body i read it from text file) uuencode TEST_FILE.csv TEST_FILE.csv | cat /usr/local/bin/EMAIL_BODY.txt - | mailx -s "TEST Report" -c receiver1@mail.com receiver2@mail.com Here is the... (2 Replies)
Discussion started by: prash184u
2 Replies

5. Shell Programming and Scripting

Not able to send multiple attachments using uuencode and mailx

Hi, I am seeing some junk characters when I attach the second file, given below is the logic I used. Please help me resolving the issue. ( uuencode file1.txt file1.txt.lst && uuencode file2.txt file2.txt.lst ) > attachment.txt cat body.txt attachment.txt > combinemail.txt mailx -m... (7 Replies)
Discussion started by: prasperl
7 Replies

6. Shell Programming and Scripting

mailx script to do multiple emails

I am looking for a script that I can use with mailx to do the following: 1. Grab usernames from a flat file (one at a time) 2. Attach a file to the email and mail out. Thanks. Cubefeed (3 Replies)
Discussion started by: CubeFeed
3 Replies

7. UNIX for Advanced & Expert Users

mailx Vs sendmail to send internal emails to exchange

Hi Gurus, I have been searching for this around, but sendmail seems complicated and not sure if "mail" command would do, since all what I need to send internal emails from my solaris 10 box to our exchange server. Would the mailx or mail command do ? I tried the : # mailx -s test... (2 Replies)
Discussion started by: aladdin
2 Replies

8. Shell Programming and Scripting

Help with mailx, uuencode

Here's my code - FILES="file1 file2 file3" for File in ${FILES}; do uuencode "${File}" "$(basename ${File}" done | mailx email@id.com This works as expected, meaning emailing the files as attachments but with null body. Now what I want is a way to have the Body list the files in order e.g. ... (8 Replies)
Discussion started by: nexional
8 Replies

9. UNIX for Dummies Questions & Answers

Problem getting mailx to send true Bcc mail to multiple recipients

I am having trouble getting mailx to send multiple Bcc mails out without everyone in the list of recipients seeing everyone else's email addresses. I looked at the man pages of my system and seem to be following the syntax correctly, but the mails still go out as if I were just putting in a list of... (7 Replies)
Discussion started by: legrandtimonier
7 Replies

10. Shell Programming and Scripting

Uuencode & Mailx

hi, i am trying to send a pdf attachment which has a name of 200 characters using uuencode and mailx. But the email is not getting delivered. uuencode <filename.pdf> <filename.pdf> | mailx -s "Test" <email_id> (2 Replies)
Discussion started by: ATWC
2 Replies
CMS_decrypt(3SSL)						      OpenSSL							 CMS_decrypt(3SSL)

NAME
CMS_decrypt - decrypt content from a CMS envelopedData structure SYNOPSIS
#include <openssl/cms.h> int CMS_decrypt(CMS_ContentInfo *cms, EVP_PKEY *pkey, X509 *cert, BIO *dcont, BIO *out, unsigned int flags); DESCRIPTION
CMS_decrypt() extracts and decrypts the content from a CMS EnvelopedData structure. pkey is the private key of the recipient, cert is the recipient's certificate, out is a BIO to write the content to and flags is an optional set of flags. The dcont parameter is used in the rare case where the encrypted content is detached. It will normally be set to NULL. NOTES
OpenSSL_add_all_algorithms() (or equivalent) should be called before using this function or errors about unknown algorithms will occur. Although the recipients certificate is not needed to decrypt the data it is needed to locate the appropriate (of possible several) recipients in the CMS structure. If cert is set to NULL all possible recipients are tried. It is possible to determine the correct recipient key by other means (for example looking them up in a database) and setting them in the CMS structure in advance using the CMS utility functions such as CMS_set1_pkey(). In this case both cert and pkey should be set to NULL. To process KEKRecipientInfo types CMS_set1_key() or CMS_RecipientInfo_set0_key() and CMS_ReceipientInfo_decrypt() should be called before CMS_decrypt() and cert and pkey set to NULL. The following flags can be passed in the flags parameter. If the CMS_TEXT flag is set MIME headers for type text/plain are deleted from the content. If the content is not of type text/plain then an error is returned. RETURN VALUES
CMS_decrypt() returns either 1 for success or 0 for failure. The error can be obtained from ERR_get_error(3) BUGS
The lack of single pass processing and the need to hold all data in memory as mentioned in CMS_verify() also applies to CMS_decrypt(). SEE ALSO
ERR_get_error(3), CMS_encrypt(3) HISTORY
CMS_decrypt() was added to OpenSSL 0.9.8 1.0.1e 2013-02-11 CMS_decrypt(3SSL)
All times are GMT -4. The time now is 03:22 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy