I have a system that generates PDFs, and I want to mail them back the user (whose name I have access to in the script). Currently I am just sending a mail to them with a link to the location of the file. Does anybody know how I would accomlish this ? I have messed around with the mailto command, and I think I even got it to send a PDF when in interactive mode, but that will not do. I also tried : $ echo "Your PDF is ready\n~*\n ..etc" | mailto <user> -s '<subject>' Anyone know how to do this ? Regards, Buchan Jim Holthaus wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > > What is the proper syntax to call sendmail (or mail) with to set the From: address? > > - From man sendmail: > > -f sender > Set the envelope sender address. This is the > address where delivery problems are sent to, unless > the message contains an Errors-To: message header. > > -F full_name > Set the sender full name. This is used only with > messages that have no From: message header. > > If you want to do it all on the command line, try it like this: > sendmail -f"[EMAIL PROTECTED]" -F"[EMAIL PROTECTED]" < messagefile > > Note that this assumes your message doesn't have a from header already added to > it (seems likely based on the situation you describe. -- |--------------------------------------------------------------| Buchan Milne Mechanical Engineer, Network Manager Cellphone +27824722231 email mailto:[EMAIL PROTECTED] Centre for Automotive Engineering http://www.cae.co.za South Africas first satellite: http://sunsat.ee.sun.ac.za Control Models http://www.control.co.za |----------------Registered Linux User #182071-----------------|
Keep in touch with http://mandrakeforum.com: Subscribe the "[EMAIL PROTECTED]" mailing list.