10-31-2009
After entering "mail -s "testing" email@address, you will get a blank line to start typing your message. Continue typing, although there is no way to correct errors or change anything on previous lines, until the message is complete. At that time enter a <Ctrl>d on a line by itself, and the message will be sent.
Or.
Create the message using a text editor, and when complete enter:
mail -s "subject" email@address <my_message_file
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hello, all.
We currently have three UNIX boxes run Reliant Unix, a System V Release 4
variant. Mail can't be sent out of one of the boxes to anywhere outside the box.
For a client we use the mail command. I am not sure how to determine the message transfer daemon that is running.
When... (2 Replies)
Discussion started by: petrosi
2 Replies
2. Shell Programming and Scripting
hi all
I am not able to send mail from unix box to my mail id.
do i need to do any settings for that?
when i issue this command:-
mail -s "letter" <abc.txt
the $ pompt goes away and the unix is on wait state.
what should I do? (3 Replies)
Discussion started by: infyanurag
3 Replies
3. AIX
I've configured sendmail.cf file and sent a test. Failed. /var/adm/messages log file showed "Unknown Domain" error. Added my domain to the sendmail.cf file and error went away but I still don't receive messages. And now there's no errors in the log file to point to another issue.
mailx -s "This... (2 Replies)
Discussion started by: bbbngowc
2 Replies
4. BSD
Hi hopefully I am in the right forum
I am trying to get mail working on a 15 year old server which has probably never been configured to work before
The server is on a network with TCP installed and the different servers on this network can all see each other with ping and rsh
when I try... (4 Replies)
Discussion started by: DanJSC
4 Replies
5. Shell Programming and Scripting
HI All,
I am facing the problem with rmail ...
Actually my server is linux environment Redhot server.
To send a mail which command I have to use it . I want subject and I want to Include CC also
And body of the mail also there . But If I use rmail command it is not taking any options to... (1 Reply)
Discussion started by: ksrivani
1 Replies
6. Red Hat
Hi,
I have a fresh new installation of red hat linux. I am trying to send an email from the "mail" utility from inside my Linux box to my company id "xxx@company.com". We are using microsoft exchange server online version to host our company's email.
I am able to send emails to gmail and... (2 Replies)
Discussion started by: priya33184
2 Replies
7. BSD
Hi,
Mail command is not working.
mail -s "hello" abc@google.com < samplefile
I am new to BSD.what do i need to do? Please help.
Thnaks,
Gita.
Please use code tags next time for your code and data. (2 Replies)
Discussion started by: gita
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. Red Hat
Hello All,
we have got a new linux server where the mailx/sendmail/uuencode doesn't seem to be working.
The system admin guys have told me that they have configured the mail on port 25, the servers are in very secured zone which dont have internet connection hence i'm not able to understand... (1 Reply)
Discussion started by: Mahesh_RPM
1 Replies
10. 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
LEARN ABOUT SUSE
xdg-email
XDG-EMAIL(1) XDG-EMAIL(1)
NAME
xdg-email - command line tool for sending mail using the user's preferred e-mail composer
SYNOPSIS
xdg-email [--utf8] [--cc address] [--bcc address] [--subject text] [--body text] [--attach file] [mailto-uri address(es)]
xdg-email {--help --manual --version}
DESCRIPTION
xdg-email opens the user's preferred e-mail composer in order to send a mail to address(es) or mailto-uri. RFC2368 defines mailto: URIs.
xdg-email limits support to, cc, subject and body fields in mailto-uri, all other fields are silently ignored. address(es) must follow the
syntax of RFC822. Multiple addresses may be provided as separate arguments.
All information provided on the command line is used to prefill corresponding fields in the user's e-mail composer. The user will have the
opportunity to change any of this information before actually sending the e-mail.
xdg-email is for use inside a desktop session only. It is not recommended to use xdg-email as root.
See http://portland.freedesktop.org/EmailConfig for information on how the user can change the e-mail composer that is used.
OPTIONS
--utf8 Indicates that all command line options that follow are in utf8. Without this option, command line options are expected to be
encoded according to locale. If the locale already specifies utf8 this option has no effect. This option does not affect mailto URIs
that are passed on the command line.
--cc address
Specify a recipient to be copied on the e-mail.
--bcc address
Specify a recipient to be blindly copied on the e-mail.
--subject text
Specify a subject for the e-mail.
--body text
Specify a body for the e-mail. Since the user will be able to make changes before actually sending the e-mail, this can be used to
provide the user with a template for the e-mail. text may contain linebreaks.
--attach file
Specify an attachment for the e-mail. file must point to an existing file.
Some e-mail applications require the file to remain present after xdg-email returns.
--help Show command synopsis.
--manual
Show this manualpage.
--version
Show the xdg-utils version information.
ENVIRONMENT VARIABLES
xdg-email honours the following environment variables:
XDG_UTILS_DEBUG_LEVEL
Setting this environment variable to a non-zero numerical value makes xdg-email do more verbose reporting on stderr. Setting a
higher value increases the verbosity.
EXIT CODES
An exit code of 0 indicates success while a non-zero exit code indicates failure. The following failure codes can be returned:
1 Error in command line syntax.
2 One of the files passed on the command line did not exist.
3 A required tool could not be found.
4 The action failed.
5 No permission to read one of the files passed on the command line.
CONFIGURATION
Visit http://portland.freedesktop.org/EmailConfig for information how to configure xdg-email to use the email client of your choice.
EXAMPLES
xdg-email 'Jeremy White <jwhite@example.com>'
xdg-email --attach /tmp/logo.png
--subject 'Logo contest'
--body 'Attached you find the logo for the contest.'
'jwhite@example.com'
xdg-email --subject 'Your password is about to expire'
'jwhite@example.com' 'bastian@example.com' 'whipple@example.com'
AUTHOR
Kevin Krammer, Jeremy White.
<kevin.krammer@gmx.at>
<jwhite@codeweavers.com>
xdg-utils 1.0 06/24/2007 XDG-EMAIL(1)