Results 1 to 3 of 3

Thread: Setting up shell script to send email at regular intervals?

  1. #1
    Join Date
    Aug 2008
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Setting up shell script to send email at regular intervals?

    I'd like to set up a shell script that will send various emails at regular intervals through gmail. I'm sure that there is some sort of text-based email client out there, but I'd like to do this with cron or anacron. I know a little bit of shell scripting but am definitely not great at it. Does anybody have a suggestion about how I would do this?

  2. #2
    Join Date
    Feb 2010
    Beans
    27

    Re: Setting up shell script to send email at regular intervals?

    The 'mail' command could do that, you have to have sendmail installed for that. I use 'mutt', because it is a bit easier to send attachments with it. You can install sendmail and mutt from the repositories. Then you can make a little script and add it to your cron, it should not be too complicated if you know a bit of shell scripting. I do not know exactly how to tell sendmail to send from your gmail account, just look in the manpages. It should be possible, since gmail is open to connect with any client to send and receive mail. Does this help you?
    Greetings

  3. #3
    Join Date
    Aug 2008
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Setting up shell script to send email at regular intervals?

    Quote Originally Posted by capybara! View Post
    The 'mail' command could do that, you have to have sendmail installed for that. I use 'mutt', because it is a bit easier to send attachments with it. You can install sendmail and mutt from the repositories. Then you can make a little script and add it to your cron, it should not be too complicated if you know a bit of shell scripting. I do not know exactly how to tell sendmail to send from your gmail account, just look in the manpages. It should be possible, since gmail is open to connect with any client to send and receive mail. Does this help you?
    Greetings
    Yes, it does. Thanks. Those programs look perfect.

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
  •