View previous topic :: View next topic |
Author |
Message |
nigelum -
Joined: 18 Feb 2006 Posts: 3
|
Posted: Sat Feb 18, 2006 10:59 am Post subject: My scripts won't email |
|
|
Hello everyone,
Ok...I'm a newbee at this so lets get that out of the way.
I've just set up a basic "contact" form on my website (hosted with Abyss) and I ran a simple little CGI script that would validate several fields, give a summary page of all the info that was input and send me email with the info that was filled in. Everything works except that when the user "Submits" the form, I don't get any of the info via eamil. Do I have to configure something on the server side of things, because I've done this type of script before with no problems. Below is a copy of the email part of the script.
if ([$yes] eq "on") {
$recip = "wimerinc\@yahoo.com" ;
open (MAIL, "|$mail_prog -t");
print MAIL "To: $recip\n";
print MAIL "Reply-to: $Contact_FirstName\n";
print MAIL "From: $Contact_FirstName\n";
print MAIL "Subject: Hey...someone has just filled out your contact form\n";
print MAIL "\n\n";
print MAIL "Robert\n" ;
print MAIL "\n" ;
print MAIL "Someone has just filled out your contact form on your website.\n" ;
print MAIL "\n" ;
print MAIL "----------------- information submitted -----------------\n" ;
print MAIL "First name: ".$Contact_FirstName."\n" ;
print MAIL "Last name: ".$Contact_LastName."\n" ;
print MAIL "Middle Initial: ".$Contact_MiddleInitial."\n" ;
print MAIL "Address".$Contact_StreetAddress."\n" ;
print MAIL "Address: ".$Contact_Address2."\n" ;
print MAIL "City: ".$Contact_City."\n" ;
print MAIL "State: ".$Contact_State."\n" ;
print MAIL "Zip: ".$Contact_ZipCode."\n" ;
print MAIL "Country: ".$Contact_Country."\n" ;
print MAIL "Home phone: ".$Contact_HomePhone."\n" ;
print MAIL "FAX: ".$Contact_FAX."\n" ;
print MAIL "Email: ".$Contact_Email."\n" ;
print MAIL "Website: ".$Contact_URL."\n" ;
print MAIL "\n" ;
print MAIL "Comments: ".$comments."\n" ;
print MAIL "\n\n";
close (MAIL);
} _________________ Robert D Wimer |
|
Back to top |
|
|
Yami King -
Joined: 08 Sep 2005 Posts: 120
|
Posted: Sat Feb 18, 2006 1:33 pm Post subject: |
|
|
print "Content-type: text/html\n\n" on top of page, should work |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Sat Feb 18, 2006 2:22 pm Post subject: Re: My scripts won't email |
|
|
nigelum,
Yami King is right. Your script lacks the required CGI headers. But there is another possible problem in Code: | open (MAIL, "|$mail_prog -t"); |
What is the value of $mail_prog? If it is not set, the function will fail.
We recommend that you check your cgi.log file for the full error report from Perl (if any). _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
Angelina_Apr -
Joined: 09 Dec 2009 Posts: 3 Location: Mexico
|
Posted: Mon Dec 28, 2009 6:08 pm Post subject: My scripts wont email |
|
|
One:
I cannot test this for you since I just cleaned up my scripts.ini in order to fix problem with RC4S script, but I have one query. Does this give a report of what it will be cleaned out of the ini file? If not, would it be possible to add some type of report, I would like to know what is being removed.
Nyn
bytheway soundtaxi has Christmas promotion open yet. That is a must have deal for tons of multimedia features available in their software pack _________________ hey guys, who has the balls? :) |
|
Back to top |
|
|
|