FAQ  •  Search  •  User Groups  •  Forum Admins  •  Smilies List  •  Statistics  •  Rules   •  Login   •  Register
Toggle Navigation Menu

 Email question
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic
Author Message

Joined: 01 Mar 2003
Posts: 69
Location: Texas

PostPosted: Wed Mar 05, 2003 12:11 am (17 years, 4 months ago) Reply with QuoteBack to Top

Again, I am coming in late to a discussion, but since I only just joined the forum... Smile

I'm not sure why you had to use php for this at all. In my opinion, that's not the right tool for the job. If you want to send a mail message, you could have just called the mail program directly. The command line (at least as far as how it is called on my host) would have looked like:
mail -s "subject line " address@somedomain.com < text_file_to_mail

I currently use this technique on my forum. At midnight local time a shell script fires off in cron. It does a number of things, and each one has output that is directed to an output file. Standard errors are also redirected to this file. Then the last line of the script is to mail the output log to my cell phone, so I don't even have to log in to check to see if my forum support script is up and running. Yup, I'm a lazy geek. Proud of it too. Very Happy

So if you wanted to email something at a regular time, and you knew the address, and you knew the content (and nothing about the original post made it seem like it was anything other than that) then a simple call to the mail program would have worked just fine. Worst case you would have to put the complete path to the mail program.

Where do you thing PHP is going to send your message? Yup, to the O/S mail program. So why not go direct.


Photography Site :: Query Tools Forum :: Weekend Fun
OfflineView User's ProfileFind all posts by drathbunSend Personal MessageVisit Poster's Website
Display posts from previous:      
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic

 Jump to:   

Go to page Previous  1, 2, 3, 4, 5

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 vote in polls in this forum.

Page generation time: 0.10536 seconds :: 17 queries executed :: All Times are GMT
Powered by phpBB 2.0 © 2001, 2002 phpBB Group :: Based on an FI Theme