else { $formFields = array($name,$subject,$message);//set array of form fields to be cleaned $cleanedFormFields = array();//set array that will hold clean fields
//config.php /*********************************************** Personalize the contact form by editing the details below. ************************************************/
/* 1. Fill in your email address, the location of the CSS file you'd like to use for the form, a page title (seen in the top left corner of the browser window), a page heading and an optional greeting. */
$myEmail = 'name@isp.com';/* The email address you would like to use */ $myCSSfile = 'Design.css'; /* The location of your CSS file */ $myPageTitle = '';/* The title of this page */ $myPageHeading = '';/* The page heading */ /* The greeting to display above the form: */ /* If you'd like no greeting to appear remove the text and leave ""; instead */ $myGreeting = ''; /* 2. Set your custom Error messages.*/ /* If there is an error show this 'warning' message: */ /* If you'd like no warning to appear remove the text and leave ""; instead */ $errorMessageWarning = 'Sorry, but there was a problem(s) with your submission:'; /* The following are used to display error messages for each type of error */ $invalid_full_name_message = 'Please correct your Name';/* Inavlid Full Name message */ $invalid_email_address_message = 'Please correct your Email Address';/* Invalid Email Address message */ $invalid_subject_message = 'Please correct your Email Subject';/* Invalid Subject message */ $invalid_comment_message = 'Please correct your Message';/* Invalid Comment message */
/* 3 Set your custom email messages for sent and not sent */ /* If the email was successfully sent display the following message: */ $email_successfuly_sent= '<strong>Your message was sucessfully sent!</strong>'; /* If the email is undeliverable display the following message: */ $email_undeliverable = 'Your message <strong>could not be sent</strong>. Please try again.';
/*** That's it!! You're done! ***/
?>
I am pretty sure the error lies somewhere in those files I just can't seem to find it.
Thanks in advance for all of your help!
I am a metal monkey!
Administrator Community Supporter?
Jedai Sword Master
Gender:
Posts: 5799
46391 credits Members referred : 3
Global Moderator Community Supporter?
Jedai Sword Master
Gender:
Posts: 6691
34714 credits Members referred : 374
It's time to use PHP5!
« Reply #2 on: Jun 12, 2007, 08:32:11 pm »
what is the content from the mail script
and try different email addresses (something other then hotmail and gmail)
World Wide Whale
Gender:
Posts: 154
1052 credits Members referred : 0
« Reply #3 on: Jun 12, 2007, 08:35:15 pm »
The problem is that the form says it sent, but the email never comes through. I have tried 3 different email addresses, one through a GoDaddy account, one through a company account & another gmail account.
Here is the contact form code....
Code:
<?php
/******************************** contactForm(): Generates a standard contact form: Name, Email Address, Subject, Message ********************************/
function displayContactForm() {
global $name; global $email; global $subject; global $message;
Global Moderator Community Supporter?
Jedai Sword Master
Gender:
Posts: 6691
34714 credits Members referred : 374
It's time to use PHP5!
« Reply #4 on: Jun 12, 2007, 08:38:50 pm »
i asked for the email code
World Wide Whale
Gender:
Posts: 154
1052 credits Members referred : 0
« Reply #5 on: Jun 12, 2007, 09:11:08 pm »
Oops, sorry
Code:
<?php
class email { var $email_to; var $email_from; var $email_subject; var $email_message; var $email_headers; function email($to,$subject,$message,$headers,$email_from) { $ip = $_SERVER['REMOTE_ADDR']; $browser = $_SERVER['HTTP_USER_AGENT']; $refer = $_SERVER['HTTP_REFERER']; $this->email_to = $to; $this->email_from = $email_from; $this->email_subject = $subject;
Global Moderator Community Supporter?
Jedai Sword Master
Gender:
Posts: 6691
34714 credits Members referred : 374
It's time to use PHP5!
« Reply #6 on: Jun 12, 2007, 09:45:18 pm »
ok, do you tried to send a mail to some non webmail account (some pop account from your ISP for example)?
Community Supporter?
Bill Gates is my home boy
Gender:
Posts: 619
5660 credits Members referred : 0
www.dg9.org
« Reply #7 on: Jun 13, 2007, 03:46:04 am »
I'm actually having problems with my mail sending too... I guess mine is caused by being blocked as spam since my shared hosts has been used by spammers to send out spam. My problem would now turn to how to get my server off the black-list...
I'm actually having problems with my mail sending too... I guess mine is caused by being blocked as spam since my shared hosts has been used by spammers to send out spam. My problem would now turn to how to get my server off the black-list...
yes thats a big problem, since Google has a kind of spam filter which is based on votes. The best thing is to use SMTP mail from a server which is used only by yourself.
I am a metal monkey!
Administrator Community Supporter?
Jedai Sword Master
Gender:
Posts: 5799
46391 credits Members referred : 3
« Reply #9 on: Jun 13, 2007, 12:23:07 pm »
Some hosts do not allow the use of mail()
In that case you should use SMTP (phpMailer can help with that)
Also many mail servers do not have reverse DNS entries so email will never be delivered.
ok, do you tried to send a mail to some non webmail account (some pop account from your ISP for example)?
I have sent it to a GoDaddy Account, a Gmail Account & an account from her real estate company. None of them seem to be working, we have checked the spam folders too. I use the same script on another site & it works fine. All I changed was the email address, the design file and the header & message, it was using a gmail account too. Works perfectly....
I have temporarily taken it down so she doesn't loose messages.
Any advice would be appreciated.
Thanks
Global Moderator Community Supporter?
Jedai Sword Master
Gender:
Posts: 6691
34714 credits Members referred : 374
I have sent it to a GoDaddy Account, a Gmail Account & an account from her real estate company. None of them seem to be working, we have checked the spam folders too. I use the same script on another site & it works fine. All I changed was the email address, the design file and the header & message, it was using a gmail account too. Works perfectly....
I have temporarily taken it down so she doesn't loose messages.
Any advice would be appreciated.
Thanks
than check if the mail() function is allowed by your hosting provider (or use a simple mail() example from the manual)
World Wide Whale
Gender:
Posts: 154
1052 credits Members referred : 0
« Reply #13 on: Jun 14, 2007, 07:34:48 pm »
It's on the same host as the one that works....
Global Moderator Community Supporter?
Jedai Sword Master
Gender:
Posts: 6691
34714 credits Members referred : 374
It's time to use PHP5!
« Reply #14 on: Jun 14, 2007, 07:39:29 pm »
ok try:
if (mail('your@mail.com', 'some subject', 'Hello world!')) echo 'mail send';?>
in some new test script and tell me what you see...
World Wide Whale
Gender:
Posts: 154
1052 credits Members referred : 0
« Reply #15 on: Jun 14, 2007, 08:13:19 pm »
I am sorry I am working on about 5 different projects right now.... Where should I put that script?
Global Moderator Community Supporter?
Jedai Sword Master
Gender:
Posts: 6691
34714 credits Members referred : 374