Send mails/attachments using a shell script
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Shell > Send mails/attachments using a shell script




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Send mails/attachments using a shell script  
Shashi


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-11-04 08:31 PM

Hi there,

O.S: SCO Unixware

How can I send mails using a shell script? I see that there is a
"sendmail" daemon program running on my machine. But when I type, mail
provo1234@hotmail.com < filename.txt
I get the following error message..
"buildaddr: no mailer in the parsed address saved message to
/home/dead.letter"

What could be the problem? I tried the same command on a solaris
machine and it worked.

Thanks in anticipation.
Shashi





[ Post a follow-up to this message ]



    Re: Send mails/attachments using a shell script  
William Park


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-11-04 08:31 PM

Shashi <provo1234@hotmail.com> wrote:
> Hi there,
>
> O.S: SCO Unixware
>
> How can I send mails using a shell script? I see that there is a
> "sendmail" daemon program running on my machine. But when I type, mail
> provo1234@hotmail.com < filename.txt
> I get the following error message..
> "buildaddr: no mailer in the parsed address saved message to
> /home/dead.letter"
>
> What could be the problem?

SCO.

--
William Park, Open Geometry Consulting, <opengeometry@yahoo.ca>
Linux solution/training/migration, Thin-client





[ Post a follow-up to this message ]



    Re: Send mails/attachments using a shell script  
Alan Connor


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-11-04 08:31 PM

On 10 Apr 2004 00:32:05 GMT, William Park <opengeometry@yahoo.ca> wrote:
>
>
> Shashi <provo1234@hotmail.com> wrote: 
>
> SCO.
>
> --
> William Park, Open Geometry Consulting, <opengeometry@yahoo.ca>
> Linux solution/training/migration, Thin-client

<chortle>

AC






[ Post a follow-up to this message ]



    Re: Send mails/attachments using a shell script  
Heiner Steven


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-14-04 07:38 PM

Shashi wrote:

[...]
> O.S: SCO Unixware
>
> How can I send mails using a shell script? [...]

Maybe the following article can help:

http://www.shelldorado.com/articles...ttachments.html

Heiner
--
___ _
/ __| |_ _____ _____ _ _     Heiner STEVEN <heiner.steven@nexgo.de>
\__ \  _/ -_) V / -_) ' \    Shell Script Programmers: visit
|___/\__\___|\_/\___|_||_|   http://www.shelldorado.com/





[ Post a follow-up to this message ]



    Re: Send mails/attachments using a shell script  
Luiz Henrique de Figueiredo


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-14-04 07:38 PM

Try ftp://ftp.tecgraf.puc-rio.br/pub/lhf/matt.tar.gz .





[ Post a follow-up to this message ]



    Re: Send mails/attachments using a shell script  
--==[bman]==--


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-23-04 12:34 AM

Shashi wrote:
> Hi there,
>
> O.S: SCO Unixware
>
> How can I send mails using a shell script? I see that there is a
> "sendmail" daemon program running on my machine. But when I type, mail
> provo1234@hotmail.com < filename.txt
> I get the following error message..
> "buildaddr: no mailer in the parsed address saved message to
> /home/dead.letter"
>
> What could be the problem? I tried the same command on a solaris
> machine and it worked.
>
> Thanks in anticipation.
> Shashi

I assume you have following on your system: sendmail and uuencode

From your shell script:

{
echo "From: Your Name <yourid@yourdomain.com>"
echo "To: To your user <youruser@domain.com>"
echo "Subject: Whatever you want to put here"
echo ""

echo "If you feel like typing
you can continue for whater length you want"
echo "Use your imagination"

/usr/bin/uuencode myfile.tar.gz myfile.tar.gz

} | /usr/sbin/sendmail -t


You're done.  Make it a function or whatever and make it re-usable.  No
third party mail clients are necessary (elm, mutt, mailx, or whatever).

--

__    _
/ /   (_)___  __  ___  __
/ /   / / __ \/ / / / |/_/
/ /___/ / / / / /_/ />  <
/_____/_/_/ /_/\__,_/_/|_| is what you make of it.





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 12:40 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register