09-09-2008
how to know if the mailx command really sends the mail to the email address?
Hi guys,
I have a question about the returning message of the mailx command.
if I run a mailx command, how can I know if the email has been sent to the email address? If the email address doesn't exist, is there any error message returned? If yes, how can I get the error message?
Thanks
Shine
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
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
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
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
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)
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
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
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
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
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
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
LEARN ABOUT HPUX
icod_notify
icapnotify(1M) icapnotify(1M)
NAME
icapnotify - Test email connectivity to HP for Instant Capacity (iCAP) systems. Request a confirmation response email from HP. Turn config-
uration change notification and asset reporting on or off.
SYNOPSIS
icapnotify <reply_address>
icapnotify -a on|off
icapnotify -n on|off
Obsolescent:
icod_notify <reply_address>
icod_notify -a on|off
icod_notify -n on|off
DESCRIPTION
When a reply_address is specified, sends an asset report via email to HP, root, and the specified email address. Confirmation email is
sent from HP to the specified reply email address indicating that HP received the asset report email.
Note that asset reporting is optional but can be useful for viewing complexwide asset information at the HP Utility Pricing Solutions por-
tal (http://www.hp.com/go/icap/portal).
The deprecated command provides identical functionality to the command and is maintained for backward compatibility.
For detailed information on email configuration and requirements, see the located at /usr/share/doc/icapUserGuide.pdf.
Options
The command recognizes these options and arguments:
-a on|off Turns email asset reporting on or off. This option is used to specify if the Instant Capacity software should send asset
reports to HP via email. The command displays the present setting for this option.
-n on|off Turns configuration change notification on or off. If specified on, executing the command results in a configuration
change notification email sent to the system contact email address summarizing any configuration change. Configuration
change notification email can be turned off by specifying off. Configuration change notifications are not sent if the
system contact email address is not set.
EXTERNAL INFLUENCES
Environment Variables
o LANG determines the locale to use for the locale categories when both LC_ALL and the corresponding environment variable (begin-
ning with LC_) do not specify a locale. If LANG is not set or is set to the empty string, a default of C is used (see lang(5)).
o LC_CTYPE determines the interpretation of single- and multiple-byte characters.
o LC_MESSAGES determines the language in which messages are displayed.
If any internationalization variable contains an invalid setting, icapnotify behaves as if all internationalization variables are
set to C (see environ(5)).
International Code Set Support
Single- and multiple-byte character code sets are supported.
RETURN VALUE
The command exits with one of these values:
0 Command succeeded.
>0 Command failed; error message sent to STDERR.
EXAMPLES
Test email connectivity with HP by sending an asset report to HP, root , and super_user@corp.com, and request a confirmation email from HP
to be sent to super_user@corp.com:
icapnotify super_user@corp.com
Turn email asset reporting on:
icapnotify -a on
Turn email asset reporting off:
icapnotify -a off
Turn configuration change notification on:
icapnotify -n on
Turn configuration change notification off:
icapnotify -n off
AUTHOR
was developed by HP.
SEE ALSO
icapmodify(1M), icapstatus(1M), icapmanage(1M), icapd(1M), icap(5).
icapnotify(1M)