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:
Dell PowerEdge Servers
  #1  
Old July 10th, 2007, 11:14 AM
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, 02: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, 02: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: 1
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
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!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five &quot;checkpoints&quot; for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

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





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway