Re: mail()
| From: | Chris Moyer | Date: | Tue, 20 Jun 2000 03:24:30 +0000 |
| Subject: | Re: mail() | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-2268@lists.php.net to get a copy of this message | ||
On Mon, Jun 19, 2000 at 09:34:50PM +0200, Dominiq Callewaert wrote:
> if I put a form on a website that allows the visitor to enter a 'sendto'
> emailaddress and also a 'from' address,
> then I can use mail() in php to do the actual sending...
> but what happens if 2 bogus addresses are submitted?
> isn't there gonna be any infinite loop between my server and 'anywhere'
> because of 'not able to reach' type messages?
> and I'd rather not try it out :-)
>
> (as you can see I AM new to this :-), but there's nothing about it in the
> phpmanual mail() description (not that there should) and I have a deadline
> that's closer than I would like...)
First, no, it shouldn't create an infinite loop.. Otherwise the internet would
be flooded with mail like this.
Second, you could actually check the validity of the address before actually
sending the message. You can make sure it is valid with the imap_rfc parse
something function. You could probably also find a utility somewhere to
validte the address, as far as it actually existing too. Possibly by
posting data to a web page that does this.
-- Chris Moyer -- cmoyer@chekinc.com --
PHP Developer -- Chek.com