[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ProgSoc] sending mail via "mail" command line



Hi all,

I've been trying to use a script to send mail using
the "mail" command. The syntax I'm using is basically :

cat message_body | /bin/mail -s "subject" foo@nospam.bar.net


Everything is working fine except for one small problem. 
I need to insert a line into the header field to say 
"Content-Type: text/html". I've looked through the mail
man pages, and did a search on google, but didn't find
anything about setting header fields.

Does anyone have any suggestions as to how I can proceed?
If /bin/mail won't allow you to set headers, is it possible 
to write a script to telnet into the SMTP server and send 
the mail that way?

Pramod,

-- 
Pramod Korathota <bug@nospam.progsoc.uts.edu.au>

"Engineers never lie; we just approximate the truth."


-
You are subscribed to the progsoc mailing list. To unsubscribe, send a
message containing "unsubscribe" to progsoc-request@nospam.progsoc.uts.edu.au.
If you are having trouble, ask owner-progsoc@nospam.progsoc.uts.edu.au for help.