Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Re: [dlarocque] Sendmail error message 16777215

Quote Reply
Re: [dlarocque] Sendmail error message 16777215 In reply to
Hi,

Try adding this script to your server (save as test_mail.cgi). Be sure to update the path to sendmail ($sendmail) and the email to send the test to ($to);

Code:
#!/usr/bin/perl

use CGI::Carp qw(fatalsToBrowser);
use strict;

my $sendmail = qq|/usr/lib/sendmail|;
my $to = q|you@yourdomain.com|;

open(MAIL, "|$sendmail -t") || die "Error: $!";
print MAIL "To: $to \n";
print MAIL "From: $to \n";
print MAIL "Reply-to: $to \n";
print MAIL "Subject: Test \n\n";
print MAIL "Thanks for contacting us. This is just a test email \n\n";
print MAIL "\n";
close(MAIL);

Then, CHMOD to 755, and try running from your server.

If there is a problem with sendmail, then the problem should occur in this script too.

Hope that helps.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Subject Author Views Date
Thread Sendmail error message 16777215 dlarocque 4468 Jul 28, 2007, 8:04 AM
Thread Re: [dlarocque] Sendmail error message 16777215
Andy 4390 Jul 29, 2007, 5:36 AM
Thread Re: [Andy] Sendmail error message 16777215
dlarocque 4394 Jul 29, 2007, 7:39 AM
Thread Re: [dlarocque] Sendmail error message 16777215
Andy 4381 Jul 30, 2007, 1:50 AM
Thread Re: [Andy] Sendmail error message 16777215
dlarocque 4412 Jul 30, 2007, 8:25 AM
Thread Re: [dlarocque] Sendmail error message 16777215
brewt 4390 Jul 30, 2007, 12:09 PM
Post Re: [brewt] Sendmail error message 16777215
dlarocque 4372 Jul 30, 2007, 12:37 PM