[PHP] attach an ICO file to a text file...then downloading to the user

2004-08-27 Thread grahama
is it possible to add a custom icon to a text file on the server 
side..and then download the completed file to the user's desktop

would you put some type of AddType into the htacccess folder to do this 
?
like  AddType image/x-icon .ico

can php do something like this ?
many thanks
g



[PHP] attach ICO [icon] files to a file thru php

2004-06-23 Thread grahama
is it possible to attach a custom icon [like an ICO file on the server] 
 to a file thru php ?

I want to automatically generate  a generic text file [ which is XML 
that launches a Quicktime Movie] that has a custom icon attached to 
it...
then, I want to automatically send that newly created file in an 
email...with a user id code for verification

the php used to generate the text file [minus the icon] would be 
something like:

?php
$buffer = '?xml version=1.0?' . \n .
'?quicktime type=application/x-quicktime-media-link?' . \n .
'embed src=newly_generated_quicktime_movie autoplay=true
moviename=id'.$_GET['user_id_generated_from_mysql_db'].'/id /';
Header('Content-Type: application/x-quicktimeplayer');
Header('Content-Length: '.strlen($buffer));
Header('Content-disposition: inline; filename=theMovie.qtl');
print $buffer;
?

is this possible?
g
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Attach Image to email

2004-03-24 Thread Mike Mapsnac
Hello

I know how to use mail function in php to send an email with text. But I 
want to add new feature to my website that allow to send email with 
attachment ( image). Any ideas how to do this?

Thanks

_
Get reliable access on MSN 9 Dial-up. 3 months for the price of 1! 
(Limited-time offer) 
http://join.msn.com/?page=dept/dialuppgmarket=en-usST=1/go/onm00200361ave/direct/01/

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


Re: [PHP] Attach Image to email

2004-03-24 Thread Marek Kilimajer
Use this class, there is even an example of the feature you want:

http://www.phpclasses.org/mimemessage

Mike Mapsnac wrote:
Hello

I know how to use mail function in php to send an email with text. But 
I want to add new feature to my website that allow to send email with 
attachment ( image). Any ideas how to do this?

Thanks

_
Get reliable access on MSN 9 Dial-up. 3 months for the price of 1! 
(Limited-time offer) 
http://join.msn.com/?page=dept/dialuppgmarket=en-usST=1/go/onm00200361ave/direct/01/ 


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


Re: [PHP] attach file with mail() function??

2003-10-09 Thread - Edwin -
Hi,

On Sun, 05 Oct 2003 20:36:51 -0500
John Nichel [EMAIL PROTECTED] wrote:

 Jason Wong wrote:
  On Monday 06 October 2003 07:34, Roy W wrote:
  
 Is there a way to attach a file with the mail() function?
  
  
  Yes.
  
 
 Is there a way to have PHP print out Hello World?

Yes.

You need a printer though...

And, it'll only work under Windows 9.x, ME, NT4 and 2000 as the
manual says:

  http://www.php.net/manual/en/ref.printer.php

And, yes, I'm just kidding - John... :)

- E -
__
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!
http://bb.yahoo.co.jp/

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



Re: [PHP] attach file with mail() function??

2003-10-06 Thread Steve Buehler
At 06:34 PM 10/5/2003, Roy W wrote:
Is there a way to attach a file with the mail() function?

Thanks!
Yes.  Take a look at http://www.php.net/mail

Steve

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


[PHP] attach file with mail() function??

2003-10-05 Thread Roy W
Is there a way to attach a file with the mail() function?
 
Thanks!


Re: [PHP] attach file with mail() function??

2003-10-05 Thread Jason Wong
On Monday 06 October 2003 07:34, Roy W wrote:
 Is there a way to attach a file with the mail() function?

Yes.

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
According to Kentucky state law, every person must take a bath at least
once a year.
*/

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



Re: [PHP] attach file with mail() function??

2003-10-05 Thread John Nichel
Jason Wong wrote:
 On Monday 06 October 2003 07:34, Roy W wrote:
 
Is there a way to attach a file with the mail() function?
 
 
 Yes.
 

