Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Problem getting mailx to send true Bcc mail to multiple recipients Post 302877414 by legrandtimonier on Sunday 1st of December 2013 02:57:09 AM
Old 12-01-2013
Yes, -b included

Hi,

Thanks for getting back to me on this. Yes, I did include the -b and a series of addresses separated by commas. If you can give me an example of how the syntax of a typical message would look that would be useful. Maybe there are parentheses or brackets or something else I missed in there, but I think I did it right, i.e.:
Code:
mailx -b person1@somewhere.com, person2@somewhere.com….

Regards,

Gary

Last edited by vbe; 12-01-2013 at 04:23 AM..
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

using mailx to send a log file to my outlook e-mail account

I like to use mailx -s to send an entire xxxxx.log to my outlook e-mail account. Any help will be appreciated. Thanks. (6 Replies)
Discussion started by: simt
6 Replies

2. UNIX for Dummies Questions & Answers

using mailx with multiple recipients

I am trying to use a file containing email addresses in my mailx command like the following: SUBJECT="Kronos User Report" BODY="kronos.txt" MAILTO="kronosmail.txt" mailx -s "$SUBJECT" $MAILTO < $BODY This works fine for the body of the message but for the recipient it says: ... (6 Replies)
Discussion started by: sdhalepaska
6 Replies

3. Shell Programming and Scripting

Problem with Mailx command to send mail with attachment

Hi, I am using mailx command to send a mail with attachment. It's working fine, but with attachment I am getting one extra attachment like (ATT00131.txt). I have tried to use unix2dos command also. But still I am getting the extra attachment. I am using the following code: subject="temp... (5 Replies)
Discussion started by: viswanatharv
5 Replies

4. UNIX for Dummies Questions & Answers

Unable to send e-mail using mailx command

Hi All, Can you please help me in solving this. I am facing some problem sending mails. If I use like this, I am able to send mail the mail echo "This is an automated e-mail; please do not reply." | mailx -s "Good Morning ." 'abc@xys.com' But if I use like this, then I am unable to send... (1 Reply)
Discussion started by: manas6
1 Replies

5. UNIX for Advanced & Expert Users

how to send file as attachment using mail or mailx

I have a need to send a file from the unix command line to be sent as an attachment. Is this possible? That is when I open my outlook email I need to file to appear as an attachment. Also, is there a way to use the mail binary (not mailx) to modify the "reply address". mailx -r works but I need... (1 Reply)
Discussion started by: kieranfoley
1 Replies

6. Shell Programming and Scripting

send attachment and body in one mail using mailx

Hi, Our requirement is to send an attachment and content in a single mail. I am using the below command to send attachement. --------------------- (uuencode $exp_file $exp_file) |mailx -s "$email_subject" $EmailRecipients -------------------- I m not able to send any message in the... (4 Replies)
Discussion started by: ashwin3086
4 Replies

7. Solaris

Unable to send mail through mailx

Hi, I am using solaris 5.9 OS and I am facing an issues with mailx. My SMTP port is configured to listen 6190 and not the default one which is 25. I can send mail to my inbox when i do it manually through the following steps root@<dbname> # telnet 15.12.88.10 6190 Trying 15.12.88.10...... (0 Replies)
Discussion started by: Srinathkiru
0 Replies

8. Shell Programming and Scripting

Send mail using mailx to CC only, not TO

Hi All, I am using mailx to send the mail. Due to some changes in the requirement, I need to send the mail to CC only (an Email id in CC), with no email ID in "TO" field. Can we do that? bcz I used -c flag only and got the message:":The flags you gave make no sense since you're not sending... (2 Replies)
Discussion started by: unankix
2 Replies

9. Shell Programming and Scripting

Mailx command - send mail as table format

I have to send a couple of rows that have been returned from a SQL query. I have written the output of the query to a file and while i try to print this in the mail body the formatting goes wrong. Intended Output in mail body: Col1 Col2 Col3 ------ ... (2 Replies)
Discussion started by: qwertyu
2 Replies

10. Shell Programming and Scripting

Not able to send the mail using mail and mailx command

Hi All, I am trying to send a mail from linux server but could'nt able to send the mail. I tried the below syntax's so far but no luck. mail -s “Hello world” abc@xyz.com < /usr/g/txt.log cat "txt.log" | mailx -s "Hello world" abc@xyz.com mailx -s “Hello world” abc@xyz.com <... (2 Replies)
Discussion started by: scriptscript
2 Replies
TOPS(1) 						      General Commands Manual							   TOPS(1)

