RE: [PHP-DB] Mail() - Preposterous Accusation

2004-04-09 Thread -{ Rene Brehmer }-
I think where the bounces goes is really a matter of mailserver 
configuration more than PHP itself... not sure about that really though ... 
I only use the mail() function to send mail from the website to the 
webmaster ... so that I don't have to expose the actual email addy on the 
site itself... so never had a bounce...

Rene

At 00:25 09-04-2004, Ryan Jameson (USA) wrote:
He says later in his email that:

The reason I mention this is because any email delivery failures will
not be sent back to you, but to our servers (due to the way that PHP
writes the email headers when using the mail() command).
... Is there a way to get the bounces to go to the reply to address?
I've never really cared to, but now that he mentions it ... It would be
nice.
 Ryan
--
Rene Brehmer
aka Metalbunny
~ If you don't like what I have to say ... don't read it ~

http://metalbunny.net/
References, tools, and other useful stuff...
Check out the new Metalbunny forums @ http://forums.metalbunny.net/
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP-DB] Mail() - Preposterous Accusation

2004-04-09 Thread -{ Rene Brehmer }-
At 03:02 09-04-2004, Jochem Maas wrote:
Justin Patrin wrote:

Sounds alot more like advertising than sanity ... there's not much
trickery in using the mail() function ... only if you want to attach
files can it get a bit tricky (encoding the file and inserting the
result), but in reality, there's not much in using that function
properly ...
you'll find that phpmailer is a quite nice wrapper for the mail function - 
it presents 1 clear object interface and handles all the mundane tasks of 
CC, BCC, Attachments, Encoding, MIME etc. I have been using it for quite 
sometime now. just drop 2 files into your project include/class directory 
and your pretty much off using a simple Mailer object.

I think advertising is a bit harsh considering it free software. I usually 
interested in what people think are good tools/classes, even if its the 
writer (is that even the case here?). let the code speak for itself.
I meant more the wording in that paragraph ... to me it sounds like someone 
that's given up figuring out how to do it himself. I've always learned, in 
the classic programming, that you need to learn how it's done, before you 
start using others code to do the work. In my oppinion, if you use a module 
you don't fully understand how works, or why it works how it does, then 
you'll never be able to take full advantage of it, or know what to do 
if/when errors occurs.

incitement_to_riot
code re-use is good right? which is why ideas like PEAR a good for 
everyone. and in the interest of starting a flame war (which there seems 
to be a bit of going around lately) I'll say that IMO most of PEAR (incl. 
the core is bloatware) and that PHP5 will make alot of it redundant, they 
should tear down all but the package manager and a few the gems and start 
again.
/incitement_to_riot
Actually ... in school (Advanced Computer Studies = programming/system 
development) we basically learn that copy/paste is the most important 
function for a programmer ... despite the crudeness of that statement, 
it's just a matter of saying that we shouldn't rewrite everything 
everytime, but try to reuse as much of the code as entirely possible ... so 
yes, code reuse is good, but if you don't understand the code you reuse, 
you're not really benefitting much of it (other than ending in the same 
category as script-kiddies)...

Rene

--
Rene Brehmer
aka Metalbunny
~ If you don't like what I have to say ... don't read it ~

http://metalbunny.net/
References, tools, and other useful stuff...
Check out the new Metalbunny forums @ http://forums.metalbunny.net/
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP-DB] Mail() - Preposterous Accusation

2004-04-09 Thread Manuel Lemos
Hello,

On 04/08/2004 08:25 PM, Ryan Jameson wrote:
... Is there a way to get the bounces to go to the reply to address?
I've never really cared to, but now that he mentions it ... It would be
nice.
If you use this class, you can just specify the bounce address in 
Return-Path header and the class will take care of composing and sending 
the message in an appropriate way to make the bounces go to the 
specified address when possible. Keep in mind that just specifying the 
Return-Path header when you use the mail() function directly will not 
work. This class does some magic to make it happen depending on your system.

http://www.phpclasses.org/mimemessage

--

Regards,
Manuel Lemos
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/
Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP-DB] Mail() - Preposterous Accusation

2004-04-09 Thread Justin Patrin
Jochem Maas wrote:
Justin Patrin wrote:


accurate. If it is, why hasn't the mail function been modified in 
the more recent builds? I've been using PHP since it was invented  
never had a problem with mail.

Also note that your form page is currently using the PHP mail() 
function, which doesn't work very well anymore.  You would be best 
advised to use another solution (one example is PHPMailer -
http://phpmailer.sf.net/) for doing PHP script-based email delivery.




Sounds alot more like advertising than sanity ... there's not much
trickery in using the mail() function ... only if you want to attach
files can it get a bit tricky (encoding the file and inserting the
result), but in reality, there's not much in using that function
properly ...


you'll find that phpmailer is a quite nice wrapper for the mail function 
- it presents 1 clear object interface and handles all the mundane tasks 
of CC, BCC, Attachments, Encoding, MIME etc. I have been using it for 
quite sometime now. just drop 2 files into your project include/class 
directory and your pretty much off using a simple Mailer object.

I think advertising is a bit harsh considering it free software. I 
usually interested in what people think are good tools/classes, even if 
its the writer (is that even the case here?). let the code speak for 
itself.
I didn't mean to say that phpmailer isn't useful, just that using mail() 
should work fine for simple mailing. I definately agree with using a 
library, be it phpmailer or PEAR::Mail for anything more than a simple 
message.

incitement_to_riot
code re-use is good right? which is why ideas like PEAR a good for 
everyone. and in the interest of starting a flame war (which there seems 
to be a bit of going around lately) I'll say that IMO most of PEAR 
(incl. the core is bloatware) and that PHP5 will make alot of it 
redundant, they should tear down all but the package manager and a few 
the gems and start again.
/incitement_to_riot

Yes, code re-use is good. I won't get into the PEAR vs. other stuff 
argument again, I've done it too much lately. Just look for me and 
Manuel Lemos in the archives. ;-) I will say one thing: I like PEAR 
because it's all built around the same framework and everything has a 
similar interface to similar functionality. It has never felt like 
bloatware to me and never will, all of the given functionality is very 
useful.