Is there a way to have PHP print out Hello World?

-- 
By-Tor.com
It's all about the Rush
http://www.by-tor.com

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



Re: [PHP] attach file with mail() function??

2003-10-05 Thread mike
 Jason Wong wrote:
 On Monday 06 October 2003 07:34, Roy W wrote:

Is there a way to attach a file with the mail() function?


 Yes.


 Is there a way to have PHP print out Hello World?


Mr Wong has had his panties in a bunch all day, you may not want to bait him.

Mike

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



Re: [PHP] attach file with mail() function??

2003-10-05 Thread Jason Wong
On Monday 06 October 2003 08:28, [EMAIL PROTECTED] wrote:
  Jason Wong wrote:
  On Monday 06 October 2003 07:34, Roy W wrote:
 Is there a way to attach a file with the mail() function?
 
  Yes.
 
  Is there a way to have PHP print out Hello World?

 Mr Wong has had his panties in a bunch all day, you may not want to bait
 him.

Please, grow up.

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
This novel is not to be tossed lightly aside, but to be hurled with great 
force.
-- Dorothy Parker
*/

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



Re: [PHP] attach file with mail() function??

2003-10-05 Thread John Nichel
[EMAIL PROTECTED] wrote:

Jason Wong wrote:

On Monday 06 October 2003 07:34, Roy W wrote:


Is there a way to attach a file with the mail() function?


Yes.

Is there a way to have PHP print out Hello World?



Mr Wong has had his panties in a bunch all day, you may not want to bait him.

Mike

Actually, I think Jason is as just tired of seeing the same, already 
answered, questions over and over again...like alot of us are.  I think 
he's tired of people who won't take one bit of their time to look up 
answers for themselves, but expect us to hold their hand and waste our 
timelike alot of us are.  Sure, the purpose of this list is to help, 
but it's not here to babysit.

--
By-Tor.com
It's all about the Rush
http://www.by-tor.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] attach file with mail() function??

2003-10-05 Thread mike

 Actually, I think Jason is as just tired of seeing the same, already
 answered, questions over and over again...like alot of us are.  I think
 he's tired of people who won't take one bit of their time to look up
 answers for themselves, but expect us to hold their hand and waste our
 timelike alot of us are.  Sure, the purpose of this list is to help,
  but it's not here to babysit.

Then he doesn't have to respond. If he's not interested in a thread, he
should delete it. Tossing a useless one word answer onto the list isn't
helping to reduce the volume of email in everyones inbox. So far today
I've had probably close to 15 OT emails from several threads land on my
machine, none of them useful (including this one) none of them relating to
PHP (including this one) and all of them avoidable (including this one) if
he had just hit delete rather than send.

Mike

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



Re: [PHP] attach file with mail() function??

2003-10-05 Thread Wang Feng

 Then he doesn't have to respond. If he's not interested in a thread, he
 should delete it. Tossing a useless one word answer onto the list isn't
 helping to reduce the volume of email in everyones inbox. So far today
 I've had probably close to 15 OT emails from several threads land on my
 machine, none of them useful (including this one) none of them relating to
 PHP (including this one) and all of them avoidable (including this one) if
 he had just hit delete rather than send.

not including this one. :-)

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



Re: [PHP] attach file with mail() function??

2003-10-05 Thread John Nichel
[EMAIL PROTECTED] wrote:
snip
I've had probably close to 15 OT emails from several threads land on my
machine, none of them useful (including this one) none of them relating to
PHP (including this one) and all of them avoidable (including this one) if
he had just hit delete rather than send.
You could have followed that 'delete' road too man.

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


Re: [PHP] attach file with mail() function??

2003-10-05 Thread Eugene Lee
On Sun, Oct 05, 2003 at 09:58:55PM -0500, John Nichel wrote:
: [EMAIL PROTECTED] wrote:
: Jason Wong wrote:
: On Monday 06 October 2003 07:34, Roy W wrote:
: 
: Is there a way to attach a file with the mail() function?
: 
: Yes.
: 
: Is there a way to have PHP print out Hello World?
: 
: Mr Wong has had his panties in a bunch all day, you may not want to
: bait him.
: 
: Actually, I think Jason is as just tired of seeing the same, already 
: answered, questions over and over again...like alot of us are.  I think 
: he's tired of people who won't take one bit of their time to look up 
: answers for themselves, but expect us to hold their hand and waste our 
: timelike alot of us are.  Sure, the purpose of this list is to help, 
: but it's not here to babysit.

