LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-25-2004, 05:35 AM   #1
pippet
Member
 
Registered: May 2004
Posts: 67

Rep: Reputation: 15
problem with sendmail


I have written a shell script like this.
But it showing an error like " No recipient addresses found in header " . What will be the problem . Do u have any idea.


TXTFILE=/citione/citigmic/users/gmicop/AJ/textfile # A text message with a preface message
#ATTFILE=/citione/citigmic/users/gmicop/AJ/binary_file # File to be attached and encoding
SUBJECT="Your attachment" # Change as needed
MAILTO=my_name@mycompany.com # Ditto


echo "From: $LOGNAME\nTo: $MAILTO\nSubject: $SUBJECT\n\
Mime-Version: 1.0\nContent-Type: text/plain\n" > /tmp/file
cat $TXTFILE >> /tmp/file
/usr/lib/sendmail -t -oi < /tmp/file
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sendmail problem hinetvenkat Linux - Networking 1 04-18-2005 07:55 AM
Problem with sendmail juanb Linux - Software 0 01-14-2004 10:18 AM
problem processing sendmail.mc to sendmail.cf ...help... lucastic Linux - Networking 1 09-21-2003 10:08 AM
Sendmail problem: sm-client permissions problem d3funct Linux - Software 0 08-12-2003 05:00 PM
please help me with a sendmail problem sthorp Linux - Networking 0 10-22-2001 01:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration