Mail function in WordPress


#1

Hey, My code is this

of lecture “Sending mails:

Please tell me where is the problem

I am running this code in WordPress and I have installed a plugin “Insert Php”.




[insert_php]

 $from="info@udemy.com”; $to="kycatm108@gmail.com";

$subject=“New order! Yippee!”; $body=“There’s a new order for the delay in the UK and Ireland and the total length and I have a look”;

$headers=“From:$from”;

if(mail($to, $subject,$body,$headers))

{

echo “success”;

}

else

{

echo “failure”;

}

[/insert_php]



AND MY ERROR IS THIS:



Warning: mail(/home/u729271876/.logs/php_mail.log): failed to open stream: No such file or directory in/home/u729271876/public_html/wp-content/plugins/insert-php/insert_php.php(48) : eval()’d code on line 5

success


#2

Either the plugin did not install correctly, or it is missing files.