Maybe responders should take a slightly tougher attitude and make
some less reasonable demands like requesting the original poster to
read the online manual:

http://www.php.net/manual/en/

the FAQ:

http://www.php.net/FAQ.php

the list archives:

http://marc.theaimsgroup.com/?l=php-general

or even some other links:

http://www.php.net/links.php


Or there be a FAQ specifically for this list?

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



Re: [PHP] attach file with mail() function??

2003-10-05 Thread Curt Zirzow
* Thus wrote [EMAIL PROTECTED] ([EMAIL PROTECTED]):
 
  Actually, I think Jason is as just tired of seeing the same, already
  answered, questions over and over again...like alot of us are.  I think
  he's tired of people who won't take one bit of their time to look up
  answers for themselves, but expect us to hold their hand and waste our
  timelike alot of us are.  Sure, the purpose of this list is to help,
   but it's not here to babysit.
 
 Then he doesn't have to respond. If he's not interested in a thread, he
 should delete it. Tossing a useless one word answer onto the list isn't
 helping to reduce the volume of email in everyones inbox. So far today
 I've had probably close to 15 OT emails from several threads land on my
 machine, none of them useful (including this one) none of them relating to
 PHP (including this one) and all of them avoidable (including this one) if
 he had just hit delete rather than send.

If it bothers you that much, follow the instructions on the last
line of this email.

The only person who started this topic, 'Off Topic' was you. And I
must say in bad taste.  Then you complain about OT posts while
being OT yourself.  Perhaps you should stick with your own advice
and just delete it, instead of wasting my time writing this email.


That being said, I think i'll have this thread grow way off topic,
and self promote my site.

Now we can visually see how often somone helps people with the
list:
  http://zirzow.dyndns.org/html/mlists/php_general/search?q=gremlin
  vs.
  http://zirzow.dyndns.org/html/mlists/php_general/search?q=mike%40array-media


Now I really have to write that flame awarness patch :)
  Posts: 4
  Flames: 3

Curt
-- 
I used to think I was indecisive, but now I'm not so sure.

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



Re: [PHP] attach file with mail() function??

2003-10-05 Thread Curt Zirzow
* Thus wrote Eugene Lee ([EMAIL PROTECTED]):
 On Sun, Oct 05, 2003 at 09:58:55PM -0500, John Nichel wrote:
 : [EMAIL PROTECTED] wrote:
 : Jason Wong wrote:
 : On Monday 06 October 2003 07:34, Roy W wrote:
 : 
 : Is there a way to attach a file with the mail() function?
 : 
 : Yes.
 : 
 : Is there a way to have PHP print out Hello World?
 : 
 : Mr Wong has had his panties in a bunch all day, you may not want to
 : bait him.
 : 
 : Actually, I think Jason is as just tired of seeing the same, already 
 : answered, questions over and over again...like alot of us are.  I think 
 : he's tired of people who won't take one bit of their time to look up 
 : answers for themselves, but expect us to hold their hand and waste our 
 : timelike alot of us are.  Sure, the purpose of this list is to help, 
 : but it's not here to babysit.
 
 Maybe responders should take a slightly tougher attitude and make
 some less reasonable demands like requesting the original poster to
 read the online manual:
 
   http://www.php.net/manual/en/

These threads always go in circles :) this topic has been discussed
before:
 http://marc.theaimsgroup.com/?l=php-general


I believe that last one was started from Mr. Holmes, doing the very
exact thing :)  And I find it perfectly acceptable for people like
John and Jason to occasionally post responses like that. In fact I
found his response rather funny and enlightened my day a bit.


Curt
-- 
List Stats: http://zirzow.dyndns.org/html/mlists/php_general/

