Page 1 of 1

Mail function error handling, multi-recipient methods...

Posted: Sat Sep 27, 2003 2:06 pm
by Dodger
Hey All,

Is it possible to return any info on the error with the mail function, or is it just simply "True or False"?

It would be nice to know why the message was not delivered, eg: "Over Quota" etc.

If not in the mail function, is it possible some other way?

Also, what is the best way to send mail to multiple recipients, looping with a single recipient or multiple recipients in one function call?

TIA.

Dodger.

Posted: Sat Sep 27, 2003 3:09 pm
by qads
the mail function only retuerns true or flase, i have't seen anything that can tell you anything after the email has been sent.


sending emails with a loop means no one knows who else you emailed, it also is slow as you prolly know.

sending email with bunch of emails put together is fast, but every one who you emailed will know who else you emailed...spam :P

Posted: Sat Sep 27, 2003 3:14 pm
by Dodger
Unless the addresses are in the bcc field...

Posted: Sat Sep 27, 2003 8:00 pm
by Cruzado_Mainfrm
um, maybe you might want to write a socket version of the mail function, mailex(); and get returns, u can start by looking at current web mail applications written in php

Posted: Sun Sep 28, 2003 5:28 am
by Dodger
Thanks, I'll see what I can find.

D.