Results 1 to 3 of 3

Thread: Bash script - New mail with attachment

  1. #1
    Join Date
    May 2010
    Beans
    14

    Bash script - New mail with attachment

    How can I add a file to a new mail? I have written a bash script that enables me to resize pictures to a certain custom MB size. Next step is, that I want to add the ZIPed images to a new mail message (→ standard mail program of the user). I tried with:
    Code:
    gnome-open mailto:max.example@example.org
    ... but couldn't find a way how to manage it. A tip would be nice.

    Klau3
    Last edited by Klau3; May 29th, 2010 at 04:30 PM.
    An eye an eye makes the whole world blind - Mahatma Gandhi

  2. #2
    Join Date
    May 2010
    Beans
    14

    Re: Bash script - New mail with attachment

    I still don't know how to send mail attachments with gnome-open from Terminal.

    For Thunderbird it works this way:

    Code:
    thunderbird -compose "attachment=/home/[username]/..."
    An eye an eye makes the whole world blind - Mahatma Gandhi

  3. #3
    Join Date
    Feb 2010
    Location
    Silicon Valley
    Beans
    1,898
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: Bash script - New mail with attachment

    A quick glance at the source makes me think it is not possible with gnome-open. gnome-open looks like it only pays attention to the first argument, and only processes gnome-specific options. But I may be wrong. Check it out yourself in the libgnome2-0 source.

Bookmarks

Posting Permissions

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