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

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:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old August 31st, 2005, 03:54 PM
82GT 82GT is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 3 82GT User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Problems with SMTP

I suspect that there may be a problem with the PHP installation concerning SMTP and sending emails on a Windows server. Scripts that I have used several times on Linux servers are not working on a certain Windows server. Here is the error message:
Warning: mail() [function.mail]: SMTP server response: 551 relaying denied in F:\wwwmail.php on line 15
Mail sent to yourname@yourdomain.com
I'm using two files to send the email. One is a form page:
<form name="form1" method="post" action="mail.php">
<table width="361" border="1">
<tr>
<td width="212"><input name="name" type="text" id="name"></td>
</tr>
<tr>
<td><input name="email" type="text" id="email"></td>
</tr>
<tr>
<td><textarea name="message" id="message"></textarea></td>
</tr>
<tr>
<td><input type="submit" name="Submit" value="Send"></td>
</tr>
</table>
</form>
The other file, mail.php contains this code:
php Code:
Original - php Code
  1.  
  2. <?
  3. $to = "yourname@yourdomainname.com";
  4. $name = $_POST['name'];
  5. $email = $_POST['email'];
  6. $message = $_POST['message'];
  7. $headers = "From: $emailn";
  8. mail($to, $name, $message, $headers);
  9. print("Mail sent to $to");
  10. ?>

If someone could determine if there is a problem with the code in the files that I am using, or if the host has a problem with the PHP installation, I would appreciate it. Also, the code from A. Walsh's tutorial which I have used with success numerous times, also would not work on this particular server. Thanks for your help.

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Installation > Problems with SMTP


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


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





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