PHP Applications
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Applications

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old July 10th, 2007, 12:14 PM
luper luper is offline
Registered User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Jul 2007
Posts: 1 luper User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 m 42 sec
Reputation Power: 0
Php server email problem

Hey,
I got a website using PHPBE at ncbookexchange.com

The problem is that the contact forms aren't sending emails. This is a HUGE problem because it owuld explain why the popularity sucks.


Any ideas as to why this would happen? I'm pretty sure that the forms worked when i first installed the script but I never really checked them until recently. Help is urgent as school is beginning soon. Thanks.
-luper

ps: No errors in error log..

Reply With Quote
  #2  
Old July 11th, 2007, 03:44 AM
akong_mata akong_mata is offline
Registered User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Jun 2007
Location: makati city
Posts: 15 akong_mata User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 h 21 m 57 sec
Reputation Power: 0
Smile

check your script on the "contact form" you have, maybe there's a slight miss from your scripts.. because if you're the one who's making it, it's easy for you to troubleshoot that problem since you don't have to work on the server.. can i see the link to that contact form? there's a simple illustration to sending details in PHP and have the below script as your guide.. i'm giving you such basic script but the function is the same, just get the logic from it.

code :
<?php
$to = "someone@exampleDOTcom";
$subject = "Test mail";
$message = "Hello! This is a simple email message.";
$from = "someonelse@exampleDOTcom";
$headers = "From: $from";
mail($to,$subject,$message,$headers);
echo "Mail Sent.";
?>

P.S. are you the who's developing the system?

Reply With Quote
  #3  
Old August 13th, 2007, 03:24 PM
hammer65 hammer65 is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Aug 2007
Location: Nebraska
Posts: 55 hammer65 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 12 h 16 m 53 sec
Reputation Power: 3
You would need to check first if you are receiving the form values from the form, if you are, it could be that the mail did get sent, but that it ran into trouble afterwards.

If the script that you are using is using the mail function. Then there is a number of things you should realize about sending mail this way.

First of all there is a common misconception that mail() actually sends mail. It doesn't. That function simply takes the input you give it and formats it as a MIME message, does minimal filtering and checking and then hands the message off to a MTA (mail tranfer agent like Sendmail, Exim or Postfix). Once that transfer is complete, PHP has no way of knowing when something goes wrong, further down the line.

The MTA sends the message, and after that it can go through numerous servers and spam filters before reaching a destination. mail() will return a boolean (true/false) to indicate that the message was transferred to the MTA, but no more than that.

You would need to send additional headers along with the message to ensure that it can get through the spam filters. Some mail systems are notorious for rejecting mail sent via PHP.

One of the more important headers is the return-path. It is an email address that is set to receive bounced emails. Obviously, if you are a spammer, you don't want your bounced emails, so you won't set that header or you might use a bogus address. Spam filters check for this sort of thing. Hotmail also tends to like to see names next to email addresses for instance.

I would recommend using a pre written class such as PHPMailer to send mail, since all these issues have been worked out in that code. Otherwise, sending mail with PHP gets really complicated.

When using user input with email, you need to take precautions against mail injection. If you don't, a spammer will eventually find your form (they actively search for these) and use your form to send spam. Your IP address or domain could end up on a blacklist. The cost of getting whitelisted with some email services is more than you want to know.

Reply With Quote
  #4  
Old December 1st, 2008, 06:13 AM
amber.long83 amber.long83 is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Nov 2008
Posts: 32 amber.long83 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 h 6 m 47 sec
Reputation Power: 2
Reply

Hi,

Can u give me code of your form so that its easy to find the problem with code.

Thanks

Reply With Quote
  #5  
Old December 1st, 2008, 06:14 AM
Osiris Osiris is offline
Contributing User
Codewalkers Novice (500 - 999 posts)
 
Join Date: May 2008
Location: Sussex
Posts: 566 Osiris User rank is Private First Class (20 - 50 Reputation Level)Osiris User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Week 2 Days 19 h 54 m 33 sec
Reputation Power: 2
I would advise against resurrection of threads which are over a year old :p
__________________
~~==~~ Whoever said nothing is impossible never tried pushing a revolving door ~~==~~

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Applications > Php server email problem


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump




 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

Request Your Free Technology Downloads!
 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

Request Your Free Technology Downloads!
 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

Request Your Free Technology Downloads!
 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

Request Your Free Technology Downloads!
 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

Request Your Free Technology Downloads!
 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 




© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 6 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek