Why am I not able to receive email on mydomain.com when I am able to send emails?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kamill
    New Member
    • Dec 2006
    • 71

    Why am I not able to receive email on mydomain.com when I am able to send emails?

    Dear Friends,

    I am using a php mail function, with this script i am sending mail to customer of my client. Script id doing well with other domain but with same domain emails script is unable to send mail.

    example:

    my domain name where i am running script is www.example.com
    and i have two email ids as xyz@example.com and xyz@abc.com then i am able to receive email at xyz@abc.com but not able to receive mail at xyz@example.com .

    [PHP]<?php
    $from='test@exa mple.com';
    $headers = "From: $from";
    $headers = "Content-type: text/html; charset=iso-8859-1\r\n"; $to1='xyz@examp le.com';
    $to2='xyz@abc.c om';
    $subject='Test Subject';
    $msg='Test Message';
    mail($to1, $subject, $msg, "From:$from\n". $headers);
    mail($to2, $subject, $msg, "From:$from\n". $headers);
    ?>
    [/PHP]


    I have got stuck with it. Please help me.
  • dlite922
    Recognized Expert Top Contributor
    • Dec 2007
    • 1586

    #2
    This may not be a PHP problem but your mail server.

    telnet to your mail server on port 25 (SMTP) and send an email through the command line.

    check Google for SMTP commands and examples of how to do that.



    Dan

    Comment

    Working...