PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old May 26th, 2004, 12:45 PM
CHornJr's Avatar
CHornJr CHornJr is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Location: New York City
Posts: 236 CHornJr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 1 h 50 m 36 sec
Reputation Power: 7
Send a message via AIM to CHornJr Send a message via MSN to CHornJr Send a message via Yahoo to CHornJr
Question Problem sending E-Mail from a website via php

I am trying to send an E-Mail from my site, suanhacky.org. the E-Mail address is webmastera@suanhacky.org. I get the following error trying to send a E-Mail there...
Quote:
webmasterA@suanhacky.org... User unknown
HTTP/1.1 200 OK
Date: Wed, 26 May 2004 16:35:39 GMT
Server: Apache/1.3.29 (Unix) PHP/4.3.2
X-Powered-By: PHP/4.3.2
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html

0

When I send an E-Mail to my regular address it works fine, but I get the above error when I send to any @suanhacky.org addresses. The E-Mail does exsist and works cause when I send a E-Mail out via Outlook express to it I get the E-Mail no problem.

here is the code I used to test when I first saw the problem
PHP Code:
<?php
$message1
='to webmasterA';
$message2='to regular';
$subject='Test E-Mail from SUahacky.org';
$to1='webmasterA@suanhacky.org';
$to2='regular@emailaddress.com';/* Works */
mail($to2,$subject,$message2);/* Works */
mail($to1,$subject,$message1);/* Gives me the error message */
?>

Any help on resolving this problem would be greatly appreciated
__________________
CHornJr
"One day I'll know what I am doing"
My Blog
Suanhacky Lodge #49
Rebel Squadrons

Reply With Quote
  #2  
Old May 26th, 2004, 12:55 PM
dhouston's Avatar
dhouston dhouston is offline
Contributing User
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: May 2003
Location: Tennessee
Posts: 1,355 dhouston User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to dhouston
Could be a spam blocker, I guess. Are these email addresses on the same host?
__________________
Please don't PM me asking for solutions outside the scope of a thread.
Keeping all responses in a thread stands to help others who come along later,
which is after all what this forum's all about.

Reply With Quote
  #3  
Old May 26th, 2004, 01:13 PM
CHornJr's Avatar
CHornJr CHornJr is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Location: New York City
Posts: 236 CHornJr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 1 h 50 m 36 sec
Reputation Power: 7
Send a message via AIM to CHornJr Send a message via MSN to CHornJr Send a message via Yahoo to CHornJr
Quote:
Originally Posted by dhouston
Could be a spam blocker, I guess. Are these email addresses on the same host?


the webmastera@suanhacky.org E-Mail address is a forwarding E-mail address created in yahoo MyDomains it goes to my reqular E-Mail address which is a road runner E-Mail address

Reply With Quote
  #4  
Old May 26th, 2004, 04:41 PM
dhouston's Avatar
dhouston dhouston is offline
Contributing User
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: May 2003
Location: Tennessee
Posts: 1,355 dhouston User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to dhouston
If roadrunner's using SpamAssassin or something similar, there could definitely be a spam blocking problem. For example, I recently had to upgrade SpamAssassin on my mail server because there's a problem with Message-IDs in the headers under some circumstances. This'll only matter, in many cases, if you've got other factors causing a message to be flagged for spam, which could definitely be more likely to happen from a script than from a bona-fide mail client. I guess this could also be the case if the host of suanhacky.org is running filters, since it's possibly the fact that the mail's going through a script that's flagging it (assuming this is a spam issue).

Reply With Quote
  #5  
Old May 26th, 2004, 05:06 PM
CHornJr's Avatar
CHornJr CHornJr is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Location: New York City
Posts: 236 CHornJr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 1 h 50 m 36 sec
Reputation Power: 7
Send a message via AIM to CHornJr Send a message via MSN to CHornJr Send a message via Yahoo to CHornJr
When I send an E-Mail from my road runner account to any @suanhacky.oeg E-mail address it goes through fine with no problem

Reply With Quote
  #6  
Old May 26th, 2004, 11:05 PM
Pheifel Pheifel is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Location: Denmark
Posts: 174 Pheifel User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 43 m 46 sec
Reputation Power: 5
Send a message via MSN to Pheifel
... hmmm..... i would guess on a error in the setup of php ?!

Reply With Quote
  #7  
Old May 27th, 2004, 08:51 AM
dhouston's Avatar
dhouston dhouston is offline
Contributing User
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: May 2003
Location: Tennessee
Posts: 1,355 dhouston User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to dhouston
Right, ChornJr, but when you send mail from a script, you're adding a whole new potential set of spam flags because the mail's being relayed. Furthermore, you're setting the mail up to have more than one Message-ID because of the relay, and this is precisely the problem I ran into, which was fixed in a recent version of SpamAssassin. That you can send mail successfully one way indicates that there's not a problem with the mail account but rather that there's one with the other way you're sending mail, which in this case is a script. What I'm suggesting is that whoever's hosting suanhacky.org is running filters that don't trip when you send mail by a conventional method but that do trip when you send mail via a script. And I'm proposing that you ask your host if that could be what's happening. Telling me that you can send mail by a conventional method without problems after I've given you a plausible other explanation doesn't get you anywhere.

Reply With Quote
  #8  
Old May 27th, 2004, 02:15 PM
CHornJr's Avatar
CHornJr CHornJr is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Location: New York City
Posts: 236 CHornJr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 1 h 50 m 36 sec
Reputation Power: 7
Send a message via AIM to CHornJr Send a message via MSN to CHornJr Send a message via Yahoo to CHornJr
I will check with them

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingPHP Development > Problem sending E-Mail from a website via php


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 5 hosted by Hostway
Stay green...Green IT