visitor (0 QPoints)
  • FR
  • EN
  • NL
  • DE
  • ES
315 experts, 1193 registered users, 1659 questions already answered
European Experts Exchange, the very best site for high-quality IT solutions

New Improved Search!

 


05/10/2011 1h30 : Steve Jobs is dead, the father of Apple ][ is gone, we are all orphaned.

ALL :: ZONES :: PHP problem with webhost


By: dewy U.S.A.  Date: 26/01/2003 00:00:00  English  Points: 300 Status: Answered
Quality : Excellent
Hi! I recently signed up at coolfreepages.com (with PHP support) and used Eordering Complete to design my simple, online shopping cart. However when I test my dummy shop at silvermoon.coolfreepages.com and try to submit my "order" I get the error "Fatal error: Call to undefined function: mail() in...." Does anyone know how to solve this? Is the problem related to my software or coolfreepages.com?
By: Phetu Date: 26/01/2003 06:00:00 English  Type : Answer
Hi,

Take a look at this page:
<A HREF="http://coolfreepages.com/faq.html">http://coolfreepages.com/faq.html</a>

You will see this secruty warning:

Security
Why I can not run functions mail() and phpinfo()
For security reasons those functions and all sockets functions are disabled. Please do not use it in your PHP programs.


That's why!

Phetu

By: VGR Date: 27/01/2003 07:06:00 English  Type : Assist
you have alternatives.
You may emulate the mail() function so that the CLIENT's mail client is called in stead of the SERVER's (which is deactivated by the ISP, sadly).

if ($globEmail==1) { // this is a global setting depending on the ISP ; for you it's clearly = 0
mail("$globFAdmin", "subject", "Admin message :\n\nsome body text\nLe robot de service.","From: contact@$SERVER_NAME\nReply-To: contact@$SERVER_NAME\nX-Mailer: PHP/" . phpversion()); // avec extra headers (à voir)
} else { // on pallie
echo "<FORM NAME=mailform ACTION=\"mailto:$globFAdmin?Subject=subject\" method=POST ENCTYPE=\"text/plain\">";
echo "<input type=hidden name=corps value=\"Admin message :\n\nyour body text\n\nLe robot de service.\">";
echo "</FORM>";
echo "<script>document.mailform.submit();</script>";
} // mél simple ou ersatz compliqué 8-))


You also have a possibility using my server, who offers free webmail(), callable from your PHP page ;-))

interested ?
By: lexxwern Date: 27/01/2003 07:58:00 English  Type : Assist
<A HREF="http://members.lycos.co.uk/">http://members.lycos.co.uk/</a> is a free web host support PHP with mail() .. Good Luck!

Do register to be able to answer

EContact
browser fav
page generated in 341.784950 milliseconds

Why Google AdSense ads ?

compteur
 Ranking-Hits PageRank for this page