kamran ijaz
kamran ijaz

Reputation: 105

How to make connection With mail server in oracle PHP?

i have my own mail server with IP,Host,Username,Password. So i want to make connection with my mail server for just check mail server is active or not. please suggest me tutorial. Thanks in Advance.

Upvotes: 0

Views: 46

Answers (1)

Jamie_D
Jamie_D

Reputation: 999

If you simply want to check it the mail server is active, use the fsockopen function :

$fp = fsockopen("10.0.0.1", 25, $errno, $errstr, 15);
if (!$fp) {
    echo "$errstr ($errno)<br />\n";
}else{
 echo "Mail Server is active";
}

Upvotes: 1

Related Questions