how can i create a form that will send an email--with an attached file--on a unix server?
357336
Hello,\nif it is a unix (or linux) server, you normaly will be able to run cgi-scripts or perl-scripts. Here is a solution (i think it´s simple to understand and customize for newbies too) that will meet your needs:\n\nhttp://www.hotscripts.com/Detailed/17542.html\n\nOtherwise (if it is linux/unix-based server), you will be able to run php-scripts. So have a look at hotscripts.com at php-section, topic : formmail, form-processor\n\nGood Luck, PeterT
445921
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
49778
send music as attachment
509873
Write it in a program. Save program to file. Attach file to e-mail. Have person open file and save to computer. Add changes to form and save form. Attach file to e-mail to be returned.
940638
Probably the easiest way is to tar all the files into a single file and then use uuencode to send the single file.\n\nuuencode file.tar file.tar | mailx -s "incoming files" you@yahoo.com\n\nOtherwise you can do something like combining them all into a single text file and sending it.\n\nfor a in file1 file2 file3 file4 file5\ndo\n  uuencode $a $a >> mailtext\n  echo >> mailtext\n  echo "===============" >> mailtext\n  echo >> mailtext\ndone\n\nmailx -s "incoming files" you@yahoo.com < mailtext\n\nEach file will be separated by a line (the ==== )
557038
Just a question for now:\n\nWhat are you using to send your email (and attach those files): an email client, such as Outlook or Outlook Express, or a webmail interface?
57172
No.. None of the web based email service providers like yahoo, hotmail, google provide this kind of facility. But you can make a small program yourself to do this. It's easy to make the program on linux and windows both. If you have a website than you can add a script to it so that it executes every monday.
482611
YEAH! Your question is easy because it's done all the time.\n\nI'll assume you have the database.\n\nFirst thing is your email template.  You can do this in the program or a better practice is to keep your emails either in a library or in separate files.  This males finding an email and changing it easier down the road.\n\nNext you write a program you bring the database and the email together like a maillist merge in wordprocessing.\n\nYou program will open the db, grab all the records you want to send the email to and for each one you\nll send the email message.\n\nNow the above is the logic to use no matter what type of server you are own.\n\nIf you are Apache with MySQL and PHP or a combo close then you'd use the MySQL connection your webhost setup as to how to acces it and Apache server email programs is usually SendMail.\n\nA combo of html and SendMail will be the email "code" part of your project.  The SendMail allows you to insert fields, the ones you'll pull from the database into the email.\n\nSo you can send mail with Dear John, etc...\n\nSendMail has greeting, salutaion, body sections which you can write as html or use scripting.  The trick is the receivers email must understand html and not block it and any scripting commands like Yahoo does.\n\nIf you're .NET the email namspace to learn more is System.Net.Mail, same logic applies, only thins has more stuff built in for you to play with.  The database or datasource can be Access, MSSQL, Oracle or MySQL and other dbs, it's Microsoft so more db makers are out there for the environment.\n\nNow, after you'd picked up the quick info on the command, you'll use save you fingers some headaches and go to a code site like CodeProject or DevSource and grab some free code doing emailing for the language and server you're using.  You may have to tweek the fields they'll use and of course your email not will be different.
1083987
First create a html form with a POST method. Set enctype of form as "multipart/form-data". Let's say that's index.htm. \n\nindex.htm\n--------------------------\n<form enctype="multipart/form-data" action="upload.php" method="POST">\n    Send this file: <input name="userfile" type="file" />\n    <input type="submit" value="Send File" />\n</form>\n---------------------------\n\nThen create the PHP file. The information about uploaded file can be access via the $_FILES array. In this case, it's $_FILES['userfile'] variable. The file will be uploaded to a temporary directory. The move_uploaded_file function is used for move the temp file to correct location.\n\nupload.php\n---------------------------\n<?php\nif (move_uploaded_file($_FILES['userfile']['tmp_name'], basename('c:/'.$_FILES['userfile']['name']))) {\n   echo "<p>File was successfully uploaded</p>";\n} else {\n   echo "<p>Uploading unsuccessful</p>";\n}\n?> \n---------------------------
666344
The solution depends on what email client you are using and the security level.  I would recommend saving the attachment with a .txt extension or zipping it before mailing it (and possibly changing it from filename.zip to filename_zip before sending).  Then changing the extension back to html or unzipping it once received.  \n\nSome email clients, most notably almost all microsoft products, add code to HTML files.  Some spam blockers and firewalls don't let certain types of attachments thru.  The above should help address both those issues.\n\nGood luck.
339376
What you want to do is fairly complex and would require extensive HTML / script coding experience.\n\nThat said, the way you make an HTML e-mail letter with images is to basically have your images, etc. stored on a Web server that allows hotlinking.\n\nFor example, suppose you company's Web server is located at http://www.mycompany.com/ and you store your newsletter images in a folder named newsletter.\n\nThen, if this was the HTML text of your newsletter, you would be able to see the images:\n\n<html>\n<head>\n<title>Newsletter</title>\n</head>\n<body>\n<h4>Hello World!</h4>\n<p>This is our new newsletter. Hope you like it.</p>\n<img src="http://www.mycompany.com/newsletter/image.jpg" />\n<br />\n</body>\n</html>\n\nIn other words, you simply edit the body text of your newsletter to be in HTML, using absolute addressing for all links, then send that to the recipients.\n\nThis may help you more:\n\nhttp://www.sitepoint.com/article/code-html-email-newsletters
1021097
If u have adequate knowledge of PHP, i suggest u write it yourself. that way, u have full control of the email system.. plus it will ALWAYS be free.\n\nalternatively, u may want to look at other PHP script repositories. a few worth a mention are:\n\nhttp://php.resourceindex.com/Complete_Scripts/E_Mail_Utilities\nhttp://www.zend.com
914340
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>
216806
You can do this yourself easily with PHP. There are dozens of explanations online, or "PHP For Dummies" will walk you through it. All you need to know is if your Web hosting company supports PHP and allows you to use the PHP mail() function.
113892
Use Winzip or something similar to compress all the files into one folder which you can attach to you email. You have to keep in mind what the attachment size limit is on both your email server as well as that of the person you are sending it to.
1168986
You need to copy and paste the email into a wordpad doc or other similar program. Then you can save it where ever you want. Burn it to disc or save to floppy.Hope this helped.
255624
you send it as an attachment to an email