If click on get quote, mail should go for admin with from mail id. mail going to admin but from mail is like “[email protected]
“. This is my code:
`<?php
add_filter(‘woocommerce_get_price_html’, ‘requestQuote’, 10, 2);
function requestQuote($price, $product) {
if ( $price == wc_price( 0.00 ) ){
$current_user = wp_get_current_user();
remove_action( ‘woocommerce_single_product_summary’,
‘woocommerce_template_single_add_to_cart’, 30 );
echo'<form action=”” method=”post”>’;
?><input type=”hidden” name=”pn” value=”<?php echo the_title();?>”><?
echo ‘<input type=”hidden” name=”from” value=’.$current_user->user_email.’”>’;
echo ‘<input type=”submit” name=”send” value=”Get Quote”></form>’;
}
else{
return $price;
}
}
if($_POST[‘send’]) {
$to= get_bloginfo(‘admin_email’);
$from = $_POST[‘from’];
$product_name=$_POST[‘pn’];
$subject = ‘New Request For Quotation’;
$body = ‘Please send price for ‘.$product_name;
$headers = “From: ” . $from . “\r\n”;
wp_mail( $to,$subject, $body, $headers );
}
]]>How can I remove server name from: see attached https://www.screencast.com/t/5F9askhgO
]]>Quick note, you’ve named your menu item “WP Single Email”, I assume you wanted that to be “Simple”
]]>Hi friends,
Some info would be welcome for trouble shooting process.
After security update (WP4.6.2 ) the subject [sitename] mashed. Fonts with accents are processed as they were in an URL. (eg.: font ‘?’ is displayed as ‘ö’
Has wp Simple Mail Sender any influence on [sitename] in the subject field, or only affecting senders field.
thx
Hi Enrique.
WP Simple Mail Sender is fantastic, thank you!
I don’t suppose in a future update it would be possible to have an option to completely remove [sitename] or [sitetitle] out of the subject line of the email?
Best.
Rich.
]]>Bonjour.
L’expéditeur est toujours : [email protected]
Merci.
]]>