php mail

weird mail issue

Page 1 of 1

7 Replies - 1065 Views - Last Post: 12 January 2009 - 10:13 AM Rate Topic: -----

#1 engale  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 3
  • View blog
  • Posts: 594
  • Joined: 30-September 08

php mail

Post icon  Posted 01 January 2009 - 01:49 PM

Ok here is my issues I have a site hosted with mixcat. I am useing a mail function to send the user an activation code.

This all works as long as the email address that I am sending my code to is on their servers. If the email address is not on their server then the email is never sent. There is no error at all it just refuses to send. Any idea on what I would need to have the server do to fix this issue?
Is This A Good Question/Topic? 0
  • +

Replies To: php mail

#2 CTphpnwb  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 2896
  • View blog
  • Posts: 10,036
  • Joined: 08-August 08

Re: php mail

Posted 01 January 2009 - 02:38 PM

Is this a free account? It sounds like they're blocking outgoing mail. Check with them.
Was This Post Helpful? 0
  • +
  • -

#3 engale  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 3
  • View blog
  • Posts: 594
  • Joined: 30-September 08

Re: php mail

Posted 01 January 2009 - 02:42 PM

No it's not a free account. And I'm able to use thier "webmail" systems to send mail, which I think is odder still, to the email addresses that I can't useing the php mail function
Was This Post Helpful? 0
  • +
  • -

#4 CTphpnwb  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 2896
  • View blog
  • Posts: 10,036
  • Joined: 08-August 08

Re: php mail

Posted 01 January 2009 - 03:10 PM

I'd definitely call their tech support then. They're probably blocking everything on port 25 that doesn't go through their server.
Was This Post Helpful? 0
  • +
  • -

#5 engale  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 3
  • View blog
  • Posts: 594
  • Joined: 30-September 08

Re: php mail

Posted 01 January 2009 - 03:28 PM

if only they had a phone number so i could call them. I've submitted a ticket and am waiting on them now
Was This Post Helpful? 0
  • +
  • -

#6 snoj  Icon User is offline

  • Married Life
  • member icon

Reputation: 84
  • View blog
  • Posts: 3,564
  • Joined: 31-March 03

Re: php mail

Posted 02 January 2009 - 10:26 AM

It's refusing to send email because of the nature of SMTP.

I assume you're not using a username/password when sending the emails, so that makes your session un-authenticated. Since it's un-authenticated, mixcat will drop the message since they don't want to relay messages. (This is one of the reasons that spam is an issue, there are open-relay smtp servers out there.) It's pretty standard practice to reject any mail destined for domains that the server is not responsible for.


RAW SMTP examples:

//This will usually fail.
telnet mail.someplace.com 25

helo client.fqdn.com
mail from: someone@someplace.com
rcpt to: someoneelse@hotmail.com

//This may fail, it depends on if the server connected checks SPF and/or reverse dns.
telnet mail.someplace.com 25

helo client.fqdn.com
//could also be...
//helo mail.server.someotherplace.com

mail from: someone@someotherplace.com
rcpt to: someoneelse@someplace.com



Was This Post Helpful? 0
  • +
  • -

#7 engale  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 3
  • View blog
  • Posts: 594
  • Joined: 30-September 08

Re: php mail

Posted 11 January 2009 - 08:25 PM

Actualy it I was useing a username and password, but the error was on the server side. They where rejecting my mail for some reason or another.
Was This Post Helpful? 0
  • +
  • -

#8 pemcconnell  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 54
  • View blog
  • Posts: 472
  • Joined: 05-August 08

Re: php mail

Posted 12 January 2009 - 10:13 AM

prob a blacklist related problem - to test mail you should set up a mail server on your localhost - you can do this through IIS / Apache / download 3rd party software such as Argosoft which will let you set up local accounts (e.g. me@localhost) for testing - this will allow you to test your mail forms in a safe environment were you won't be held back by server errors
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1