Find the answer to your Linux question:
Results 1 to 2 of 2
Hello I was wondering if someone can help me out, I am trying to send an email with a separate attached file…. I have researched loads of forums and from ...
  1. #1
    Just Joined!
    Join Date
    Jun 2010
    Posts
    7

    sendmail help - attachments

    Hello I was wondering if someone can help me out, I am trying to send an email with a separate attached file…. I have researched loads of forums and from my research I have tested numerous ideas which none have worked…. Just to give you some background I am working on RHEL4.6 server with sendmail and mail installed…. There is no mutt or mailx installed on this server nor will my company allow me to install these utilities….

    Normally from a shell script if I want to send an email message I would code the following:

    Code:
    /usr/sbin/sendmail -t -oi  <<EOF
    From: $from_address
    To: $to_address
    Subject: Test Mail
    $msg
    EOF
    Is it possible to expand upon my current code so as to attach a document to the email not insert the contents into the body of the email? Any and help will be appreciated. Thank you

  2. #2
    Just Joined!
    Join Date
    Jun 2010
    Posts
    7
    I am amazed... nobody has any suggestion for me?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...