Results 1 to 6 of 6

Thread: [N7700PRO] Send a mail with a bash script

  1. #1
    Registered User
    Join Date
    Jan 2010
    Posts
    5
    Thanks
    0
    Thanked
    0 times in 0 posts

    [N7700PRO] Send a mail with a bash script

    Hello all !

    How can I send a mail using a bash script with N7700 PRO ? The nas is send mails in case of warning so it might be possible, no ?
    I don't think that mutt is installed.

    Any ideas ?

    Thanks a lot for your help
    Last edited by julien1486; 24-02-2010 at 10:15 AM.

  2. #2
    Senior Member
    Join Date
    Jun 2007
    Location
    Austra
    Posts
    453
    Thanks
    0
    Thanked
    14 times in 14 posts

    Re: [N7700PRO] Send a mail with a bash script

    The script i have attached here : http://www.thecusforum.eu/showthread.php?t=437&page=2 should work, cause it is also used in my modules and it works also on the N7700
    br
    Peter

  3. #3
    Registered User
    Join Date
    Jan 2010
    Posts
    5
    Thanks
    0
    Thanked
    0 times in 0 posts

    Re: [N7700PRO] Send a mail with a bash script

    Thanks Peter, it works fine.

    Do you know if it's possible to send attachments with msmtp ? I would like to send an attachment with the mail (it's a database backup).
    I tried something with uuencode but it didn't work

  4. #4
    Senior Member
    Join Date
    Jun 2007
    Location
    Austra
    Posts
    453
    Thanks
    0
    Thanked
    14 times in 14 posts

    Re: [N7700PRO] Send a mail with a bash script

    I have never tried to send attachments, but may the the documentation helps : http://msmtp.sourceforge.net/
    I'm sure it can be done - if You have found it, then please inform us
    br
    Peter

  5. #5
    Registered User
    Join Date
    Jan 2010
    Posts
    5
    Thanks
    0
    Thanked
    0 times in 0 posts

    Re: [N7700PRO] Send a mail with a bash script

    msmtp can just send mails. We have to build it first (this is done in your script).
    Two solutions :
    - Using a MUA like mutt for adding the attachment
    - Write some code for doing it

    I think we just have to use uuencode, generate a boundary and ad it to the header. I will try that

  6. #6
    Senior Member
    Join Date
    Jun 2007
    Location
    Austra
    Posts
    453
    Thanks
    0
    Thanked
    14 times in 14 posts

    Re: [N7700PRO] Send a mail with a bash script

    sounds perfect
    br
    peter

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Caller ID on your PC
    By mattc in forum Help! Quick Relief From Tech Headaches
    Replies: 29
    Last Post: 22-09-2010, 11:52 AM
  2. Replies: 5
    Last Post: 31-07-2009, 03:33 PM
  3. SMTP enabled mail server
    By kopite in forum Software
    Replies: 24
    Last Post: 22-05-2008, 03:33 PM
  4. Replies: 3
    Last Post: 20-02-2007, 10:29 PM
  5. Mail Clients for Panther (OS-X)
    By [GSV]Trig in forum Apple Mac
    Replies: 3
    Last Post: 10-03-2004, 06:21 PM

Posting Permissions

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