|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
1200+ fellow developers rate and compare features of the top IDEs, like Visual Studio, Eclipse, RAD, Delphi and others, across 13 categories. Enjoy this FREE Download of the IDE User Satisfaction Study by Evans Data Corporation. Download Now!
|
|
#1
|
|||
|
|||
|
i would like to write a perl program which would accept my input values using a form and add attachment to the program so that when i receive my email i get it as an attachment . should i do this using MIME or any other if so please tell me the code
------------------ HotNim |
|
#2
|
|||
|
|||
|
Write the info that you want in the attachment into a temporary file, then attach it to the e-mail (here's a thread on attachments). Example:
let's say your in the /home/site directory (just a random directory). Do this: ####### open(FILE, "<attach.txt") | | print "$!"; print FILE $stuff; close(FILE); ####### $stuff is whatever you want to write to the file. Then when you attach the file the path to the file is "/home/site/attach.txt". Write the part of the script to e-mail it off to you, then: #### unlink('/home/site/attach.txt'); #### That will delete the temporary file from the system. |
|
#3
|
|||
|
|||
|
maybe check out the perl module Mail::Mailer
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Perl Programming > how do i add attachments for email prog using perl |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|