[PHP] mail attachments

2003-01-02 Thread Edward Peloke
I hope you all had a great New Year.  Is attaching a document to an e-mail
simply a matter of adding a new header in the mail function?

Thanks,
Eddie


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] mail attachments

2003-01-02 Thread Marco Tabini
Nope--it's a bit more complicated than that. However, there are a number
of classes out there that can help you out with that.

Cheers,


Marco
-- 

php|architect - The Monthly Magazine for PHP Professionals
Come check us out on the web at http://www.phparch.com!

---BeginMessage---
I hope you all had a great New Year.  Is attaching a document to an e-mail
simply a matter of adding a new header in the mail function?

Thanks,
Eddie


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



---End Message---
-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] mail attachments

2003-01-02 Thread Edward Peloke
Thanks Marco,

I grabbed a few samples online yesterday, they had much more than just the
mail attachements so I was just trying to sift through what I needed.

Thanks,
Eddie

-Original Message-
From: Marco Tabini [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 02, 2003 8:29 AM
To: Edward Peloke
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] mail attachments


Nope--it's a bit more complicated than that. However, there are a number
of classes out there that can help you out with that.

Cheers,


Marco
--

php|architect - The Monthly Magazine for PHP Professionals
Come check us out on the web at http://www.phparch.com!


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] mail attachments

2003-01-02 Thread Michael J. Pawlowsky
Yes and no

You need to add a Content-type: multipart/mixed; boundary=Some_unique_string_here)

But then you also need to encode the documants and send them in the message of Mail.

Look for multipart MIME types on the net to get an idea.

Also if you find a nice class to encode bin files let us know about it. Maybe take a 
look at SquirrelMail or something. They must have that class.

Mike


*** REPLY SEPARATOR  ***

On 02/01/2003 at 9:07 AM [EMAIL PROTECTED] wrote:

I hope you all had a great New Year.  Is attaching a document to an e-mail
simply a matter of adding a new header in the mail function?

Thanks,
Eddie


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] mail attachments

2003-01-02 Thread Adam Voigt




I use this mail class here:



http://www.phpguru.org/downloads/html.mime.mail/



Very, very good PHP class, I highly recommend it.

(And no I didn't write it.) =)



On Thu, 2003-01-02 at 09:14, Edward Peloke wrote:

Thanks Marco,



I grabbed a few samples online yesterday, they had much more than just the

mail attachements so I was just trying to sift through what I needed.



Thanks,

Eddie



-Original Message-

From: Marco Tabini [mailto:[EMAIL PROTECTED]]

Sent: Thursday, January 02, 2003 8:29 AM

To: Edward Peloke

Cc: [EMAIL PROTECTED]

Subject: Re: [PHP] mail attachments





Nope--it's a bit more complicated than that. However, there are a number

of classes out there that can help you out with that.



Cheers,





Marco

--



php|architect - The Monthly Magazine for PHP Professionals

Come check us out on the web at http://www.phparch.com!





-- 

PHP General Mailing List (http://www.php.net/)

To unsubscribe, visit: http://www.php.net/unsub.php






-- 
Adam Voigt ([EMAIL PROTECTED])
The Cryptocomm Group
My GPG Key: http://64.238.252.49:8080/adam_at_cryptocomm.asc








signature.asc
Description: This is a digitally signed message part


RE: [PHP] mail attachments

2003-01-02 Thread Michael J. Pawlowsky
While on the subject of Multi-part Mime Type...

I use to use it alot in the past in C cgi's (only Netscape supported at the time) to 
give status reports when doing long processes etc.
This was back in the days when Netscaped ruled

It was nice, since you could have a status message updated on the center of the page.
Looked elegant as opposed to having messages
continually listed.

Anyways I tried the other day for a bit and still could not get it to work in IE. I 
guess they decided never to implement Mutli-part MIME into their browser.
Or is there some other MIME type it's looking for to accomplish the same thing?

If you have Netscape run this in and take a look to see what I mean.


?php

  $num = 10;

  $TMP =  'sdvdsvadsvasdvadsvwvadsvadsvadsvadsvadsvdsavsadvasdv';

  Header( Content-type: multipart/mixed; boundary=$TMP);
  for($i=1; $i=$num; $i++){
print --$TMP\n;
print Content-Type: text/html\n;
print \n;
print table width=\100%\ height=\100%\\n;
print trtd align=\center\ valign=\middle\\n;
print $i\n;
print /td/tr/table\n\n\n\n;
flush();
  sleep(1);
  }
  print --$TMP--\n;
?




[PHP] Mail Attachments

2002-01-24 Thread Gordon Stewart

Dear List

I have just compleated a PHP web frontend to the standard mail function in
PHP.  I have got it to send and recieve email.

Can I take this programming task further and allow it to send and recieve
attachments. My script runs on a redhat 7 box.

Can anyone help?  How can i achieve this?

Gordon


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Mail Attachments

2002-01-24 Thread Neil Freeman

Take a look at the articles on:
 http://www.devshed.com/Server_Side/PHP

HTH

Neil

Gordon Stewart wrote:

 Dear List

 I have just compleated a PHP web frontend to the standard mail function in
 PHP.  I have got it to send and recieve email.

 Can I take this programming task further and allow it to send and recieve
 attachments. My script runs on a redhat 7 box.

 Can anyone help?  How can i achieve this?

 Gordon

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]

 ***
  This message was virus checked with: SAVI 3.52
  last updated 8th January 2002
 ***

--

 Email:  [EMAIL PROTECTED]
 [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]