Sponsored Content
Operating Systems Linux Red Hat Problems sending mail: Difference between Mail and Mailx? Post 302850403 by MadeInGermany on Wednesday 4th of September 2013 04:07:04 PM
Old 09-04-2013
The -r option is not portable. Maybe on purpose because it's ideal for a spammer.
The default is the user who sends the mail, and the administrator put some rules to generate a sender address out of it. (And that's not safe against a professional spammer either.)
I like the old Unix mail or sendmail tools that do not even know a -s option, and you have to construct the mail header in SMTP style:
Code:
echo "\
Subject: $SUBJECT 
From: $FROM

$MESSAGE
" | mail $RECIPIENTS

NB an empty line indicates the end of the header section.
You can still try that with your advanced mail and mailx programs...
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Problems sending Mail

Hello everybody I already read all the posts about "how to send email" but i dont find the solution, i need to send a mail via commands. Into the mail i need to attach a file.txt how can i do that? Thanx. Lestat (2 Replies)
Discussion started by: Lestat
2 Replies

2. Shell Programming and Scripting

sending mail through mailx

while trying to send a mail, though the output file doesn't contain any exclamatory mark(!), i am getting that in the mail with an extra line. please help me out from this ASAP. (3 Replies)
Discussion started by: pvamsikr
3 Replies

3. UNIX for Dummies Questions & Answers

sending mail using mailx command

Hi All, Please help me regarding sending mails using mailx command in unix. I will be glad if some one give me the sintax of this. I tried using the below but vain. mailx -s 'Hi' 'xyz@abc.com' Regards, Manas (5 Replies)
Discussion started by: manas6
5 Replies

4. UNIX for Dummies Questions & Answers

Difference between mail,mailx,sendmail

Hello friends I need to know the difference between mail,mailx and sendmail commands. Thanks in advance (1 Reply)
Discussion started by: rocker
1 Replies

5. Shell Programming and Scripting

sending mail from perl using mailx

hi All, i am trying to send a mail from perl using mailx. the script runs fine if i hard code the file path which is to be attached to the mail. but when i give a variable containing the path of the file , perl is not able to send the file. ex: system('uuencode /attach/test.txt... (3 Replies)
Discussion started by: adityamahi
3 Replies

6. UNIX for Advanced & Expert Users

Sendmail problems -- with sending mail

Hello, I am C. and I would like to send mail with Sendmail to my hotmail-account. But this doesn't work, the mail always returns in the file: /var/spool/mail/root. Probably there is something wrong with my SmartHost. I configured it like: define ( 'SMART_HOST','smtp.direct-adsl.be') -->... (1 Reply)
Discussion started by: caroline
1 Replies

7. Shell Programming and Scripting

sending mail using Mailx with data from oracle table

Hi, i need to send emails to the mail ids i receive using the sql query . SELECT L.ALARM_DEF,L.CRITERIA,L.DISTANCE_METRE,L.EMAIL,L.LAC_ID,L.LAST_CHECK,L.RANGE, L.RESOURCE_MSISDN,LM.ADDRESS,LM.NAME FROM LANDMARK_ALARM_CONF l, LANDMARK lm WHERE L.LANDMARK_ID=LM.LANDMARK_ID AND... (0 Replies)
Discussion started by: aemunathan
0 Replies

8. Shell Programming and Scripting

sending mail through mailx command

Hi I need help to send mail through mailx command . Currenlt my program is like #!/bin/ksh -x echo " " >> path.lst MAIL_LIST='someone1@gamil.com someone2@gamil.com someone3@gamil.com' cat path.lst | mailx -s "path loaction" $MAIL_LIST echo "End" exit 0 Its work fine . But i... (3 Replies)
Discussion started by: mani_isha
3 Replies

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

10. UNIX for Dummies Questions & Answers

Mailx working but not sending mail

Hi All, I have a unix server on which mailx is configured . Earlier i was getting proper mails but now some mails are getting stuck and i am not receiving the emails from the server. I can see the mails in mailq. Can you please help me with this . How can i receive these emails? (2 Replies)
Discussion started by: pratikm23
2 Replies
CLAWS-MAIL-EXTRA-PLUGINS(1)				      General Commands Manual				       CLAWS-MAIL-EXTRA-PLUGINS(1)

NAME
claws-mail-extra-plugins -- Claws Mail extra plugins meta package. DESCRIPTION
claws-mail-extra-plugins is a meta package for installing all extra plugins for the Claws Mail mailer. See below for the corresponding manpages of each installed plugin. SEE ALSO
claws-mail-acpi-notifier (1), claws-mail-attach-remover (1), claws-mail-cache-saver (1), claws-mail-etpan-privacy (1), claws-mail-feeds- reader (1), claws-mail-fetchinfo-plugin (1), claws-mail-html2-viewer (1), claws-mail-maildir-plugin (1), claws-mail-mailmbox-plugin (1), claws-mail-multi-notifier (1), claws-mail-newmail-plugin (1), claws-mail-perl-filter (1), claws-mail-smime-plugin (1), claws-mail-vcalen- dar-plugin (1), claws-mail-synce-plugin (1), claws-mail-attach-warner (1), claws-mail (1). http://www.claws-mail.org/plugins.php (link to URL http://www.claws-mail.org/plugins.php) AUTHOR
This manual page was written by Ricardo Mones mones@debian.org for the Debian system (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 any later version published by the Free Software Foundation. On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL. CLAWS-MAIL-EXTRA-PLUGINS(1)
All times are GMT -4. The time now is 10:28 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy