Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Saving Email Attachments To Local Computer


I receive a daily email attachment, which is a zipped .csv file. I am trying to write a script that is able to read this csv file. Currently I am using the IMAP function and I am able to access my mailbox and get the name of the attachment, but this is where I've hit a stopping point.

Is it possible to save the attachment to my local computer? From there I could use the zip_read function. I have tried file_put_contents, but that doesn't seem to work because of the .zip format.




View Complete Forum Thread with Replies

Related Forum Messages:
Passing Form Data To An Email Address/Excel Sheet On A Local Computer
I am right now learning PHP & want to know if there is a way to send
web form data to an Excel sheet located on a network. My windows xp PC
doesnot have a copy of Excel. Also i am not connected to the internet,
its a local computer.

What i am trying to do is to make a PHP script which will send a simple
form data to an excel sheet (or create a new Excel sheet) on another PC
on a network.

Since i am not connected to the internet, i will not be able to send an
email (anyway, sendmail is not available on Windows OS), nor do i have
any server on windows.

Is it possible to send form data to Excel sheet on local computer? Even
my PC is a local PC. Some one was saying its possible thru Windows
Scheduler.

View Replies !
Parse PHP On Local Computer
Running Windows XP (Home) and would like to be able to parse PHP locally without having to upload files to my host server and view them there. I know I can install PHP on my PC, but what is the simplest way to set it up as a local server, preferably without needing to install Apache as well?

View Replies !
Check Local Computer Script
I am trying to do is create a script that searches the local computer of the user and if a filename is there, it will upload it to the mysql database.  Then, another script that searches for a filename on the database and if it's there, to ask the user if they would like to send it to their local computer.  Any suggestions?

View Replies !
Way To Select A Directory On Your Local Computer
Is there a way to select a directory on your local computer and automatically upload all files in to your server?

View Replies !
How To Upload Website From Local Computer
i have made my website on my local computer. and now i'm trying to upload it into server. but some errors happen, and these errors aren't show up in my local computer. please give me suggestion about making website in local computer and then uploading it.

View Replies !
Parsing HTML Files On Local Computer
I would like to be able to open and read HTML files that are on my local (client) computer and then parse them to extract some specific information they contain.

I've been looking here and reading my PHP books, but it appears to me that PHP only opens files on the server or URLs. It think that makes sense to me. Is there an alternative?

View Replies !
Include Text File From Local Computer
how do i "include(file.txt); if i have it stored on my computer for security reasons or do i have to upload it to my domain.

View Replies !
Hyperlink From Intranet Web Page To Local Files On My Computer
I'm creating a company intranet, and every employee has certain
program we want them to be able to run from it, meaning we want the
link to the program to be on the intranet page. For example, Adobe
Photoshop resides on all the employees computer under "C:Program
FilesAdobePhotoshop 7.0Photoshop.exe"

However, when I enter that as a hyperlink on the page, it does not run
the program.

Is there a way to get a web page to run a program on the local host?

View Replies !
Opens Email Attachments And Copies The Contents Into The Body Of The Email, In Pdf Format
I am working on a php script that opens email attachments and copies the contents into the body of the email, in html format. I am looking for a way to do this with pdf files - does anyone know of a way to convert pdf to html on the fly using php?

View Replies !
Could Not Start MySQL Service On Local Computer. Error 1067: The Process Terminated Unexpectedly .
Im getting this problem when i try to start mysql server when i try to right click and select 'start the service'...the lights

still red...i try to went MyComputer>Manage>Services and Applications>Services

i try to start mysql on properties...prompt error came out and says "Could not start MySQL service on local computer. Error 1067: The process terminated unexpectedly" .

View Replies !
A PHP Function For Saving An Image To The Local Hard Drive?
I am looking for a PHP function that when run, would save an image to
the user's hard drive.

View Replies !
Attachments And Email
Can anyone point me in the right direction of a script which creates a file with a few lines of text written in it and then emails it as an attachment to a given address? I know this has been asked before, but I found that the suggested link was broken.

View Replies !
Email Attachments With PHP
I have learned how to POP email with PHP using IMAP. I have learned how to send attachments with POP. Now, I want to create a mail parsing script that will check my POP box and display any attachments that I receive, like a normal email program.

View Replies !
Php Code To Email Attachments
I have a simple form I use to send emails when I am away from the office (copied below).

Can anyone tell me the php code to get the form to send attachments?

------------------
<? if if ($submit) {
mail($MYEMAIL,$SUBJECT,$MESSAGE,"From: $EMAIL");
} else {
echo "Send Email";
}?>

