Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jul 24th, 2006, 7:36 AM   #1
kruptof
Professional Programmer
 
kruptof's Avatar
 
Join Date: May 2006
Location: UK - London
Posts: 330
Rep Power: 3 kruptof is on a distinguished road
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:
When I was young it seemed that life was so wonderful,a miracle, oh it was beautiful, magical.
Now watch what you say or they'll be calling you a radical,a liberal, oh fanatical, criminal. Oh won't you sign up your name,we'd like to feel you're acceptable, respectable, oh presentable, a vegetable
kruptof is offline   Reply With Quote
Old Jul 24th, 2006, 9:14 AM   #2
Pizentios
Programming Guru
 
Pizentios's Avatar
 
Join Date: May 2004
Location: Brandon, Manitoba, Canada
Posts: 2,023
Rep Power: 7 Pizentios is on a distinguished road
Send a message via ICQ to Pizentios Send a message via MSN to Pizentios
Quote:
Originally Posted by kruptof
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.
does your web host allow you to use perl on their boxes? Cause yes you can do it witha perl script, but you need access to perl to do it.
__________________
Profanity is the one language that all programmers understand.

Check out my Blog <---updated Nov 30 2007!
Pizentios is offline   Reply With Quote
Old Jul 24th, 2006, 10:29 AM   #3
kruptof
Professional Programmer
 
kruptof's Avatar
 
Join Date: May 2006
Location: UK - London
Posts: 330
Rep Power: 3 kruptof is on a distinguished road
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.
__________________
Quote:
When I was young it seemed that life was so wonderful,a miracle, oh it was beautiful, magical.
Now watch what you say or they'll be calling you a radical,a liberal, oh fanatical, criminal. Oh won't you sign up your name,we'd like to feel you're acceptable, respectable, oh presentable, a vegetable
kruptof is offline   Reply With Quote
Old Jul 24th, 2006, 1:54 PM   #4
Pizentios
Programming Guru
 
Pizentios's Avatar
 
Join Date: May 2004
Location: Brandon, Manitoba, Canada
Posts: 2,023
Rep Power: 7 Pizentios is on a distinguished road
Send a message via ICQ to Pizentios Send a message via MSN to Pizentios
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:MTP (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:end:MTP (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).
__________________
Profanity is the one language that all programmers understand.

Check out my Blog <---updated Nov 30 2007!
Pizentios is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
OnlineTextEditor.Com! Sane Show Off Your Open Source Projects 43 Jun 16th, 2006 8:55 AM
Problem read'ing from file and user input jmsilver Bash / Shell Scripting 3 May 20th, 2005 2:35 PM
Instant Messaging App Help AusTex C 0 Apr 27th, 2005 4:52 PM
After execution - Error cannot locate /Skin File? wchar Visual Basic 1 Mar 5th, 2005 9:04 PM
airport Log program using 3D linked List : problem reading from file gemini_shooter C++ 0 Mar 2nd, 2005 4:12 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 4:13 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC