View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 30 posts ] 
Go to page 1, 2  Next

Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject: How do I email?
PostPosted: Tue Oct 09, 2007 10:52 pm 
Offline
Joined: Fri Sep 07, 2007 11:57 pm
Posts: 166
Hi.. I'm embarrassed to ask this question, but it's hard to do a search with the keyword "email"!!!

I'd like to send emails from my account in MythTV! I tried mail, xmail, rmail, pine, etc.. None were known!! Do I have to download one of these, or is there a way to activate one in KM?

Sorry again for the silly question, but I've wasted quite a bit of time trying to guess what the answer may be!!!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 09, 2007 11:08 pm 
Offline
Joined: Mon Mar 13, 2006 2:28 am
Posts: 143
Location: Brisbane, Australia
Howdy,

What are you specifically looking for with email. A fullblown GUI email client, a simple command line emailer, web-based interface?

Code:
apt-cache search email

will give you a comprehensive list.

squirrelmail & sendemail both install without any dependencies.

Further reading;
http://www.mysettopbox.tv/phpBB2/viewtopic.php?t=1617&start=0&postdays=0&postorder=asc&highlight=

Regards,
Kirk.


Last edited by Kirk on Tue Oct 09, 2007 11:42 pm, edited 1 time in total.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 09, 2007 11:28 pm 
Offline
Joined: Fri Sep 07, 2007 11:57 pm
Posts: 166
oh just a command line email.

i setup wake up/shutdown using acpi and mythwelcome and want the box to send me an email saying it is shutting down and will wake up at "this" time.

so something like
mail -s "MythTV shutting down.. Back at $time" username@domain.edu
would work for me!!!

And thanks for the quick reply!!!!!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 09, 2007 11:30 pm 
Offline
Joined: Fri Sep 07, 2007 11:57 pm
Posts: 166
Kirk wrote:


for some reason the link sends me to the Forum Index!!!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 09, 2007 11:46 pm 
Offline
Joined: Mon Mar 13, 2006 2:28 am
Posts: 143
Location: Brisbane, Australia
fra wrote:
Kirk wrote:


for some reason the link sends me to the Forum Index!!!


Strange, edited, try now.

Sendemail is probably a quick easy route then.

Code:
apt-get install sendemail
man sendEmail


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 10, 2007 12:08 am 
Offline
Joined: Fri Sep 07, 2007 11:57 pm
Posts: 166
thanks! problem solved :)
good night!!!! :) (or good morning! i guess)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 16, 2007 12:38 pm 
Offline
Joined: Fri Oct 20, 2006 12:04 pm
Posts: 905
Location: LA, CA
I'd like to email too. Did you get sendemail working ok?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 16, 2007 9:57 pm 
Offline
Joined: Tue Nov 28, 2006 3:38 am
Posts: 82
Location: Kangasala, Finland
The sendEmail Perl script seems to be working fine for me, it is especially nice because I don't have to install SMTP server to my KM box.

I use it to send my drive's S.M.A.R.T. status to my cell phone every morning. I also have plans on sending parts of TV listings for me.

_________________
Jari-Matti

MBE&FE: GeForce MX440, Athlon XP 2000+, MSI KT333 Ultra, onboard audio, 512 MB, 2 x Technotrend T1500 DVB-T, LiteOn DVD±RW 16x DW1650-488C, Seagate 250 GB
FE: 1500MHz Geforce MX200-V, int. audio, 256MB


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 17, 2007 2:02 pm 
Offline
Joined: Fri Sep 07, 2007 11:57 pm
Posts: 166
Too Many Secrets wrote:
I'd like to email too. Did you get sendemail working ok?


yes. just as instructed! (read the man for how to use it)
i'm at work for now, but i can look up the format i use to send emails a bit later, if you want. let me know if you still need it!


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 18, 2007 11:19 am 
Offline
Joined: Tue Apr 13, 2004 6:51 pm
Posts: 890
Location: Groton, MA
sendemail installed and runs perfectly! i bounce securely off of an authenticated gmail account.

