You are not logged in.

#1 2008-01-20 14:23:08

leo2501
Member
From: Buenos Aires, Argentina
Registered: 2007-07-07
Posts: 658

Script Help. email/Internet pages send to email

hi! i will explain my situation... at home i have internet connection and a hotmail email account, at work i doesnt have internet but have a work email account, i want to make an script that download my mails and the latest rss feeds that i give to it and send them to mail work mail account, so i enter the rss feeds and with intervals of say 15 minutes/half hour it sends to me the new mails in my hotmail account and the new internet pages in the rss to my work mail account, one mail for each item...

anyone thinks this is possible? i want it to be a console app, (obviously if anyone know of an app that can achieve this i be more than happy tongue)

Thanks in advance!!


Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
-- Antoine de Saint-Exupery

Offline

#2 2008-02-09 14:19:51

leo2501
Member
From: Buenos Aires, Argentina
Registered: 2007-07-07
Posts: 658

Re: Script Help. email/Internet pages send to email

well no luck yet, but now i change my mind... im searching for a "little less complicated" thing, to take a screenshot with scrot and send that to my gmail account, i have the scrot part but dont know how to send mail throught cli...

#!/bin/bash
scrot -q 75 -t 30 -c ~/desktop_temp.jpeg
email -s "Screenshot Test" -a ~/desktop_temp.jpeg leandro.chescotta@gmail.com < /home/aleyscha/mailshot
rm ~/desktop_temp.jpeg
exit 0

but when i do that i get the message:

[aleyscha@aleyscha ~]$ email -s "Screenshot Test" -a ~/desktop_temp.jpeg leandro.chescotta@gmail.com < /home/aleyscha/mail_mailshot
Enter your SMTP Password: 
Communicating with SMTP server...

i think is the way i configured email, here's /etc/email/email.conf

# This is the DEFAULT configuration file for email. 
#
# Please CHANGE THE VALUES below to suit your environment.
# Don't forget to set the shell environment variable EDITOR
############################################################

############################################################
# SMTP Server and Port number you use
############################################################
SMTP_SERVER = 'smtp.gmail.com'
SMTP_PORT = '465'

############################################################
# If you'd rather use sendmail binary, specify it and the
# command line switches to use, here.  If you have both
# this option and SMTP_SERVER set, SMTP_SERVER will be of
# higher priority than SENDMAIL.
############################################################
SENDMAIL_BIN = '/usr/sbin/sendmail -t -i'

############################################################
# Your email address: If you'd like To have your name to
# show in the from field instead of just your email address,
# then keep the format below and edit it to your email
# and name.
############################################################
MY_NAME  = 'Leandro Chescotta'
MY_EMAIL = 'leandro.chescotta@gmail.com'
#REPLY_TO = 'leandro.chescotta@gmail.com'

############################################################
# Signature file and settings: Where is the signature file
# and How do you want the signature divider To be printed?
# You can comment these out if you do not like signatures
############################################################
SIGNATURE_FILE    = '&/email.sig'
SIGNATURE_DIVIDER = '---'

############################################################
# This is where you store your address book... If you don't
# want address book functionality, just comment it out and
# use regular email addresses.
############################################################
ADDRESS_BOOK = '&/email.address.template'

############################################################
# If you would like to have a copy Of your final email saved
# after it is sent, please specify a directory to save
# it in below... If not, just comment this field out and it
# won't save a sent file other wise, it will save it as
# email.sent in the directory below
############################################################
# SAVE_SENT_MAIL = '~'

############################################################
# With email, temporary files are stored with a random name
# Starting with .EM.  You must specify which directory you
# would like these temporary files stored while email is in
# Operation...  After email is done executing, it will remove
# Every temporary file it used.  The most common storage area
# for temporary files system wide is the /tmp directory
# if TEMP_DIR is not set, you can set the environment variable
# TMPDIR. If that is not set, email will just use /tmp
############################################################
# TEMP_DIR = '/tmp'

############################################################
# You should put the absolute path of your GPG binary
# In this variable.  If you do not know the absolute path
# just putting "gpg" will suffice if GPG is in your PATH
# environment variable path.
############################################################
# GPG_BIN = '/usr/bin/gpg'

###########################################################
# You can bypass email asking you for a password for gpg
# when you are encrypting or signing emails if you store
# it here.  Keep this safe! Make sure that people can't
# read your personal ~/.email.conf file if you're storing
# your password here!
###########################################################
# GPG_PASS = 

###########################################################
# You can use SMTP_AUTH with email.  You just need to 
# specify which type of SMTP AUTH you will use. Email 
# support two types of SMTP AUTH: LOGIN and PLAIN.  
# Typically, LOGIN is the most used amongst SMTP servers.
# If you are unsure, ask your ISP.
###########################################################
SMTP_AUTH = 'LOGIN'

###########################################################
# Setting your SMTP username is MANDITORY.  Please 
# uncomment the option below and set your username in order
# to use SMTP AUTH
###########################################################
SMTP_AUTH_USER = mygmailaccounthere

###########################################################
# Setting your password is not manditory.  If you do not
# set your password, then email will prompt you for one
# if it sees that you are trying to use SMTP_AUTH.
###########################################################
SMTP_AUTH_PASS = mypasshere

Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
-- Antoine de Saint-Exupery

Offline

#3 2008-02-09 14:31:59

noalwin
Member
From: Spain
Registered: 2007-06-08
Posts: 115

Re: Script Help. email/Internet pages send to email

leo2501 wrote:

hi! i will explain my situation... at home i have internet connection and a hotmail email account, at work i doesnt have internet but have a work email account, i want to make an script that download my mails and the latest rss feeds that i give to it and send them to mail work mail account, so i enter the rss feeds and with intervals of say 15 minutes/half hour it sends to me the new mails in my hotmail account and the new internet pages in the rss to my work mail account, one mail for each item...

anyone thinks this is possible? i want it to be a console app, (obviously if anyone know of an app that can achieve this i be more than happy tongue)

Thanks in advance!!

It should be possible, at least Richard Stallman says that he does that http://lwn.net/Articles/262570/

Offline

#4 2008-02-09 17:13:34

sozo
Member
From: NL
Registered: 2008-01-21
Posts: 10

Re: Script Help. email/Internet pages send to email

The developer of the email program states the following on its homepage :

I have been getting a lot of questions recently about using eMail with Gmail. The short answer is, no, eMail will not work with Gmail's SMTP server. The reason for this is because eMail does not currently have TLS support

Apparently it's being worked on, so I assume your build has no ssl support yet. A quick google brought up this page: http://souptonuts.sourceforge.net/postfix_tutorial.html but I'll leave the reading to you (it's a lot) smile

Hope it helps

Offline

#5 2008-02-09 17:15:17

leo2501
Member
From: Buenos Aires, Argentina
Registered: 2007-07-07
Posts: 658

Re: Script Help. email/Internet pages send to email

Reeeeeeeeally thankyou all!! im going to read that now...


Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
-- Antoine de Saint-Exupery

Offline

Board footer

Powered by FluxBB