I used to think I was indecisive, but now I'm not so sure.

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



Re: [PHP] attach file with mail() function??

2003-10-05 Thread andu
On Mon, 6 Oct 2003 04:26:55 +
Curt Zirzow [EMAIL PROTECTED] wrote:


 That being said, I think i'll have this thread grow way off topic,
 and self promote my site.
 
 Now we can visually see how often somone helps people with the
 list:
   http://zirzow.dyndns.org/html/mlists/php_general/search?q=gremlin
   vs.
   http://zirzow.dyndns.org/html/mlists/php_general/search?q=mike%40array-media
 
 
 Now I really have to write that flame awarness patch :)
   Posts: 4
   Flames: 3

I was going to suggest, since you are into list statistics, to count how many of
Mr Wang's replies consist of something more then a reference to the manual and
similar (I counted over 50% in a day I had time to kill). 
It would be also interesting to keep track of how many hours some members spend
with the list each day (and night). Talking about what people do with their time
(and life).
Just curious...

 
 Curt
 -- 
 I used to think I was indecisive, but now I'm not so sure.
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 
 



Regards, Andu Novac

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



Re: [PHP] attach file with mail() function??

2003-10-05 Thread Jason Wong
On Monday 06 October 2003 12:42, andu wrote:

 I was going to suggest, since you are into list statistics, to count how
 many of Mr Wang's replies consist of something more then a reference to the
 manual and similar (I counted over 50% in a day I had time to kill).

If you are referring to me, the name is Wong, thank you.

Maybe you should read this:

http://marc.theaimsgroup.com/?l=php-generalm=106497838012812w=2

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
When a woman gives me a present I have always two surprises:
first is the present, and afterward, having to pay for it.
-- Donnay
*/

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



Re: [PHP] attach file with mail() function??

2003-10-05 Thread andu
On Mon, 6 Oct 2003 13:07:36 +0800
Jason Wong [EMAIL PROTECTED] wrote:

 On Monday 06 October 2003 12:42, andu wrote:
 
  I was going to suggest, since you are into list statistics, to count how
  many of Mr Wang's replies consist of something more then a reference to the
  manual and similar (I counted over 50% in a day I had time to kill).
 
 If you are referring to me, the name is Wong, thank you.

Yes, sorry about the typo, you're welcome.

 
 Maybe you should read this:
 
 http://marc.theaimsgroup.com/?l=php-generalm=106497838012812w=2
 
 -- 
 Jason Wong - Gremlins Associates - www.gremlins.biz
 Open Source Software Systems Integrators
 * Web Design  Hosting * Internet  Intranet Applications Development *
 --
 Search the list archives before you post
 http://marc.theaimsgroup.com/?l=php-general
 --
 /*
 When a woman gives me a present I have always two surprises:
 first is the present, and afterward, having to pay for it.
   -- Donnay
 */
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 
 


-- 
Andu

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



[PHP] attach

2003-08-04 Thread Diana Castillo
Hi,
Can you tell me how to attach files when using the php mail function?
Thanks,
Diaan



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



Re: [PHP] attach

2003-08-04 Thread Ryan A
Check the phpclasses site, it has some very good examples also do a search
on google..
you can find it at http://google.com :-D

Cheers,
-Ryan


We will slaughter you all! - The Iraqi (Dis)information ministers site
http://MrSahaf.com


