Quantcast
Channel: Active questions tagged email - Stack Overflow
Viewing all articles
Browse latest Browse all 29745

How to add Reply to sender - email

$
0
0

I have a problem with the reply to the sender. My form sends emails correctly, but I can't write back to the sender.

$paymentOutput = $bookingData["payment"];
$hideButtons = false;
$title = __('New Booking Request', 'advanced-booking-calendar');
if($paymentOutput == 'paypal'&& isset($bookingData["payment_reference"])){
    $paymentOutput = __('Already paid via:', 'advanced-booking-calendar').' PayPal (Transaction ID: '.$bookingData["payment_reference"].')';
    $hideButtons = true;
    $title = __('New Booking - Already paid', 'advanced-booking-calendar');
}
$priceOutput .= __('Total price', 'advanced-booking-calendar').': '.abc_booking_formatPrice($totalPrice).'<br>';
$adminEmail = getAbcSetting('email');
$headers[] = 'Content-type: text/html; charset="UTF-8' . "\r\n";
$headers[] = 'From: '.wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES ).'<'.$adminEmail.'>'."\r\n";

$subject = __('Booking Request', 'advanced-booking-calendar').''.wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES );
$adminBody = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

I changed $headers[] to:

$headers[] = 'From: <'.$adminEmail.'>'."\r\n" .
             'Reply-To: <'.$email.'>'."\r\n" .;

but it doesn't work.


Viewing all articles
Browse latest Browse all 29745

Trending Articles