I am looking for an easy script (that i can add into a current script) to email specific files out.  The files are always the date ie todays file would be 04102006xyz.txt.  I would like to be able to run this every morning to send out all of the files (from various folders... all have the same name) instead of having to do it manually.
200358
This should get you started on how to do this with PHP:\n\nhttp://www.sitepoint.com/print/advanced-email-php\n\nYou can schedule this script to run using cron, assuming your Web host lets you run cron jobs:\n\nhttp://www.phpfreaks.com/tutorials/28/0.php
296644
Outlook blocks specific attachments... the best way to prevent this is have the files sent as a zip file.  Also make sure that your ISP does not limit your attachment size.  (Sometimes ISP's will remove the file if it is bigger than what they allow.)  I have attached a link to Microsoft that give the instructions on changing it.  (To be safe I would do the .zip files)
12261
In the crontab file, you can pipe the command output to 'mail'.\n\ncmd | mail -s "Subject of mail" user
352511
<input type="file" ...>  will permit you to choose a file, but the only use for that file is to upload it to a server, javascript can't read local files.\n\nthere are work-arounds though!!
128775
Same Problem here, cannot attach any type of file, jpegs txt, doc, I get an "Invalid file specified" error message,only happens for yahoo mail in IE6, no problem doing it in hotmail etc so it is a Yahoo/IE6 problem. Have XP home bang up to date,no spyware, viruses, trojans etc etc happened this week so its a new problem, please no stupid answers like: use firefox, firewalls, etc. a good technical answer please. Using computers for years so not a newbie. Just a thought, was using IE7 beta, attachments worked there, uninstalled it and then noticed that in yahoo after attaching a file - and then before returning to the main body of the message, windows says 'unrecognised file format', for all types of files and sizes, reset all options to defaults, reinstalled critical updates, checked that nothing was inadvertantly blocked in the BHO's etc etc etc. so! any ideas anyone, thanks.....\nANSWER2: 10 minutes after I posted this I found the answer and got yahoo back on track accepting attachments to outgoing mail. Go to this site http://www.mvps.org/winhelp2002/ietips.htm               MVP most valued professional and the fourth item on the page is ODD TOOLBAR BEHAVIOUR. Read instructions!\ndownload the  RESETBROWSERTOOLBAR.REG and once merged reboot computer and it works. Now I get a message when I click attach - 'allow frames across domains' yes!(I can live with that!)and it attaches no problem, obviously this was the code that was causing the problem. Hope it works for you too. If I find a way to get rid of the new message I'll post it here but for the moment at least yahoo is back to normal.
25335
I suggest you simple technique.\n\nuse the input box in html like this\n\n<input type = file>\n\nand then this will actually bring you up 2 inputs. One for the button click and you can select the file. This makes the output of this operation as a complete file name with path, come into other textbox.\n\nNow you have to implement a script in either VBScript, ASP, PHP or Javascript to make a ftp connection to a known place ( if possible with other input as user name and password. As you dont want some arbitrary user to use your space for dumping his content ), and then upload it there.\n\nRemember, you cannot do this thing with out scripting.\n\nPHP code will work like this\n\nhttp://www.tizag.com/phpT/fileupload.php\n\n\nEnjoy,\nKranthi.\n\nThanks,\nKranthi.
220967
I've seen that before, usually from spammers. The date in the email is the date on the server which sent the e-mail. Spammers will up that date by a few days to make sure that their crap is on the top of the list when you check your e-mail. I don't think you can do it unless you have access to the server which handles your e-mails.
472356
What a great question!\n\nYou know, I used to write batch files for everything under the sun back in the old DOS 6 / Windows 3.11 days, but somehow got away form doing so as Windows evolved -- I wasn't even sure it still supported batch files!  But a little digging turns up the fact that yes it does.  It appears that what you are after is a "script file" (which seems to do within Windows what the Batch files do within DOS), though I'm not yet sure if that denotes a truly different type of file or if it is just a different name for the same thing.\n\nAnyway, here are a few interesting looking links I found:\nhttp://www.student.oulu.fi/~vtatila/batch_tutorial.html\nhttp://labmice.techtarget.com/scripting/default.htm\nhttp://www.onesmartclick.com/programming/batch-files.html\n\nSorry I couln't be more help than that, but hopefully it gets you started in the right direction.  Thanks for asking the question, it gave me something new to go learn about!
501518
If you don't have a mail client(outlook, thunderbird etc..) installed then it won't work.\nHere's a mailing script.. If your server support email relay then this shud work..\nsave the script below in a php page name it sendmail.php\n<?php\n$to = "emailaddresstosendto@domainname.com"\n$subject = "Your subject";\n$message=$_POST['text'];\n$from="FROM: emailaddresssentfrom@domainname.com";\n$headers = "MIME-Version: 1.0&#92;r&#92;n".\n   "Content-type: text/plain; charset=iso-8859-1&#92;r&#92;n".\n   "From: $from &#92;r&#92;n".\n   "To: $to &#92;r&#92;n".\n   "Date: ".date("r")."&#92;r&#92;n".\n   "Subject: ".$subject."&#92;r&#92;n";\nmail($to, $subject, $message, $from, $headers);\n?>\noverwrite your form in your page with this\n<form method="post" action="sendmail.php">\n<input type="text">  \n<input type="submit" value="send">\n</form>
591578
I haven't found one, but Microsoft recommends that the originator convert their files to something (like PDF) to send to you.\nhttp://www.microsoft.com/office/previous/xp/columns/column16.asp
54964
can't be done!\nget yahoo premium n then schedule it via outlook
13050
it might be that the source file can not really be read. the file might be in use or it is a file format not supported by yahoo mail. i think so. anyway, it says contact server admin.
12027
The "Date:" part of the message header does come from the email client. If you're using a web service to send email (like Hotmail or Yahoo mail) it will most likely reflect the time at the server itself and not from your pc.  (This may be where you're getting vastly different times reflected.)\n\nIf you're using an SMTP/POP service through Outlook or other non-web mail client, you should get something approximating your local pc time with a time zone indicator after the timestamp, like -0500 for U.S. Eastern, etc.\n\nHope that helps.
508325
You can't it's far too big. Most email service blocks attachment to a maximum of 10mo.\n\nSending a complete DVD at a average rate of 20 k/s would take 3 days\n\n[edit] You can send a DVD but not by email.
217110
While I've only briefly used Perl, I cannot give you any concrete code.  However, consider this suggestion:  A person enters an 'e-mail' address and posts back from the form.  Have the action from the POST send the results to a Perl script that will use the Perl SMTP libraries to send an e-mail to an address of your choosing, with the person's entered e-mail address as the 'FROM' address.  You can set up the 'subject' line so that you can have your e-mail reader use certain rules to store the mail in a particular folder.\n\nIf you set up the e-mail body correctly, you could then turn around and 'reply' to all of the e-mails that you received with your specific subject line to all of the 'FROM' addresses you had collected and have that handle your replies without the cut & paste.\n\nNo mussy text files, no database required --only problem is if you can't connect to the SMTP server from the machine taking the HTTP POST requests.
48984
what does it do? what is the size of the file. Most of the eMail providers do not allow more than 10 Mb, usually. if this is not the problem it may your connection problem.\nPlease be more discriptive.
626440
I have the file.  I can email it to you just IM me.