Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Need help with SMTPMAIL command  (Read 4286 times)

0 Members and 1 Guest are viewing this topic.

Jkeri

    Topic Starter


    Starter

    • Experience: Beginner
    • OS: Unknown
    Need help with SMTPMAIL command
    « on: November 16, 2011, 01:14:02 PM »
    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?

    Rob Pomeroy



      Prodigy

    • Systems Architect
    • Thanked: 124
      • Me
    • Experience: Expert
    • OS: Other
    Re: Need help with SMTPMAIL command
    « Reply #1 on: November 17, 2011, 01:04:17 AM »
    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.
    Only able to visit the forums sporadically, sorry.

    Geek & Dummy - honest news, reviews and howtos