Thanks for the pointer

_________________
R5F1 - Dell P4 2.4Ghz 500MB - PVR250 x 2 - GeForce FX 5200 - Onboard sound/NIC 80GB ATA/250GB ATA/400GB SATA


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 18, 2007 3:18 pm 
Offline
Joined: Mon Jun 27, 2005 4:42 pm
Posts: 321
Location: Minneapolis, Minnesota, USA
auttila wrote:
The sendEmail Perl script seems to be working fine for me, it
is especially nice because I don't have to install SMTP server
to my KM box.

You shouldn't need an SMTP server on your LM box regardless
unless you also want to receive inbound mail. To send mail you
need an SMTP client (which I presume is what sendEmail is).
Another dead-simple SMTP client that I used is ssmtp. It would
allow you to use any of the sendmail-compatible command-line
clients like mailx or mutt.

_________________
Grant


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 22, 2007 10:16 am 
Offline
Joined: Fri Oct 20, 2006 12:04 pm
Posts: 905
Location: LA, CA
fra wrote:
Too Many Secrets wrote:
I'd like to email too. Did you get sendemail working ok?


yes. just as instructed! (read the man for how to use it)
i'm at work for now, but i can look up the format i use to send emails a bit later, if you want. let me know if you still need it!


I'm trying to get this working and I must be missing something. I've read thru the man page and this thread. Can you post an example? I must be missing something real basic.

Edit: OK I got it! For those that follow and might need a bit of help I'm posting my working example.

Code:
sendEmail -s smtp.host:25 -u "Subject of email" -f sender@yahoo.com -t reciever@yahoo.com -o message-file={html_file}


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 23, 2007 1:20 pm 
Offline
Joined: Tue Apr 13, 2004 6:51 pm
Posts: 890
Location: Groton, MA
here is a gmail specific command line that passes authentication bits.

1) first you need a free gmail account.

2) here is the command
Code:
sendEmail -f <from_address> -s smtp.gmail.com:587 -xu <gmail_address> -xp <gmail_password> -t <to_address> -u "subject" -m "message text"


Note:

The 'from_address' can be anything, it will will be used if the the user replies. it does not need to be an address on your myth box, or a gmail account.

Side note, this is an easy way to spoof an address to those that are not very tech savy.

_________________
R5F1 - Dell P4 2.4Ghz 500MB - PVR250 x 2 - GeForce FX 5200 - Onboard sound/NIC 80GB ATA/250GB ATA/400GB SATA


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 25, 2007 8:06 am 
Offline
Joined: Fri Oct 20, 2006 12:04 pm
Posts: 905
Location: LA, CA
Strangely I can run the above sendEmail script to send email as user mythtv but not as root. I also have not been able to use the script to generate an email via crontab. Neither users mythtv or root will send the email from cron. Seems to be a permissions problems but I can't see where. Here's what it kicks when I run as root:

Code:
bash: /usr/local/bin/sendEmail: /usr/lib/perl: bad interpreter: Permission denied


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 25, 2007 1:47 pm 
Offline
Joined: Tue Apr 13, 2004 6:51 pm
Posts: 890
Location: Groton, MA
for the Cron bits.....

Remember that cron entries do not run in the same environment as your login shell. If you are expecting a environment var to be set, you need to set it yourself. One such var that often is assumed is the PATH.

You didnt supply your crontab entry, but I wonder if you included /usr/local/bin/ in the statement, if not, cron prbably cant find sendEmail.

To check for errors in a cron job, you need to capture stdout and stderr.

Code:
0 * * * * /usr/local/bin/sendEmail (otherparms) > /tmp/cron.out 2> /tmp/cron.err

_________________
R5F1 - Dell P4 2.4Ghz 500MB - PVR250 x 2 - GeForce FX 5200 - Onboard sound/NIC 80GB ATA/250GB ATA/400GB SATA


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 30 posts ] 
Go to page 1, 2  Next



All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 21 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu