Failure of sendmail() causes the registration to fail and the database to be left with the added record

[prev] [thread] [next] [lurker] [Date index for 2003/12/4]

From: Shlomi Fish
Subject: Failure of sendmail() causes the registration to fail and the database to be left with the added record
Date: 22:06 on 04 Dec 2003
Hi!

I was finally able to debug the problems that I encountered when using the 
registration form on YAPC. The problem is in the line:

sendmail(%mail) or die $Mail::Sendmail::error unless $ENV{YAPCOM_NOMAIL};

in YAPC::Organizer.

Now, this line causes the entire CGI script to die and the server to display a 
strange internal error. I suggest we trap this error, display something nice 
to the user, and print some useful diagnostics to stderr.

I also noticed that the record of the person was left in the database which 
can prevent a re-registration.

Regards,

	Shlomi Fish
-- 

---------------------------------------------------------------------
Shlomi Fish      shlomif@xxxx.xxx.xx
Homepage: http://t2.technion.ac.il/~shlomif/

I don't believe in fairies. Oops! A fairy died.
I don't believe in fairies. Oops! Another fairy died.

Generated at 21:20 on 06 Dec 2003 by mariachi 0.51