Jump to content

Mail() in Php


mahe2310

Recommended Posts

I tried to send a mail using mail() method, But failed.

$email = "[email protected]" ;

$message = "Test Mail" ;

ini_set("SMTP","xyz.com");

ini_set("smtp_port","25");

if(!(@mail( "[email protected]", "Email Subject", $message, "From: $email" )))

{

    $failed = 1;

}

Note: My application is running on my PC (with apache server). It is connected

to the LAN which holds the mail server.

Link to comment
https://forums.phpfreaks.com/topic/44605-mail-in-php/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.