Page 1 of 1

Anyone familiar with an @mail function

Posted: Wed Apr 02, 2008 2:03 pm
by michaelh613
I've inherited a site with some code including an @mail function.

I can't find it being created in the code . Is this another way of doing a mail() function
http://us.php.net/mail

Code: Select all

 
 
{
        $msg = str_replace(array("{FIRST_NAME}","{LAST_NAME}","{USERNAME}"),
        array($first_name,$last_name,$username),$auto_resp[11]);
 
        @mail($email_address,$auto_subjects[10],$msg.$auto_resp_sign,"From: noreply@mytestdomain.com");
    }
 
 

Re: Anyone familiar with an @mail function

Posted: Wed Apr 02, 2008 2:51 pm
by EverLearning
@ is error control operator.

Read about it in PHP Manual - LINK

Re: Anyone familiar with an @mail function

Posted: Wed Apr 02, 2008 2:55 pm
by michaelh613
Thanks I figured it must be some system command but didn't know where to find it.