Re: [cgiwrap-users] Sending email using perl scripts.
Brought to you by:
nneul
From: David D. <dav...@ol...> - 2001-10-03 16:45:33
|
My emails are being sent. The problem is the response to the web browser. If the name on the email has a period in it (som...@so...) a script error is produced. If the email does not have a period in it, the response page is displayed. I attached two gifs showing what happens (if they made it through). The error log has a malformed header error logged by cgiwrap. Thank you for the help. David The following message was sent by Piotr Klaban <ma...@ma...> on Wed, 3 Oct 2001 08:57:52 +0200. > On Tue, Oct 02, 2001 at 05:55:03PM -0400, David DelBiondo wrote: > > I added the error trapping like you said, but unfortunally it still did > > > not work. > > > > open (MAIL, "|$mailprog -t 2>&1") || &Error('Unable to Open Sendmail'); > > If you use perl <5.6 then it is probable, that the above code > do not catch the error. Then you have to check close(MAIL) return code: > > close(MAIL) || &Error("Unable to send mail: $!"); > > -- > Piotr Klaban > > |