NAME
tops - perform in-place substitutions on code. SYNOPSIS
tops [-help] [-verbose] [-nocontext] [-nofileinfo] [-semiverbose)] [-dont] (-scriptfile script_name) | (find "search_pattern" [where ("sym- bol"...) isOneOf {("match"...)...}] ...) | (replace "search_pattern" with "replacement_pattern" | same [where ("symbol"...) isOneOf {("match"...)...}]... [within ("symbol") {...}]... [error "message"] [warning "message"]) | ( replacemethod "selector" with "new_selector"{ [replace "symbol" with "symbol_replacement"]... } [where ("symbol"...) isOneOf {("match" ...)...}]... [within ("symbol") {...}]... [error "message"] [warning "message"] ) [-classfile classfile] [filename ...] DESCRIPTION
tops is a tool that performs in-place substitutions on source files according to a set of rules. Each tops rule describes a particular translation. For example, one tops rule might specify that occurrences of the token 'Application' should be converted to 'NSApplication'. In tops syntax, this rule will appear as: replace "Application" with "NSApplication" OPTIONS
-help Displays the tops syntax line. -verbose Prints out the source code lines that are being changed by the command. -nocontext Instead of printing the whole source code line that is being changed or searched for, shows only the portion of the line that has the change. -nofileinfo Does not print the file name and line number information in verbose messages. -semiverbose Shows how much of the file has been processed. -dont Shows what changes would be made to the source code without actually performing the changes. -scriptfile script_name Specifies the script file containing the rules that tops will apply to your code. The script file can contain three types of rules: find, replace, and replacemethod. It also can contain C-style comments, /* ... */. find "search_pattern" Locates all occurrences of search_pattern in the file. search_pattern can contain literal strings and tokens in angle brackets, as described below. where ("symbol"...) isOneOf {("match"...)...} When search_pattern contains tokens in angle brackets, further refines what the token specified by symbol should match. replace "search_pattern" with "replacement_pattern" | same Replaces all occurrences of search_pattern in the file with replacement_pattern. same replaces search_pattern with itself. You usu- ally use same when you want to print out an error or warning message instead of replacing the code. within ("symbol") {...} Specifies further conversions within one of the tokens specified in search_pattern. find, replace, and replacemethod rules can appear within the angle brackets. error "message" Generates an #error message located at search_pattern. warning "message" Generates a #warning message located at search_pattern. replacemethod "selector" with "new_selector" Replaces all invocations, declarations, implementations, and @selector expressions using the method selector with new_selector. -classfile classfile Specifies a file that describes the class hierarchy used by the files being processed. filename ... Specifies the source file(s) you want to convert. You can specify more than one filename, separated by spaces. The files are con- verted in place; no backups are created. If no file is specified, the tops commands are performed on standard input. The simplest search pattern is a literal string, such as "Application". Within the search pattern, you can define tokens that specify a particular syntax element rather than a literal string. The tokens have the form: <type label> where: type Specifies the type of syntax element the token can match with. label Is a unique label that you assign to the token. type can be one of the following: a Matches any sequence of tokens. b Matches any balanced sequence of tokens, that is, a sequence of tokens within parentheses or curly braces. e Matches any expression. This is the default. s Matches any string. t Matches any one token. w Matches white space, including comments. In a replacemethod rule, three subtokens are defined for each token you specify in the selector. For each token <foo> in the selector, replacemethod defines the following. The Examples section shows an example of using one of these. <foo_arg> Represents the tokens in the invocation of the method, that is, what is supplied for the foo argument. <foo_type> Represents the type for foo that appears in the declaration. <foo_param> Represents the parameter in the declaration. replacemethod also defines the following labels: <implementation> Represents the body of the method implementation (not including curly braces). <receiver> Represents the receiver of the message. <call> Represents the entire method invocation (including the square brackets). EXAMPLES
The following is a typical tops command invocation. The script file MyRules.tops contains the find, replace, and replacemethod rules that are performed on the files in MyProjectDir. The -semiverbose option means that name of the file being processed and the progress of the command will be printed to standard output. tops -semiverbose -scriptfile MyRules.tops MyProjectDir/*.[hm] The following is a typical rule that a tops script file would contain. The rule renames the method removeRowAt:andFree: to removeRow:andRelease: in all invocations, declarations, implementations, and @selector expressions. replacemethod "removeRowAt:andFree:" with "removeRow:andRelease:" The following rule marks all calls to the function NXGetNamedObject() with the error message. same means replace this function with itself. NXGetNamedObject() will still appear in the file, but it will be marked by the error message. <b args> specifies to replace all of the arguments in between the parentheses as well. replace "NXGetNamedObject(<b args>)" with same error "ApplicationConversion: NXGetNamedObject() is obsolete. Replace with nib file outlets." The following rule renames the method in all occurrences, and swaps the second and third argument in all invocations and declarations. replacemethod "browser:fillMatrix:<2>inColumn:<3>" with "browser:createRowsForColumn:<3>inMatrix:<2>" The following rule renames the method in all occurrences. In the invocations, it reverses the value specified for the flag argument. replacemethod "myMethod:<flag>" with "myNewMethod:<flag>" { replace "<flag_arg>" with "!<flag_arg>" } The following rule renames the method initContent:style:backing:buttonMask:defer: to initWithContentRect:styleMask:backing:defer: in all occurrences. In the declarations of this method, it changes the type for the style argument to be unsigned int and the type for the backing argument to be NSBackingStoreType. replacemethod "<old>" with "<new>" { replace "<style_type>" with "(unsigned int)" replace "<backing_type>" with "(NSBackingStoreType)" } where ("<old>", "<new>") isOneOf { ("initContent:style:<style> backing:<backing> buttonMask:<bmask> defer:<flag>", "initWithContentRect:styleMask:<style> backing:<backing> defer:<flag>"), } The following rule renames the method minFrameWidth:forStyle:buttonMask: to minFrameWidthWithTitle:styleMask: in all occurrences. Within invocations of this method, it changes the style argument to be the logical OR of the previous style argument and the previous button mask argument. Within method declarations, it changes the type for the style argument to be unsigned int. Within the implementation of this method, it changes all uses of the button mask argument to the style argument. replacemethod "minFrameWidth:forStyle:<style> buttonMask:<bmask>" with "minFrameWidthWithTitle:styleMask:<style>" { replace "<style_arg>" with "<style_arg>|<bmask_arg>" replace "<style_type>" with "(unsigned int)" } within ("<implementation") { replace "<bmask_param>" "<style_param>" } Apple Computer, Inc. March 14, 1995 TOPS(1)
All times are GMT -4. The time now is 03:26 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy