[bug report] can not set sender with omit option on
-
In
email-users.php
function mailusers_send_mail
build headers section.// Build headers $headers[] = ($omit) ? $sender_email : \ sprintf('From: "%s" <%s>', $sender_name, $sender_email); $headers[] = sprintf('Return-Path: <%s>', $return_path); $headers[] = ($omit) ? $sender_email : \ sprintf('Reply-To: "%s" <%s>', $sender_name, $sender_email);
When the
$omit
istrue
, the code only insert simple email address to$headers
without"From:"
,which will not work. So I made some changes:$headers[] = ($omit) ? sprintf('From: %s',$sender_email) : \ sprintf('From: "%s" <%s>', $sender_name, $sender_email); $headers[] = sprintf('Return-Path: <%s>', $return_path); $headers[] = ($omit) ? sprintf('Reply-To: %s', $sender_email) : \ sprintf('Reply-To: "%s" <%s>', $sender_name, $sender_email);
Plz fix the bug next version .
Thanks for the cool plugin!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘[bug report] can not set sender with omit option on’ is closed to new replies.