Sponsored Content
Full Discussion: Mail question?
Top Forums UNIX for Dummies Questions & Answers Mail question? Post 29825 by Kelam_Magnus on Friday 11th of October 2002 05:20:51 PM
Old 10-11-2002
I'll bite. Does the file have text in it?


I would use mailx. or ftp if you have it.

mailx -s "Put subject here" user@mail.com < /path/to/file

This works for text files.

Smilie
 

10 More Discussions You Might Find Interesting

1. How do I send email?

MAIL question for HP-Unix O/S

Has anyone written a script to attached a text file when sending an email using the MAIL command? I wrote a Unix Script to email an end-user a text file. I want the file to be an attachment. I've tried the unix command uuencode but this seems to be for a binary file. My text file is garbage... (3 Replies)
Discussion started by: dsthompson
3 Replies

2. UNIX for Dummies Questions & Answers

question on mail server

Hi In the company I work for one guy ask me this question: Can you have several mail servers managing the same domain, in the same lan? My first answer was that it's not possible cause each mail server must not share a domain, but .... I'm not sure. Can anyone more enlightened than me,... (1 Reply)
Discussion started by: piltrafa
1 Replies

3. UNIX for Dummies Questions & Answers

mail question here

how can I use a file as a contact list for the mail command? (1 Reply)
Discussion started by: lostinfaith
1 Replies

4. UNIX for Dummies Questions & Answers

New User/Mail setup question. PLEASE help.

OK, here's the situation. Our regular computer guy left the company without warning. We are in the process of replacing him with someone much more knowlegeable than I, but as of right now, I have been handed the duties. Our mail server is running OpenBSD and I need to set up a new employee with an... (3 Replies)
Discussion started by: Rotting
3 Replies

5. UNIX for Dummies Questions & Answers

Question on SCP and Mail command

Hey Guys, I created a script where i am trying to do scp from one machine to another and then from another to another remote machine. I am having a log file also with the current date and time stamp in which i have been successful. I would like to delete the log files older than 30 days in which... (9 Replies)
Discussion started by: chris1234
9 Replies

6. UNIX for Dummies Questions & Answers

/VAR/SPOOL/MAIL question

Hi, We have all the user account in a home direcory where their mail is stored and retrieved by email clients. We do however have /var/spool/mail with all the user accounts in it as well Our sendmail.cf is configured to use /var/spool/mqueue as the queue so .what is /var/spool/mail being used... (3 Replies)
Discussion started by: mojoman
3 Replies

7. UNIX for Dummies Questions & Answers

read mail question

how do I save a email I just read to a new file? Thanks. (3 Replies)
Discussion started by: drew211
3 Replies

8. UNIX for Dummies Questions & Answers

Question about sending mail

Hello im new user for linux and i have a question. In file address.txt i have 2 email addressees they are separated with , and i need to send email on those addresses with template can you guys give me some advice pls. And i´m writing this script in Bash (4 Replies)
Discussion started by: Whiskas
4 Replies

9. Linux

A simple question about mail command

Simple question: i read mail n°4,how to return to list of messages? (2 Replies)
Discussion started by: Linusolaradm1
2 Replies

10. UNIX for Advanced & Expert Users

Client was not authenticated to send anonymous mail during MAIL FROM (in reply to MAIL FROM comm

I am having trouble getting mail to work on a red hat server. At first I was getting this message. Diagnostic-Code: X-Postfix; delivery temporarily suspended: connect to :25: Connection refused Then added the port to my firewall. Then I temporarily turned off selinux. I then copied this file... (1 Reply)
Discussion started by: cokedude
1 Replies
MHMAIL(1)							     [nmh-1.5]								 MHMAIL(1)

NAME
mhmail - send or read mail SYNOPSIS
mhmail [addrs ...] [-body text] [-cc addrs ...] [-from addr] [-subject subject] [-version] [-help] DESCRIPTION
mhmail is intended as a replacement for the standard Berkeley mail program (mail or mailx), which is compatible with nmh. This program is intended for the use of programs such as cron, which expect to send mail automatically to various users. It is also used by various nmh commands to mail various error notifications. Although mhmail can be used interactively, it is recommended that comp and send be used instead to send messages. When invoked without arguments, it simply invokes inc to incorporate new messages from the user's maildrop. When one or more users is specified, a message is read from the standard input and spooled to a temporary file. mhmail then invokes post with the name of the tempo- rary file as its argument to deliver the message to the specified user. The -subject subject switch can be used to specify the "Subject:" field of the message. By default, mhmail will read the message to be sent from the standard input. You can specify the text of the message at the command line with the -body text switch. If the standard input has zero length, mhmail will not send the message. You can use the switch -body "" to force an empty message. Normally, addresses appearing as arguments are put in the "To:" field. If the -cc switch is used, all addresses following it are placed in the "cc:" field. By using -from addr, you can specify the "From:" header of the draft. Naturally, post will fill-in the "Sender:" header correctly. FILES
/usr/bin/mh/inc Program to incorporate maildrop into folder /usr/lib/mh/post Program to deliver a message /tmp/mhmail* Temporary copy of message SEE ALSO
inc(1), post(8) DEFAULTS
None CONTEXT
If inc is invoked, then inc's context changes occur. MH.6.8 11 June 2012 MHMAIL(1)
All times are GMT -4. The time now is 06:45 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy