Solved

Using mailx to send some text instead of file.

Posted on 2004-04-07
3
1,172 Views
Last Modified: 2010-04-21
I can use mailx to send file using "mailx -s "TEST" abc.com < filename" but how do I use mailx to send some text that I type ?
0
Comment
Question by:rgregor6
3 Comments
 
LVL 9

Expert Comment

by:Alf666
ID: 10775061
Just type :

mail user@domain.tld

It will ask you for the subject, and then you can type your text in.

End it with a point (".") alone at the beginning of a line.

0
 
LVL 7

Accepted Solution

by:
fim32 earned 250 total points
ID: 10777358
or, you can do:
mailx -s "TEST" abc.com << END
type
stuff
here
and end
with
END
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 10777442
echo "some text that I type"|mailx -s "TEST" abc.com
# but  fim32's here document is more likely what you need
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Vmware Vswitch  VS  Redhat  Bridge 1 99
How to Change Interface on Cisco IOU 11 83
Sed question 2 68
MarkLogic 1 69
Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now