Anyone familiar with an @mail function

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
michaelh613
Forum Commoner
Posts: 38
Joined: Sun Mar 16, 2008 1:35 pm

Anyone familiar with an @mail function

Post 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");
    }
 
 
User avatar
EverLearning
Forum Contributor
Posts: 282
Joined: Sat Feb 23, 2008 3:49 am
Location: Niš, Serbia

Re: Anyone familiar with an @mail function

Post by EverLearning »

@ is error control operator.

Read about it in PHP Manual - LINK
michaelh613
Forum Commoner
Posts: 38
Joined: Sun Mar 16, 2008 1:35 pm

Re: Anyone familiar with an @mail function

Post by michaelh613 »

Thanks I figured it must be some system command but didn't know where to find it.
Post Reply