SunSparc under the Solaris OS.
We are a filesite and we are in the process of finishing a script which
will finish the processing of newly uploaded archives into our site.
But we are stuck on one aspect of this script, we want to notify the
author's of the archives uploaded to our site that they have a copy of
their archive on our site (as a simple courtesy, so they can include their
archive's URL on our site in anything they may want to, or whatever), and
to allow the publisher or author to proof the descriptives relating to
their archives.
We also need to include in the emailing a header text and a footer text
from a pair of textfiles.
We are stuck on how to email those authors from our shell script with the
info, we've looked at mail and mailx, so I am posting to ask how we can
accomplish this last bit in our shell script... below I am including an
example of what we need and want to send.
Basic Email Example Start
-------------------------
T: ${author}
Subject: ${filename} uploaded to our site.
Content:
[HEADER TEXTFILE START]
Hello,
We are notifying you that a copy of one of your archives
has been processed into our filebase, we include a URL
below by which if you wish to you may examine your
archive's filebase descriptives, if desired you may let
us know if you need any of the descriptives modified and
modified in what way(s).
[HEADER TEXTFILE END]
Filepathing: ${filepathing}
Version: ${version}
Date of release: ${date_of_release}
Terse description: ${terse_description}
Verbose description: ${verbose_description}
FTP downloading: ${ftp_downloadable_url}
HTTP downloading: ${http_downloadable_url}
If this is an older version then we would like to request that you
think about uploading a copy of your newer version to us at
http://our.system.org/upload.html
or
ftp://our.system.org/uploads
and we will process it into our filebase as soon as possible.
Thank you for your archive and the your attention.
Filebase Admin.
His or her name
[FOOTER TEXTFILE START]
Our system info is
Blah blah blah.....etc...
[FOOTER TEXTFILE END]
-----------------------
Basic Email Example End
Not sure if we need the above to use mail, or mailx, or even just send it
direct to sendmail.
Ideas? Suggestions?
Please copy your replies to email as well as in this group.
Thanks!