Tag Info

New answers tagged


try this one add_filter('wp_mail_from', 'doEmailFilter'); add_filter('wp_mail_from_name', 'doEmailNameFilter'); function doEmailFilter($email_address){ if($email_address === "wordpress@mysite.hk") return 'contact@mysite.hk'; else return $email_address; } function doEmailNameFilter($email_from){ if($email_from === "WordPress") ...


You are passing $email where there should be attachments. Look at wp_mail arguments. Also you have not defined $to variable which in your case i assume should be $email. Try this, $name = $_POST['cuf_sender'.$n]; $email = $_POST['cuf_email'.$n]; $subject= $this->o['subpre'].' '.$_POST['cuf_subject'.$n]; $msg = $_POST['cuf_msg'.$n]; ...

Top 50 recent answers are included