1.

Solve : Need help with SMTPMAIL command?

Answer»

I want to send an attachment along with the email. The script is sending the email but there is no attachment. I cant find any HELP for SMTPMAIL

smtpmail -h 99.99.9.99 -s"direct attachment" -a file1.data [email protected]

it comes back with an error message that "mail: Unknown OPTION -a"

Anyone able to assist with this?
I don't know this command.  What OS/distribution are you using?  If smtpmail is a wrapper around the standard Unix mail PROGRAM, indeed that program does not (usually) have the ability to send attachments.  To do this at the command LINE, I would personally use mutt.  mutt HOWEVER will send via the LOCAL SMTP server, so that would need to be configured first.



Discussion

No Comment Found