The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Email not being sent from PHP

Discussion in 'E-mail Discussions' started by greg, Apr 7, 2002.

  1. greg

    greg Active Member

    Joined:
    Sep 4, 2001
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    6
    Hi. We use PHP's mail() function to send our new customers welcome emails. It appears though that not every email is making it through to our customers and we are suffering reputation wise because of this. Some do still get through, but only for certain domains.

    Does anyone know what the problem could be and how to solve it?

    Any help would be greatly appreciated.

    Thanks in advance.
     
  2. patchwork

    patchwork Well-Known Member

    Joined:
    Nov 2, 2001
    Messages:
    92
    Likes Received:
    0
    Trophy Points:
    16
    I had the same problem a while back, the source of the problem was my DNS settings.

    In the exim_mainlog file I found error messages just like this

    &Sender address rejected: Domain not found&

    The problem was I had not set-up subdomains on my main server domain. To solve the problem I had to add my machine name as a sub domain on the servers main domain.

    Example... if your servers name is &sub& and your main server domain is domain.com, then you have to make sure http://sub.domain.com is a valid address. Then when the target server does a domain lookup for nobody@sub.domain.com it does resolve to a valid IP address, if it doesn't resolve, then some servers will reject the email as spam.

    Around 50% of the mail from my PHP scripts was not getting delivered due to this problem.

    Pete
     
  3. WildWayz

    WildWayz Well-Known Member

    Joined:
    Aug 14, 2001
    Messages:
    209
    Likes Received:
    0
    Trophy Points:
    16
    Another problem is if you do not set the FROM field - other mailservers will reject it.

    --James
     
  4. JapAniManga.ch

    JapAniManga.ch Well-Known Member

    Joined:
    Aug 11, 2001
    Messages:
    88
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Switzerland
    have same problem

    hello,

    i have the same problem, some mailservers reject the mails who vbulletin sends out and say's:

    nobody@web.willnotsaymydomain.com&... Invalid Address

    the a-entry is ok, when i go via ie on the maschine-name i get on a welcome-apache-site. can also ping the maschine name.

    in vbulletin is also all ok.

    does anybody know what i can do ? a script what i can use ??
     
  5. jimd

    jimd Member

    Joined:
    Apr 11, 2002
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Here's a very similar problem I solved

    ;) I would sestup my new customers, then send them an email. Problem was, I just created a DNS entry on my outgoing server, that sent their email to their NEW account instead of their old one where they were waiting for it to show up!
    Just a gotcha to watch for!
    jimD
     
  6. jimd

    jimd Member

    Joined:
    Apr 11, 2002
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Here's a very similar problem I solved

    ;) I would sestup my new customers, then send them an email. Problem was, I just created a DNS entry on my outgoing server, that sent their email to their NEW account instead of their old one where they were waiting for it to show up!
    Just a gotcha to watch for!
    jimD
     
  7. CoolMike

    CoolMike Well-Known Member

    Joined:
    Sep 6, 2001
    Messages:
    307
    Likes Received:
    0
    Trophy Points:
    16
    I have exactly the same problem, but no solution so far...

    Mike
     
Loading...

Share This Page