- Original Message -
From: Diana Castillo [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, August 04, 2003 3:59 PM
Subject: [PHP] attach


 Hi,
 Can you tell me how to attach files when using the php mail function?
 Thanks,
 Diaan



 --
 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



[PHP] attach image with the mail command?

2003-01-14 Thread harald.mohring
how can i attach an image with the mail command
how do get the image in a variable when i have chosen it with the input type
file?

Harry



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




RE: [PHP] attach image with the mail command?

2003-01-14 Thread Timothy Hitchens \(HiTCHO\)
You will need to read the file into an array using file() then
join/base64/split and then setup the right headers to attach the mime
encoded attachment.


Timothy Hitchens (HiTCHO)
Open Source Consulting
e-mail: [EMAIL PROTECTED]

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
 Sent: Wednesday, 15 January 2003 11:10 AM
 To: [EMAIL PROTECTED]
 Subject: [PHP] attach image with the mail command?
 
 
 how can i attach an image with the mail command
 how do get the image in a variable when i have chosen it with 
 the input type file?
 
 Harry
 
 
 
 -- 
 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




Fw: [PHP] attach image with the mail command?

2003-01-14 Thread Rick Emery
this class will do all the work you need:

instantiate with CMIMEMail()
then attach with attachfile()
add body with makebody()
send with send()
=
/*
* Notes from [EMAIL PROTECTED] 25 Mar 2000:
* This library based  idea of Dan Potter
* Improvements: Multi attachmends in one e-mail, ability to post html  plain trext, 
up to 3x spe
ed improved.
* USSAGE - mimetype example for attacment
* $m = new CMIMEMail($to,$from,$subject);
* $m-mailbody(This is simply text,htmlbodyh1This is HTML text/h1);
* $m-attach(example.html,text/html,$filebody);
* $m-attachFile(resume.gif,image/gif);
* $m-send();
* NOTE: if your system have chunk_split function use it.
***
* To Do:
* 1. Make quoted-printable encoder and use them in makebody;
* 2. Generate right boundaries
* 3. Fix bugs in  SMTP send direct futction SMTPsend()
*/

function my_chunk_split($str)
{
$stmp = base64_encode($str);
$len = strlen($stmp);
$out =  ;
$done=0;
while( $done$len ) {
  $out.=( $len-$done76)?substr($strp,$done, 76). \r\n:substr($strp,$done, 
$len-$done). \r
\n;
  $done+=76;

}
return $out;
}


class CMIMEMail {
 var $to;
 var $from;
 var $cc;
 var $bcc;
 var $subject;
var $boundary =  =_NextPart_000_0009_01BF95E9.CDFD2060;
 var $smtp_headers;
 var $filename_real;
 var $body_plain;
 var $body_html;
 var $atcmnt;
 var $atcmnt_type;
 function CMIMEMail($to,$from,$subject,$cc=,$bcc=,$priority=3) {
   $this-to=$to; $this-from=$from; $this-subject=$subject;
   $this-priority=$priority; $this-cc=$cc; $this-bcc=$bcc;
 }
 function  mailbody( $plain, $html=  ) {
   $this-body_plain=$plain;
   $this-body_html=$html;
 }
 function  attach( $name, $content_type, $data ) {
   $this-atcmnt[$name]=$data;
   $this-atcmnt_type[$name]=$content_type;
 }
 function  attachfile( $fname, $content_type ) {
   $name=ereg_replace( (.+/), ,$fname);
   $f=fopen($name, r);
   $fsz = filesize($name);
   $ftext = fread($f,$fsz);
   $this-attach($name,$content_type,$ftext);
   fclose($f);
 }
 function  clear() {
   unset( $this-atcmnt );
   unset( $this-atcmnt_type );
 }
 function  makeheader() {
   $out = From: .$this-from.\nReply-To: .$this-from. \n;
   if( $this-cc !=)  $out .=Cc: .$this-cc.\n;
   if( $this-bcc !=) $out .=Bcc: .$this-bcc.\n;
   $out.= MIME-Version: 1.0\nContent-Type: multipart/mixed;\n 
boundary=\.$this-boundary. \\
nX-Priority: .$this-priority. \n;
   return $out;
 }
 function  makebody() {
   $boundary2=  =_NextPart_001_0009_01BF95E9.CDFD2060;
   $out= ;
   $out= \n\n.$this-body_plain. \n\n;
   if( $this-body_html!=  ) {
 $out.= --.$this-boundary. \nContent-Type: multipart/alternative;\n 
boundary=$boundary2\n
\n;
 $out.= $body_plain\n--$boundary2\nContent-Type: 
text/plain\nContent-Transfer-Encoding: quot
ed-printable\n\n.$this-body_plain. \n\n--$boundary2\nContent-Type: text/html\n.
Content-Transfer-Encoding: 
quoted-printable\n\n$this-body_html\n\n--$boundary2--\n
;
   } else {
# $out.= --.$this-boundary. \nContent-Type: 
text/plain\nContent-Transfer-Encoding: quoted
-printable\n\n.$this-body_plain. \n\n--.$this-boundary. \n;
 $out.= --.$this-boundary. \nContent-Type: 
text/plain\nContent-Transfer-Encoding: quoted-
printable\n\n.$this-body_plain. \n\n;
   }
   if( ISSET($this-atcmnt_type) )
   {
   reset( $this-atcmnt_type);
   while( list($name, $content_type) = each($this-atcmnt_type) ) {
 $out.= \n--.$this-boundary. \nContent-Type: 
$content_type\nContent-Transfer-Encoding: ba
se64\nContent-Disposition: attachment; filename=\$name\\n\n.
   chunk_split(base64_encode($this-atcmnt[$name])). \n;

   } }
   $out.= --.$this-boundary. --\n;
   return $out;
 }
 function  send(){
   mail( $this-to, $this-subject, $this-makebody(),$this-makeheader() );
 }
 function  sendto($email,$subj=#){
   if( $subj==#) $subj= $this-subject;
   mail( $email, $subj, $this-makebody(),$this-makeheader() );
 }
 function  SMTPsend($host){
   $errno=0;$errstr= ;
//   $f=fsockopen(127.0.0.1,25,$erno, $errstr);
   if(!$f) {
 $this-send();
   } else {
  //SNMP commands Not finished yet
  echo fgets($f,512);
 fputs($f, HELO host.com\n);
  echo fgets($f,512);
  fputs($f, MAIL FROM: .$this-from. \n);
  echo fgets($f,512);
  fputs($f, RCPT TO: .$this-to). \n;
  echo fgets($f,512);
 fputs($f, data\n);
  echo fgets($f,512);
 fputs($f, From: .$this-from. \nTo: .$this-to. 
\n.$this-makeheader().$this-makebody
(). \n\n.\n);
 fputs($f, quit\nexit);

 fclose($f);
  }
 }
}
?

- Original Message - 
From: [EMAIL PROTECTED]
To: 
Sent: Tuesday, January 14, 2003 7:09 PM
Subject: [PHP] attach image with the mail command?


how can i attach an image with the mail command
how do get the image in a variable when i have chosen it with the input type
file?

Harry



-- 
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

[PHP] attach file to email

2001-05-09 Thread Christian Dechery

How do I attach a file to an email?

I'd have a mailbody also, with some text... ad I wanna attach a text file 
to it, but I don't want it to be appended in the body... I want it as an 
attachment.
_
. Christian Dechery - CTO
.. WebDeveloper @ Webstyle!
.. http://www.webstyle.com.br
.. http://www.tanamesa.com.br


-- 
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] Attach File in PHP's Mail Function.

2001-04-02 Thread Yasuo Ohgaki

This has been asked recently. You can search archives. Look for links can be
found at
http://www.php.net/support.php

Most easiest way is grabbing mail class that can handle attachment.
There are many of them on the net. I think www.zend.com code exchange might have
one.

If you want to do it by yourself, you need to read related RFCs.

Regards,
--
Yasuo Ohgaki


""Mark Lo (3)"" [EMAIL PROTECTED] wrote in message
000701c0bb1b$d3b772a0$2e53fea9@mark">news:000701c0bb1b$d3b772a0$2e53fea9@mark...
 Hi,

  I would like to ask how to attach a file in PHP's Mail Function ??

 Thank you

 Mark


 --
 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]



-- 
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]




[PHP] Attach File in PHP's Mail Function.

2001-04-01 Thread Mark Lo \(3\)

Hi,

 I would like to ask how to attach a file in PHP's Mail Function ??

Thank you

Mark


-- 
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]




[PHP] attach file from server to an email

2001-03-13 Thread Jerry Lake

Ok, I created a form handler that writes the
.ini file that I need for an auto-import, now
what should I look at attach it to an email
the file is just ascii text

Jerry Lake- [EMAIL PROTECTED]
Web Designer
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com


-- 
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]