<FORM METHOD=POST>
To: <input type=TEXT name="MYEMAIL">
From: <input type=TEXT name="EMAIL">
Subject: <input type=TEXT name="SUBJECT">
Message: <textarea name="MESSAGE"></textarea>
<input type=SUBMIT name="submit">
</FORM>

View Replies !
Email Attachments And PDF Files
I'm trying to attach a PDF file to an email, and when it gets sent, the PDF file is corrupt. The error is something like "File can not be opened because file does not start with "%PDF" I know it has something to do with my content file type declarations, but I can't get anything to work. Can someone tell me what's wrong with the following mime-class file? PHP Code:

View Replies !
Send Email Attachments
Does anyone know how to send email attachments in php using the mail function?

View Replies !
PHP Email Attachments & Outlook XP
I was curious to know if anyone was experienced any difficulty in receiving PHP generated emails with file attachments using Outllook XP as their mail client. I have used PHPMailer, as well as other classes to accomplish this functionality, and has worked just fine in all other clients, except my client just updated their software to XP... I thought perhaps the encoding could be slightly different, any thoughts?

View Replies !
Email Form With Attachments
I'm interested in creating a php based form that is capable of sending attachments. I really dont know what to do since an attachment can't really be saved to a variable (i'm guessing). This is the emailer code i've been using but i'm not sure what to add to do attachements. Code:

View Replies !
Email From Address And Attachments?
mail($EmailTo, $Subject, $Body, $mail_header, "From: <$from>");

im trying to set the from address in an email, but when i do it with the above it doesnt work!  Instead it stops the header being set to HTML and shows that code.  Can any one tell me where im going wrong? Also how can i send attatchments with an email?

View Replies !
Sending Email Attachments
simple question on sending email attachments via a contact form on a website. although because it's for clients i need one of those "browse..." buttons that allows you to search for the file on your computer and then uploads it to the server before sending... if that makes sence. Code:

View Replies !
Email Attachments That Are In The Database
I have documents in a database that I need to email. I have a script that works sending attachments, but only if the file *really* exists on the server. I have another script that pulls the file contents from the database for download, but obviously that does not create a *real* file on the server.

How would I do this? I've googled for a while and can't find this information.

View Replies !
Email With Dynamic Attachments
I have a database filled with email addresses and would like to email them all an excel file, that has different values based on their id number. I generate those excel files with a php script, but I was wondering if there was a way to execute a php script that would automatcially generate the same dyanamic excel file but also email it to the corresponding email:

<?php
include 'includes/config.php';
include 'includes/opendb.php';
$site1=$_POST['site'];
$fromdate=$_POST['months'];
$todaydate=date("Y-m-d");
$query ="SELECT ticketno, connect, date, rmnum, problem, resolution, connected
FROM helpdesk h
WHERE h.sid = '$site1'";

This script is for when an individual is logged in, I would like it to generate over 20 different xls files to email based on each information and email the corresponding xls to the email that is registered.

View Replies !
Reading And Decoding Email Attachments
i want to write a PHP4 script that reads POP3 or IMAP mail and can
decode the possible attachments in the email. I've looked around for
some classes to do this, and found a few, but most of them seem to be
very lowlevel or lacking in functionality. Is there a good script,
class or example for decoding email attachments?
I have used a class called attachmentread, but this class expects an
attachment as disposition: attachment, while my email with attachments
are all inline...

View Replies !
[reading Email] How To Save The Attachments?
I'm looking for a script which allows me to read emails and attachment
from a pop server (then I'll save the email's text in a db and the
attachments on the server).

So I have found this article: http://www.phpit.net/article/read-email-php-pop3/

....
$email = $pop3->get_mail($i); // how to get the email
....

But then how do I get the information about my attachments and how can
I save them?

View Replies !
Email Form - Send Attachments
I got everything working in this form, i can send attachments everything is sweet, but i want to add additional information like phone numbers and names. But i can't seem to figure out where to add the code. my mate helped me with this, thats why i can't figure it out and he has gone on holidays. Code:

View Replies !
Email Form With Attachments Images
I have an online email form system on my website but would like people to send logos and such with there emails. I was wondering how would this be done? With my current code i want to add the user can attach up to 3 images, .jpgs and .gifs only. Code:

View Replies !
Sending Attachments Via A PHP Email Script
I am using Pear and its mime package to send an email with an attachment. The email sends properly but the attachment does not. I added a error function to see what the problem is and it says:

File is not readable /root/Desktop/sample.txt

A snippet of my code for it is:

$mime = new Mail_mime($crlf);
$crlf = "";
$status = $mime->addAttachment("/root/Desktop/sample.txt", "text/plain");
$mail = $smtp->send($to, $hdrs, $body);

I have defined $to and $hdrs. I have set the permissions to 777. I dont know what the problem is. Any ideas? It will be much apperciated! Also, is this the easiest way to send attachments? All I need to do is just send one attachment to one email address.

View Replies !
Download Email Attachments In 'stealth'
I 've built a simple email application that:

1. connects with an imap mail server and checks for new mail.

2. Downloads all new emails and attachments and inserts emails into local db and attachments into local folders

3. retrieves inbox information from db

so far its working fine but the thing is that at step 2 it takes a while to download attachments and of course unless all attachments are downloaded it won't proceed to step 3 and since we get loads of attachments this is quite a tedious wait.

Is there any way to download the attachments behind the scenes like so that all messages are downloaded but the attachments are put in a queue like process being downloaded while the user can access his emails - if lets say he opens an email that has an attachments that isn't downloaded - the email doesn't show an active attachment link to the downloaded file until its finished downloading - I guess theres gonna be ajax in use here.

View Replies !
Cleaning Up The Mail Body - When The Email Has Attachments.
I have a problem extracting the body from an email when the email has
attachments. Instead of just getting the body of the mail I am getting
something like (where the body is simply 'another attachment' plus
some other ads from yahoo):

View Replies !
Multiple Attachments In An Email Sent From Form Submission
Currently the user selects a document to download, fills in their details and hits submit. They get the file emailed to them, and I get an email telling me their details and which document they downloaded.

However, I'd like the user to be able to select multiple documents (using tick boxes maybe) to be emailed in one mail. There might be 5 documents up there eventually and they could download as many of them as they want.

Would anyone be able to take a nose at the code below and tell me how it might be adapted for multiple attachments? I was thinking maybe to loop the attachment section, but I don't know how to do it, or what variable to use to come out of the loop. Code:

View Replies !
Problem With Sent Text/html Email + Attachments
I send a newsletter from script online. Email is sent in txt and html format, and this is ok The problem is with the attachment. I see and can open attachment ONLY in outlook express I copy below header's email Code:

View Replies !
How To Download ALL Email Attachments From A Mail Server
I've fixed up a simple IMAP email client in php. Its working real ok downloading emails etc...I want that when its downloading emails form the mail server, it should also at the same time download all attachments and put them into separate folders each folder like named after the udate or message id of the email.

The trick is that I want to download all my emails into a local db and at the same time download all my attachments. But as of now my code pretty much doesn't do anything apart from a normal web mail client you know click on attachment link - get prompted to download etc.

View Replies !
Email Attachments - Sending Files Attached Via Mail. What's Wrong?
i wanna send html files (even *.doc) in the body of a mail with this code:

View Replies !
Saving Email To Database
is there a way to save an email to a database to each specific field? like if a user send an email :

--------
Name : Nameof Person
Gender : Male
Skill : typing, reading, eating, walking, running, jumping, sleeping
Age : 24
Address : #5 Somewhere over there
---------------

then each specific info will be saved on its appropriate field?

View Replies !
Saving A Copy Of Outgoing Email
I am making a little web interface so that the secretaries
at my dad's office stop getting lost in thunderbird...*laughs*.

Anyways, I have no problem displaying the emails or sending them.

The 1 problem I seem to be stuck on, is how the heck can I save an
outgoing mail into the sent directory of the mail server? Do I need to
specify special options when sending the email, or can I just create a
copy of the email and dump it in the sent directory?

View Replies !
Sending Picture Into Email Without Saving It?
Is this possible to upload a file then send it into an email address,
without saving it into server or into a directory? if possible how?

View Replies !
Set Up A Local Email Server For My Laptop
I want to set up a local email server for my laptop, I go on trips constantly for work, and don't always have internet access to test my scripts on.  I have WAMP server installed and is good for testing those scripts, but I want to install a test email server to test if my email functions are working correctly... does anyone have a link to an email server that is good for this type work?

View Replies !
LOAD DATA LOCAL INFILE - Workaround For Local-infile=0
I'm using a PHP script for updating my database which relies on the "LOAD
DATA LOCAL INFILE" command. As my provider recently updated the
MySQL-database, he changed the "local-infile" setting to zero, i.e. my
update-script doesn't work anymore (=> "The used command is not allowed with
this MySQL version").

Is there a work-around to fix this problem? I though about the mysql_options
command, but to frankly speaking, I have no clue how to use it and couldn't
figure out how to properly use it even after reading the manual ... anyone
who could help?

View Replies !
Warning: Cannot Send Session Cache Limiter - Headers Already Sent (output Started At /usr/local/apache_ssl/htdocs/mb/admin/author_menu.php:12) In /usr/local/apache_ssl/htdocs/mb/admin/author_menu.php On Line 12
Warning: Cannot send session cache limiter - headers already sent (output started at /usr/local/apache_ssl/htdocs/mb/admin/author_menu.php:12) in /usr/local/apache_ssl/htdocs/mb/admin/author_menu.php on line 12

authorized is True Session is registered I added session_start(); on my pages and it displayed a warning message, what does it mean? i already tried the to add a session_cache_limiter to public but still didn't worked. need help ; ).

View Replies !
Attachments
I would like to enable a user to upload files from a page. Reading the PHP manual, all I can find is that they require "HTTP POST". The problem is, I cannot use this method of dealing with form data. Is there another way anyone knows of to upload a file using PHP? I am not even sure exactly how it is done.

View Replies !
Is There A Way To Get Computer Name In Php ?
I'm trying to get the " Computer Name " of a client accessing my web
site,
is there a way to do this ? not ip...

View Replies !
Ftp From Web To My Computer
I wonder if any one can point me to some information. I am fairly new to this so please excuse my ignorance I have setup an ftp server using Cerberus & DynDns which successfully allows me to upload files from a remote location to my PC. Thats all good.

I have also created a web page that allows me to upload a file to my web server.

I want to combine the 2 processes so I can use the web page to upload to my PC.

I hope this makes sense because I am not sure how else to explain it.

Please help if you can or direct me somewhere else.

View Replies !
Getting Computer Id.
Is it possible to get any computer computer unique information (like comp serial nuber) with php or javascript?

View Replies !
How To Mail With Attachments
I would be greatful if somebody out there knows how to attach a text document to an E-mail using PHP. I have looked at mail() but I can't figure out how to do what I want.
Thanks for any replies!

View Replies !
Imap Attachments
Can anyone tell me how to read mail attachments thru php.
is there any imap function which does this.

View Replies !
Displaying Attachments
I have a shell script which parses an incoming email and stores the full email (including attachments) into the mysql table using an insert statement. This email is then displayed (including attachments) in a html textarea. The attachments are displayed as some junk characters.

Is there a way to save this attachment to the hard disk and view it in its original form. I want to do all this through an html form. I guess first I will have to get the required part of text (attachment) from the textarea. Then convert/encode the attachment. Then open a download box.

View Replies !
PHP Mail Attachments
I have written / adapted a script that lets the user upload a number of file, these files are then attached to an email and sent to someone.
I have successfully got the script to attach 2 files, problem is when i try and attach any more than that they do not get attached.

The files i am trying to attach are not that big, so i would assume its not because of files size. was wondering if there is a limit on how many files you can attach to email and if there is is there any way i can change it..

View Replies !
Mail() With Attachments
Of course I could generate a unique boundary, use the base64_encode()
function and do all the MIME-stuff myself, but I am trying to avoid
re-inventing the wheel.

Anyone know of a *good* PHP function for sending an e-mail with multiple
attachments?

Using PHP 4.3.something.

I've been looking at this:
http://pear.php.net/package/Mail_Mime
and this:
http://www.phpguru.org/static/mime.mail.html



View Replies !
PHP E-mail With Attachments
i wish to send a PHP e-mail with attachments, is this possible?!

View Replies !
Attachments With Mail()
I have a piece of code that adds the attachment just fine but the message is never added, any ideas: Code:

View Replies !
E-Mail Attachments
I've been trying to find something about how to do this all day but haven't had any luck as yet.

I'm trying to find a way to get a PHP script to pick up an attachment from an e-mail that is sent. For example...

User sends e-mail with attachment to address@domain.com which is directed to www.domain.com/script.php

So, the e-mail is being handled by script.php. I then need this to look at the e-mail as a whole including the e-mail address its been sent to but more importantly to pick up the attachment and place it in a folder on the server.

Hard to explain but I hope that's easy to understand.

View Replies !
Mail() & Attachments
I just want the form to be able to mail an attachment, but no matter what, I keep getting the "Undefined index:filename" error.

I've tried setting the error reporting at different levels, but that doesn't seem to help. I'm convinced there's something wrong with the code....

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved