how do I send an email using mail/sendmail

how do I send an email using mail/sendmail

Post by Rob » Sat, 26 Apr 2003 01:34:34



My Solaris 8 server is setup to forward emails to the correct SMTP server.
I can't find any information anywhere (man pages + www) that shows the
simple task of sending an email from the command line!  Please help./
 
 
 

how do I send an email using mail/sendmail

Post by scriptOmati » Sat, 26 Apr 2003 02:35:52



> My Solaris 8 server is setup to forward emails to the correct SMTP server.
> I can't find any information anywhere (man pages + www) that shows the
> simple task of sending an email from the command line!  Please help./

man mail
will explain how.

--
http://ftp.opensysmon.com is a shell script archive site with an
open source system monitoring and network monitoring software package.
Many platforms are supplied already compiled.

 
 
 

how do I send an email using mail/sendmail

Post by Rob » Sat, 26 Apr 2003 03:04:58


I couldn't work it out.  Isn't there an example somewhere?



> > My Solaris 8 server is setup to forward emails to the correct SMTP
server.
> > I can't find any information anywhere (man pages + www) that shows the
> > simple task of sending an email from the command line!  Please help./

> man mail
> will explain how.

> --
> http://ftp.opensysmon.com is a shell script archive site with an
> open source system monitoring and network monitoring software package.
> Many platforms are supplied already compiled.

 
 
 

how do I send an email using mail/sendmail

Post by scriptOmati » Sat, 26 Apr 2003 03:26:56



> I couldn't work it out.  Isn't there an example somewhere?




> > > My Solaris 8 server is setup to forward emails to the correct SMTP
> server.
> > > I can't find any information anywhere (man pages + www) that shows the
> > > simple task of sending an email from the command line!  Please help./

> > man mail
> > will explain how.

> > --
> > http://ftp.opensysmon.com is a shell script archive site with an
> > open source system monitoring and network monitoring software package.
> > Many platforms are supplied already compiled.

Rob This works

chironBASH: uname -a
SunOS chiron 5.8 Generic_108528-19 sun4u sparc SUNW,Ultra-5_10
chironBASH: /usr/bin/mailx -s 'this is the subject'

The above sent me an empty email message (/dev/null) but you can also
just send an file.

You must pay attention to what the file contains because a line starting
with '~' is an
escape char line -- see the man page which I can send you if need be.

Also, it is not so easy to send emails that contain binary data and/or
graphics.
It can be done, you'll have to search newgroups on google.com.

--
http://ftp.opensysmon.com is a shell script archive site with an
open source system monitoring and network monitoring software package.
Many platforms are supplied already compiled.

 
 
 

1. Sending email from a shell script using sendmail or mail

I want to send a simple email from a unix
shell script.  The message must include
a subject.  I have done this...


The above does work, I get a body,
but I dont get a subject line. It's blank.

I have also done this..


This does put 'this is a subject' on the Subject: line
but no body.  I discovered this out by total luck.  
I figure I must be on to something here.
I would like to have a subject and a body.  
Can any refer me to a tutorial on the web about formating text files
to be piped to sendmail or mail for that matter.
Does anyone have other simpler ideas?
I have read the man pages on sendmail and rfc 821 but they
dont seem help on this area.

Thanks..

2. Remote backup to tape question

3. To use sendmail to send/receive email through Notes mail server

4. Debian GNU/Linux Ethernet PCI-X

5. Sending Email using Sendmail under a different domain

6. What does 'Panic recursive mutex_enter' mean?

7. using sendmail to send out EMAILS from Forms

8. Some packages won't install

9. Using Sendmail to send error messages to an internet email account?

10. How to send Email using sendmail and change the domain name

11. how to send an email using mail ?

12. send html email using mutt / mail / etc?

13. send mail (or email ) using mailx