[PHP] Re: mail question (mime)

2003-12-16 Thread Justin Patrin
You may want to try using PEAR's Mail_Mime class.

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


Re: [PHP] Re: mail question (mime)

2003-12-16 Thread Cesar Cordovez
...and talking about mail, is there a class to parse an incoming mail? 
Let me explain: I'm using the great POP3 pear class to receive mail, but 
I'm having trouble separating the different parts in an 
multipart/alternative type of msg.  Is there a class to receive the 
result from POP3 class and convert it into an array of all the specific 
parts of an mail?

Thanks!

Justin Patrin wrote:

You may want to try using PEAR's Mail_Mime class.

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


Re: [PHP] Re: mail question (mime)

2003-12-16 Thread Justin Patrin
Cesar Cordovez wrote:

...and talking about mail, is there a class to parse an incoming mail? 
Let me explain: I'm using the great POP3 pear class to receive mail, but 
I'm having trouble separating the different parts in an 
multipart/alternative type of msg.  Is there a class to receive the 
result from POP3 class and convert it into an array of all the specific 
parts of an mail?

Well, you could look for yourself. ;-)
Yes, there is. Mail_Mime does both encoding and decoding.
http://pear.php.net/package/Mail_Mime
--
paperCrane Justin Patrin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Re: mail question (mime)

2003-12-16 Thread Cesar Cordovez
W cool.  I went there, but I thought this class only worked for 
sending mails.  Great!

Justin Patrin wrote:
Well, you could look for yourself. ;-)
Yes, there is. Mail_Mime does both encoding and decoding.
http://pear.php.net/package/Mail_Mime
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: Mail() question

2003-09-09 Thread Kae Verens
Ryan A wrote:
Hi everyone,
I am trying to create a new newsletter software as the ones i found on
hotscripts were just not good enough or mucho $$ which i dont have :-(
Have finished the basics but need some advise now.
I am using a mysql database instead of text files.
I have a table with the fields name and email, my questions are,
1:is it better to use a for loop and then send each mail?
2:should i first put all the names and addresses into an array?
3:Is it better to send each mail independantly or use BCC? (one mail
blast., will it work?)
For short lists of emails, yes, it should be fine to send them in one go 
(one after the other). However, it takes time to send an email, and you 
are usually allowed only about 30 seconds of CPU time for your script.
  How I do it is to make a file listing the ids of the users, and the 
ids of the emails they're to receive, then I have a cron job which sends 
out one a minute.
  For heavier loads, you could add another cron job to get two a 
minute, and so on.

Kae

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


Re: [PHP] Re: Mail() question

2003-09-09 Thread Jason Sheets
You can also use ini_set or .htaccess to increase the max execution time 
for the PHP script.  I have some reports that used to take 5 or 6 
minutes to run and this worked well, note though that IE has a timeout 
where it will close the connection if the page has not finished loading 
within n seconds, you can increase it in the registry.

Rather than waiting for mail() to complete for each e-mail you want to 
send an often recommended approach is writing the e-mail directly into 
the mail queue so your mail client picks it up when it runs.  Take a 
look at the PEAR Mail class, it is easy to use and supports multiple 
backends (http://pear.php.net).

Jason

Kae Verens wrote:

Ryan A wrote:

Hi everyone,
I am trying to create a new newsletter software as the ones i found on
hotscripts were just not good enough or mucho $$ which i dont have :-(
Have finished the basics but need some advise now.
I am using a mysql database instead of text files.
I have a table with the fields name and email, my questions are,
1:is it better to use a for loop and then send each mail?
2:should i first put all the names and addresses into an array?
3:Is it better to send each mail independantly or use BCC? (one mail
blast., will it work?)


For short lists of emails, yes, it should be fine to send them in one 
go (one after the other). However, it takes time to send an email, and 
you are usually allowed only about 30 seconds of CPU time for your 
script.
  How I do it is to make a file listing the ids of the users, and the 
ids of the emails they're to receive, then I have a cron job which 
sends out one a minute.
  For heavier loads, you could add another cron job to get two a 
minute, and so on.

Kae

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


[PHP] Re: mail question

2003-02-13 Thread Simon
Jonas Geiregat wrote:

is it possible to do something like mail([EMAIL PROTECTED],subject,hello
if($a){ return andreas; });
or what would be the best solution for this ?



i dont think that anybody understand this...


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




[PHP] Re: mail() question!

2002-11-25 Thread Nick Eby
you can use the (optional) headers argument to mail() and add the From
header:

mail ($to, $subject, $body, From: $from);

Beauford.2002 [EMAIL PROTECTED] wrote in message
000f01c294e0$6ce1fcd0$6401a8c0@p1">news:000f01c294e0$6ce1fcd0$6401a8c0@p1...
 Hi,

 I have a form where a user enters an email address. The contents of the
form
 are then sent to myself, which works fine. The problem is that the from
 field says it is from nobody - how can I get it to say it is from the
email
 address the user inputted - or is this possible?

 TIA





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