[SunHELP] How do I e-mail from command line

Lund, Dennis sunhelp at sunhelp.org
Fri Jun 29 07:49:39 CDT 2001


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C10099.F5BD6170
Content-Type: text/plain;
	charset="iso-8859-1"

mail -s"Subject" username at domain.com <mailto:username at domain.com> 
TYPE YOUR TEXT
.                                        # the "." then "enter" indicates
EOT and sends the mail.
 
To send a file:
mailx -s"Subject" username at domain.com <mailto:username at domain.com>  <
filename
 
Dennis L. Lund

-----Original Message-----
From: Kurt Huhn [mailto:kurt at k-huhn.com]
Sent: Friday, June 29, 2001 7:32 AM
To: sunhelp at sunhelp.org
Subject: Re: [SunHELP] How do I e-mail from command line


Haven't done this on a sparc in ages, I think mailx is the command.  It
should go something like
$ echo "your message" | mailx -s "message subject" user at domain.dom
<mailto:user at domain.dom> 
 
Kurt
 

----- Original Message ----- 
From: MUHAMED, Mohd. Khairul <mailto:khairul_muhamed at astro.com.my>  
To: sunhelp <mailto:sunhelp at sunhelp.org>  
Sent: Friday, June 29, 2001 3:09 AM
Subject: [SunHELP] How do I e-mail from command line



Hi all, 

It's been a long time since I last used the mail command. What's the correct
way to mail a user using the mail command. I am running Solaris 7



Thanks and Regards, 
    Khairul 



     - - - - - - -  Appended by Scientific-Atlanta, Inc.  - - - - - - -  
This e-mail and any attachments may contain information which is
confidential, proprietary, privileged or otherwise protected by law. The
information is solely intended for the named addressee (or a person
responsible for delivering it to the addressee). If you are not the intended
recipient of this message, you are not authorized to read, print, retain,
copy or disseminate this message or any part of it. If you have received
this e-mail in error, please notify the sender immediately by return e-mail
and delete it from your computer. 



------_=_NextPart_001_01C10099.F5BD6170
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<TITLE>How do I e-mail from command line</TITLE>

<META content=3D"MSHTML 5.00.2920.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT color=3D#0000ff face=3DArial><SPAN =
class=3D385484512-29062001>mail=20
-s"Subject" <A=20
href=3D"mailto:username at domain.com">username at domain.com</A></SPAN></FONT=
></DIV>
<DIV><FONT color=3D#0000ff face=3DArial><SPAN =
class=3D385484512-29062001>TYPE YOUR=20
TEXT</SPAN></FONT></DIV>
<DIV><FONT color=3D#0000ff face=3DArial><SPAN=20
class=3D385484512-29062001>.       &n=
bsp;           &n=
bsp;           &n=
bsp;       =20
# the "." then "enter" indicates EOT and sends the =
mail.</SPAN></FONT></DIV>
<DIV> </DIV>
<DIV><FONT color=3D#0000ff face=3DArial><SPAN =
class=3D385484512-29062001>To send a=20
file:</SPAN></FONT></DIV>
<DIV><FONT color=3D#0000ff face=3DArial><SPAN =
class=3D385484512-29062001>mailx=20
-s"Subject" <A=20
href=3D"mailto:username at domain.com">username at domain.com</A></SPAN></FONT=
><FONT=20
color=3D#0000ff face=3DArial><SPAN =
class=3D385484512-29062001> <=20
filename</SPAN></FONT></DIV>
<DIV><FONT color=3D#0000ff face=3DArial><SPAN=20
class=3D385484512-29062001></SPAN></FONT> </DIV>
<DIV><FONT color=3D#0000ff face=3DArial><SPAN =
class=3D385484512-29062001>Dennis L.=20
Lund</SPAN></FONT></DIV>
<BLOCKQUOTE style=3D"MARGIN-RIGHT: 0px">
  <DIV align=3Dleft class=3DOutlookMessageHeader dir=3Dltr><FONT =
face=3DTahoma=20
  size=3D2>-----Original Message-----<BR><B>From:</B> Kurt Huhn=20
  [mailto:kurt at k-huhn.com]<BR><B>Sent:</B> Friday, June 29, 2001 7:32=20
  AM<BR><B>To:</B> sunhelp at sunhelp.org<BR><B>Subject:</B> Re: [SunHELP] =
How do I=20
  e-mail from command line<BR><BR></DIV></FONT>
  <DIV><FONT face=3D"Courier New" size=3D2>Haven't done this on a sparc =
in ages, I=20
  think mailx is the command.  It should go something =
like</FONT></DIV>
  <DIV><FONT face=3D"Courier New" size=3D2>$ echo "your message" | =
mailx -s "message=20
  subject" <A =
href=3D"mailto:user at domain.dom">user at domain.dom</A></FONT></DIV>
  <DIV> </DIV>
  <DIV><FONT face=3D"Courier New" size=3D2>Kurt</FONT></DIV>
  <DIV> </DIV>
  <BLOCKQUOTE=20
  style=3D"BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; =
MARGIN-RIGHT: 0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">
    <DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
    <DIV=20
    style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
    <A href=3D"mailto:khairul_muhamed at astro.com.my"=20
    title=3Dkhairul_muhamed at astro.com.my>MUHAMED, Mohd. Khairul</A> =
</DIV>
    <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A=20
    href=3D"mailto:sunhelp at sunhelp.org" =
title=3Dsunhelp at sunhelp.org>sunhelp</A>=20
    </DIV>
    <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Friday, June 29, 2001 =
3:09=20
    AM</DIV>
    <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> [SunHELP] How do I =
e-mail from=20
    command line</DIV>
    <DIV><BR></DIV><BR>
    <P><FONT face=3DArial size=3D2>Hi all,</FONT> </P>
    <P><FONT face=3DArial size=3D2>It's been a long time since I last =
used the mail=20
    command. What's the correct way to mail a user using the mail =
command. I am=20
    running Solaris 7</FONT></P><BR><BR>
    <P><FONT color=3D#000000 face=3DVerdana size=3D2>Thanks and</FONT> =
<FONT=20
    color=3D#000000 face=3DTahoma size=3D2>Regards,</FONT> <BR><FONT =
color=3D#000000=20
    face=3DTahoma size=3D2>    Khairul</FONT>=20
</P></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>
<BR>
<BR>

<P>     - - - - - - -  Appended by Scientific-Atlanta, Inc.  - - - - - =
- -  </P>

<P>This e-mail and any attachments may contain information which is =
confidential, proprietary, privileged or otherwise protected by law. =
The information is solely intended for the named addressee (or a person =
responsible for delivering it to the addressee). If you are not the =
intended recipient of this message, you are not authorized to read, =
print, retain, copy or disseminate this message or any part of it. If =
you have received this e-mail in error, please notify the sender =
immediately by return e-mail and delete it from your computer. </P>
<BR>
<BR>

------_=_NextPart_001_01C10099.F5BD6170--



More information about the SunHELP mailing list