...




--
paperCrane Justin Patrin
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP-DB] Mail() - Preposterous Accusation

2004-04-08 Thread -{ Rene Brehmer }-
At 00:01 08-04-2004, Ryan Jameson (USA) wrote:
I know this isn't technically DB related but this is the list that I
use. I'd just like to know if anyone else thinks the below statement is
accurate. If it is, why hasn't the mail function been modified in the
more recent builds? I've been using PHP since it was invented  never
had a problem with mail.
Also note that your form page is currently using the PHP mail()
function, which doesn't work very well anymore.  You would be best
advised to use another solution (one example is PHPMailer -
http://phpmailer.sf.net/) for doing PHP script-based email delivery.


Sounds alot more like advertising than sanity ... there's not much trickery 
in using the mail() function ... only if you want to attach files can it 
get a bit tricky (encoding the file and inserting the result), but in 
reality, there's not much in using that function properly ...

Rene

--
Rene Brehmer
aka Metalbunny
~ If you don't like what I have to say ... don't read it ~

http://metalbunny.net/
References, tools, and other useful stuff...
Check out the new Metalbunny forums @ http://forums.metalbunny.net/
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP-DB] Mail() - Preposterous Accusation

2004-04-08 Thread Ryan Jameson (USA)
He says later in his email that:

The reason I mention this is because any email delivery failures will
not be sent back to you, but to our servers (due to the way that PHP
writes the email headers when using the mail() command).

... Is there a way to get the bounces to go to the reply to address?
I've never really cared to, but now that he mentions it ... It would be
nice.

 Ryan

-Original Message-
From: -{ Rene Brehmer }- [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 08, 2004 6:08 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-DB] Mail() - Preposterous Accusation

At 00:01 08-04-2004, Ryan Jameson (USA) wrote:
I know this isn't technically DB related but this is the list that I 
use. I'd just like to know if anyone else thinks the below statement is

accurate. If it is, why hasn't the mail function been modified in the 
more recent builds? I've been using PHP since it was invented  never 
had a problem with mail.

Also note that your form page is currently using the PHP mail() 
function, which doesn't work very well anymore.  You would be best 
advised to use another solution (one example is PHPMailer -
http://phpmailer.sf.net/) for doing PHP script-based email delivery.


Sounds alot more like advertising than sanity ... there's not much
trickery in using the mail() function ... only if you want to attach
files can it get a bit tricky (encoding the file and inserting the
result), but in reality, there's not much in using that function
properly ...


Rene

--
Rene Brehmer
aka Metalbunny

~ If you don't like what I have to say ... don't read it ~

http://metalbunny.net/
References, tools, and other useful stuff...
Check out the new Metalbunny forums @ http://forums.metalbunny.net/

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

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



Re: [PHP-DB] Mail() - Preposterous Accusation

2004-04-08 Thread Justin Patrin
Ryan Jameson wrote:

He says later in his email that:

The reason I mention this is because any email delivery failures will
not be sent back to you, but to our servers (due to the way that PHP
writes the email headers when using the mail() command).
... Is there a way to get the bounces to go to the reply to address?
I've never really cared to, but now that he mentions it ... It would be
nice.
 Ryan

-Original Message-
From: -{ Rene Brehmer }- [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 08, 2004 6:08 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-DB] Mail() - Preposterous Accusation

At 00:01 08-04-2004, Ryan Jameson (USA) wrote:

I know this isn't technically DB related but this is the list that I 
use. I'd just like to know if anyone else thinks the below statement is


accurate. If it is, why hasn't the mail function been modified in the 
more recent builds? I've been using PHP since it was invented  never 
had a problem with mail.

Also note that your form page is currently using the PHP mail() 
function, which doesn't work very well anymore.  You would be best 
advised to use another solution (one example is PHPMailer -
http://phpmailer.sf.net/) for doing PHP script-based email delivery.


Sounds alot more like advertising than sanity ... there's not much
trickery in using the mail() function ... only if you want to attach
files can it get a bit tricky (encoding the file and inserting the
result), but in reality, there's not much in using that function
properly ...
Rene

--
Rene Brehmer
aka Metalbunny
~ If you don't like what I have to say ... don't read it ~

http://metalbunny.net/
References, tools, and other useful stuff...
Check out the new Metalbunny forums @ http://forums.metalbunny.net/
--
PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit:
http://www.php.net/unsub.php
Maybe add the appropriate header to the headers parameter? I'm using the 
mail() function and getting bounces just fine. Perhaps set up a mail 
alias/forwarding for the user that the script runs as?

--
paperCrane Justin Patrin
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php