Re: [cgiwrap-users] Sending email using perl scripts.
Brought to you by:
nneul
From: David D. <dav...@ol...> - 2001-10-02 21:42:52
|
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'); I am going to try a diffrent script and see if the results are the same. I will let you know what happens. Thanks, David Joe Hourcle wrote: > > On Tue, 2 Oct 2001, David DelBiondo wrote: > >> I believe you are correct in thinking it is my script. I also have a >> web based email program that I am using, which is written in perl, >> that works fine. The line that calls the sendmail program I altered >> as follows. $mailprog = '/usr/sbin/sendmail 2>&1'; but it did not >> work I still received the error. Again, it is only when I put a >> period in the email name. I can use underscores and dashes, they >> work. But that period? >> >> Thanks for the help. Let me know if you have any other thoughts. > > > The '2>&1' needs to go at the end of the command. > [It redirects stderr to stdout] > > >From the way you have 'mailprog' defined at the beginning, I'm guessing > that you're calling it elsewhere, and passing other arguments to it. > You'll need to find where it's actually called, and place the redirection > after all other args. > > ----- > Joe Hourcle > > > _______________________________________________ > cgiwrap-users mailing list > cgi...@li... > https://lists.sourceforge.net/lists/listinfo/cgiwrap-users > > > |