Sponsored Content
Top Forums Shell Programming and Scripting how to know if the mailx command really sends the mail to the email address? Post 302234595 by zaxxon on Wednesday 10th of September 2008 01:59:39 AM
Old 09-10-2008
You can check the log of your Message Transfer Agent (MTA) like sendmail, postfix or mailman etc.. Usually they write their log into /var/log/mail.log or something similar on Linux. Other OS can have different logfiles or directories for that.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

mailx- can we change the from address in the email that is sent out.

Hello, Is there anyway to change the from address in the email sent using mailx command? I have the following command: mailx -s $subject xxx@xxxx.com < $mail_mesg This defaults to the following format "acctname@usserver.companyname.com" as the from address in the email. Problem is this... (5 Replies)
Discussion started by: radhika
5 Replies

2. UNIX for Dummies Questions & Answers

How to verify email address using mailx command ?

Is there any way i can verify the email address (before sending the mail) using the mailx command ? I know that sendmail -bv email@address.com can do it but there is a compatibility issues with the version of Unix we have. So mailx is the only command we can used at this point. Any... (1 Reply)
Discussion started by: rak007
1 Replies

3. Shell Programming and Scripting

mailx -s not sending the file to mail address

Hi All, OS:Red Hat Linux 4 86x64 Below is my shell script which is not sending mail to the mail recipient: #!/bin/bash export MAILLIST="xyz@yahoo.com" cd <path_to_the_script_perf_report.sql> sqlplus / as sysdba @perf_report.sql if then cat <path_to_the_script/*MONTHLY*REPORT*.lst... (6 Replies)
Discussion started by: a1_win
6 Replies

4. Red Hat

How to change sender email address in mail -s command

Just having trouble trying to figure out what the option is. When I do mail -s "Subject" someuser@example.com I can't seem to specify "from" or "sender" option as I need it for my task. I tried using --f or -f though it didn't work. Can someone please tell me what other option... (0 Replies)
Discussion started by: rockf1bull
0 Replies

5. OS X (Apple)

mailx to external email address

Hi, How can I use "mailx" command to send message to an email address like this? echo "This email body" | mailx -s "my subject" "email@hostname.com" There may be some setup required in sendmail or postfix?? OS = Snow Leopard 10.6 (4 Replies)
Discussion started by: FlyingSquirrel
4 Replies

6. Shell Programming and Scripting

configure from address in mailx command

Hi, I need to configure customized from address in mailx command. Can you pls tell me the option for configuring from address. Thanks Latika (9 Replies)
Discussion started by: latika
9 Replies

7. 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

8. Homework & Coursework Questions

Creating a function that sends a mail using mail command

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: The function will be called m and it will allow you to send an email to someone using the mail command. The... (1 Reply)
Discussion started by: Drucian
1 Replies

9. UNIX for Beginners Questions & Answers

Mail command not working for Long Email Address with Dashes

My company has an email user group email address name that has 35 characters in front of the @ symbol where two of them are dashes. For some reason the mail command fails to send email to this address when I invoke it from the Linux command line. I don't understand the reason for the failure. Below... (5 Replies)
Discussion started by: Phil44
5 Replies

10. Shell Programming and Scripting

Mailx issue; email address starting with #

Hello All, I have a requirement to generate report and send them to a distribution list. The problem I am facing is when sending out the email using mailx. The email address (DL) we have is starting with # and because of this it's not recognising the email and throwing the below error. ... (2 Replies)
Discussion started by: Pradeep_Raj
2 Replies
Agent::Tag(3pm) 					User Contributed Perl Documentation					   Agent::Tag(3pm)

NAME
Log::Agent::Tag - formats caller information SYNOPSIS
Intended to be inherited from DESCRIPTION
This class is meant to be inherited by all the classes implementing a log message tag. A message tag is a little string that is either appended or prepended to all log messages. For instance, and oversimplifying a bit, a tag meant to be prepended will be inserted in front of the current log message, separated by separator, which defaults to a single space: +------------+-----------+---------------------------------+ | tag string | separator | current log message | +------------+-----------+---------------------------------+ This operation is called tag insertion. The whole string then becomes the current log message, and can be the target of another tag insertion. The reality is a little bit more complex, to allow successive tags to be prepended or appended in the order they are specified, and not in reverse order as they would be if naively implemented. See Log::Agent::Message for the exact semantics of append() and prepend() operations. FEATURES
This section documents the interface provided to heirs, in case you wish to implement your own tag class. _init(name, postfix, separator) Initialization routine that should be called by all heirs during creation to initialize the common attributes. postfix When true, the tag is meant to be appended to the log message. Otherwise, it is prepended. name The name of this tag. It is meant to provide by-name access to tags, check whether a given tag is recorded, etc... The names "caller" and "priority" are architecturally defined to refer to "Log::Agent::Tag::Caller" and "Log::Agent::Tag::Priority" objects. NOTE: Currently unused by any client code. separator The sperating string inserted between the tag and the log message. It defaults to " " if not specified, i.e. left to "undef" when calling _init(). string() A deferred routine, to be implemented by heirs. Returns the tag string only, without the separator, since its exact placement depends on the value of the "postfix" attribute. insert(message) Insert this tag withing the "Log::Agent::Message" message, according to the tag specifications (placement, separator). Calls string() to produce the tag string. This routine is frozen and should not be redefined by heirs. STANDARD TAGGING CLASSES
Tagging classes define via their "string()" routine what is the string to be used as a tag. The insertion of the tag within the log message is done via a frozen routine from the "Log::Agent::Tag" ancestor. The following classes are provided by "Log::Agent": "Log::Agent::Tag::Callback" The "string()" routine invokes a user-supplied callback, given as a "Callback" object. You need the Callback module from CPAN if you wish to use this class. "Log::Agent::Tag::Caller" Used internally to compute the caller and format it according to user specifications. "Log::Agent::Tag::Priority" Used internally to format message priorities and add them to the log messages. "Log::Agent::Tag::String" Defines a constant tagging string that should be added in all the log messages, e.g. a web session ID. AUTHOR
Raphael Manfredi <Raphael_Manfredi@pobox.com> SEE ALSO
Log::Agent::Message(3). perl v5.10.0 2002-03-09 Agent::Tag(3pm)
All times are GMT -4. The time now is 02:19 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy