![]() |
Emailing File without user envokement?
is it possible to have a text file emailed at a specific time or day without been envoked by the user..............i already know how to email a text file............i know you could schedule a program/script that has this function........but i wanna be able to do this on my website and i don't think my hosting company will give me this feature....so i was wondering if it is possible to do this in a perl script.......... i thank you in advance for your replies.
|
Quote:
|
Yes Pizentios i am allowd to use perl..............can you please tell how this can be done.......i thank you in advance for your replies.
|
do you also have access to cron or some other way to schedule the process?
If so, you will be able to do it. If you have access to sendmail or another email system (like qmail), it will be much easier. There are several sites with good information on how to do it this way. Here are a few: http://www.perlfect.com/articles/sendmail.shtml http://www.modwest.com/help/kb10-84.html There are ~many~ more sites on that topic. If you don't have access to the sendmail program or another MTA (MTA stands for Mail Transfer Agent) like qmail it will be slightly harder. You will have to use a perl package to do the work. If you really want to know how the email system works, use: Net::SMTP (info on it can be found here: http://search.cpan.org/~gbarr/libnet-1.19/Net/SMTP.pm). However, there are many wrappers for the package, one of which is: Email::Send::SMTP (info on it can be found here: http://search.cpan.org/~rjbs/Email-S.../Send/SMTP.pm). There are many more packages out there that will handle email. I suggest searching cpan, or using google. Remember, before installing ~anything~ on your host's box, make sure to get permission first! If you don't you might be in danger of loosing your account, some sysadmins are ~very~ picky about that sort of thing (Hell even i am sometimes). |
| All times are GMT -5. The time now is 8:33 PM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC