send email with attachement using sendmail

Discussion in 'Server Operation' started by nenad, Apr 12, 2007.

  1. nenad

    nenad ISPConfig Developer ISPConfig Developer

    Is it possible to send email with attachment/file (pdf, ps) using sendmail command line? (Debian etch)

    Please advise, I need it urgently 'cos I am debugging some email-to-fax gateway script for HylaFAX (and since I installed Scalix everything messed up :eek: )

    HELP !! :eek:
     
  2. ibux

    ibux New Member

    You will need a mail user agent to do that.
    Have a look here for some examples.

    Good luck!
     
  3. nenad

    nenad ISPConfig Developer ISPConfig Developer

    Thank you.
    Link you provided to me is very useful.

    This is all I needed:

    Code:
    mail -s "[nnnnnnnn]" faxgw < fax.ps
    
    where nnnnn is telephone number of receiving fax machine; faxgw is fax gateway perlscript and fax.ps is file for sending
     

Share This Page