Wordpress Themes - Submit articles - Free MP3 Downloads - Debt Consolidation - Find jobs

PDA

View Full Version : Whats the difference


oo7ml
Oct 1st 2007, 12:43 pm
whats the difference in the bold part, and which one is correct

send_email('info@domainname.com', $email, $topic, $body );

AND

@ mail($email, $topic, $body, $headers);

AND

mail("info@domainname.com", $topic, $body, $from);

nico_swd
Oct 1st 2007, 12:49 pm
send_mail() is not a standard function, and it doesn't exist unless you define it.

The @ operator silences possible error output. (Error messages)

So all of them can be correct, if you define the first function yourself.