#637755 - 04/10/05 06:37 AM
Regular Emails
|
Dreamer
Registered: 15/03/02
Loc: York, England
|
I'm trying to figure out a way to have emails sent out weekly that remind a friend of mine to turn in a work report... But I don't know how to set emails to be sent at a certain time! I'm only using Gmail right now but if anyone knows how to do it on any type of free email, whatever it'd take to set this up........ Thanks 
_________________________
Keep your dream alive
Dreamin is still how the strong survive
Shalom VeAhavah
New Hampshire has a point....
|
|
Top
|
|
|
|
#637756 - 04/10/05 12:59 PM
Re: Regular Emails
[Re: Kyrian]
|
Geek-enviro-hippy priest
Registered: 28/09/04
Loc: Diss, Norfolk
|
You could use some basic scripting in an email client to do it, Outlook, Outlook Express, Apple Mail.App, Entourage, Thunderbird etc etc all have rules that could be hacked a bit to do it.
You can also use a basic script on your computer that will run at a set time - if the day is right and the email hasn't been sent that day it will send.
If you give us more info we might be able to help more - If it's just a basic email without much formatting in the body then you can set up a shortcut on your desktop that you click every week. What OS are you using? If it's OS X 10.3 or greater then you can use quicksilver and Gmail Notifier to do it.
Otherwise you could set up a cron task on a web server and get that to send the email.
_________________________
There's too many home fires burning and not enough trees
|
|
Top
|
|
|
|
#637757 - 04/10/05 01:04 PM
Re: Regular Emails
[Re: Sym]
|
ARRRR!
Registered: 11/08/04
Loc: Charlotte, NC, USA
|
"Yeah. It's just that we're putting new coversheets on all the TPS reports *before* they go out now. So if you could just remember to do that from now on, that'd be great. All right " - Lumbergh
_________________________
"My skin is singed but it heals my heart and with glowing pride I'll wear my scars." -Davey Havok
|
|
Top
|
|
|
|
#637758 - 04/10/05 11:16 PM
Re: Regular Emails
[Re: mtbeer]
|
Dreamer
Registered: 15/03/02
Loc: York, England
|
My computer isn't really stable enough (and also isn't always hooked into the net) so I don't want to run the task off of it.... I do know how to do it from thunderbird tho. Looking for a way to do it directly from a web based email...
Sounds as if you may have one, care to explain?
(I'm running Mandrake 10.0 community build btw... its been unsupported for over a year now, I'm just *lazy* I'll be getting something new and flashy running on fedora core 4 as soon as someone burns me some cds.... gotta love laptops and their problems....)
_________________________
Keep your dream alive
Dreamin is still how the strong survive
Shalom VeAhavah
New Hampshire has a point....
|
|
Top
|
|
|
|
#637759 - 05/10/05 12:27 AM
Re: Regular Emails
[Re: Kyrian]
|
addict
Registered: 02/09/05
Loc: Oregon, USA
|
Well, if you did end up wanting to do it from your own system, you could quickly (and relatively painlessly) throw together a perl script.. actually, since I've never done it before, let me try it.. something like this :
Written by:
use NET::SMTP;
use strict;
# ===========================
# Add your info
# -----------------------------------------------
my $mailserver = 'mail.ISPexample.dom'; # add proper outbound mail server, as given by your ISP
my $from = 'exampleFrom@test.test'; # your email address here
my $to = 'exampleTo@test.test'; # the recipient's email address
my $subject = 'Test subject'; # this is what the martians look at
# the body of the message here, everything between the two EOM
my $msg = <<EOM;
This is a test message.
Place the body of the email here, leaving the last line, EOM, intact.
EOM
# ===========================
# ignore the rest of this, just code crap
# -----------------------------------------------
my $smtp = Net::SMTP->new($mailserver,
Hello => 'mailsend',
Debug => 1,
);
$smtp->mail($from);
$smtp->to($to);
$smtp->data();
$smtp->datasend(
"From: $from\n" .
"To: $to\n" .
"Subject: $subject\n" .
"$msg"
);
$smtp->dataend();
$smtp->quit;
You'll need to add the shebang (teh #!/usr/bin/perl directive that you normally see on the first line of scripts), as well as the proper address info and the mail server domain name (the one given to you to plug into your email client, usually in the form of mail.isp.com). You may also need to obtain NET::SMTP from CPAN. (you can usually man or perldoc cpan for more info, or look it up on the net). I dunno if that'll be any help at all, but ahwell, it was a shot.
edit: Oh, and as was mentioned earlier by Sym_, you'd automate it as a cron job.
Edited by Suibom (05/10/05 01:10 AM)
_________________________
Definition of poi- A Hawaiian food made from the tuber of the taro that is cooked, pounded to a paste, and fermented.
Ahnold discussing poi - "It is naht a toober!"
|
|
Top
|
|
|
|
#637760 - 05/10/05 02:06 AM
Re: Regular Emails
[Re: Suibom]
|
Geek-enviro-hippy priest
Registered: 28/09/04
Loc: Diss, Norfolk
|
You could just buy your friend a diary.....
Or script something on his/her computer to remind them....
Are computers/email really needed to sort out what sounds like a disorganized friend?!
I've found a host called MX Host (http://www.mxhost.net/) I have no idea how good they are, but it you sign up to it you will be able to set up a cron job to run Suibom's script though CGI or a PHP script. If you can't do it weekley then just add something that checks for the day and it it's Wed it'll send it.
I'll help you out witht the PHP script if need be, my Perl it's that good.
_________________________
There's too many home fires burning and not enough trees
|
|
Top
|
|
|
|
#637761 - 05/10/05 07:05 AM
Re: Regular Emails
[Re: mtbeer]
|
Mistress of Pink...Multicoloured
Registered: 06/04/02
Loc: Over There
|
|
|
Top
|
|
|
|
#637762 - 05/10/05 03:21 PM
Re: Regular Emails
[Re: Pink...?]
|
Dreamer
Registered: 15/03/02
Loc: York, England
|
Sounds good. He's had diaries, and planners, and they've not worked. This isn't to sort him out, just to keep him from loosing his job whilst he sorts himself out... or at least while he still owes me money. Also, his computer constantly stops working, so having it on his computer here isn't a very good idea, and theoretically I shouldn't mess with his computer at work, altho I think I could ssh in and guess his password well enough to mess with it if i were desperate. Anyway that sounds like a good idea, i'll look it mxhost over and if i need more help i'll be back..... 
_________________________
Keep your dream alive
Dreamin is still how the strong survive
Shalom VeAhavah
New Hampshire has a point....
|
|
Top
|
|
|
|
|
|