Re: FreeBSD or qmail problem?

This is a discussion on Re: FreeBSD or qmail problem? within the alt.comp.mail.qmail forums, part of the Mail Servers and Related category; jtattcg@yahoo.com (toy) wrote in message news:<ba52408e.0306240852.193f2849@posting.google. com>... > Hi, I used ...


Go Back   Usenet Forums > Mail Servers and Related > alt.comp.mail.qmail

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-28-2003
ZappaFan2k1
 
Posts: n/a
Default Re: FreeBSD or qmail problem?

jtattcg@yahoo.com (toy) wrote in message news:<ba52408e.0306240852.193f2849@posting.google. com>...
> Hi, I used to be able to send mail through my crontab by putting in a
> 1 line statement:
> echo "test" | mail -s "testsubject" me@me.com
> But this doesn't work anymore, instead, it puts me in interactive mode
> and expects me to write the body of the message and press Control-D
> when I am done. I recently upgraded to FreeBSD 5.1 and switched from
> sendmail to qmail so I am not sure if it is a FreeBSD problem or qmail
> problem. How can I change my 1 line "script" to work
> non-interactively? The man page for mail was of no help.
> Thanks.


If you want the e-mail to have a subject and a body, I would put the
following into a file (named testfile.txt here), perhaps in your home
directory:

Subject: testsubject
test

Then put this into your crontab:
cat $HOME/testfile.txt | /var/qmail/bin/qmail-inject me@me.com

If you only care about receiving the email with a subject and no body,
you can simply use this:

echo "Test" | /var/qmail/bin/qmail-inject me@me.com

Good Luck.

BTW - the man pages for qmail-inject might help you here.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:59 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0