Scroll to top

Blog

I would like to discuss on whatever your requirement will be. Also I feel pleasure to be a part on that. So let’s just the conversation and finish this in efficient way.

How to send custom email template in wordpress?

 Send custom email template in wordpress $body = file_get_contents(WP_CONTENT_DIR . ‘/themes/Avada-Child-Theme/contact-email.html’);$body = str_replace(“#name#”,$_POST[‘quotename’],$body);$body = str_replace(“#email#”,'<a style=”color:#fff” href=”mailto:’.$_POST[‘quoteemail’].’”>’.$_POST[‘quoteemail’].'</a>’,$body);$body = str_replace(“#mobile#”,$_POST[‘quotemobile’],$body);$body = str_replace(“#message#”,$_POST[‘quotemessage’],$body); $toadmin = “[email protected], [email protected], [email protected]”; $adminmessage = “You just

Read More »