Skip to content

Commit

Permalink
simplify some reply and from formatting logic for easier testing
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonmunro committed Nov 13, 2018
1 parent 5cb8199 commit 5bdd026
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/smtp/modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -1218,13 +1218,13 @@ function outbound_address_check($mod, $from, $reply_to) {
}
}
if ($domain) {
if (!is_email_address($from)) {
if (strpos($from, '@') === false) {
$from = $from.'@'.$domain;
}
if (!trim($reply_to)) {
$reply_to = $from;
}
elseif (!is_email_address($reply_to)) {
elseif (strpos($reply_to, '@') === false) {
$reply_to = $reply_to.'@'.$domain;
}
}
Expand Down

0 comments on commit 5bdd026

Please sign in to comment.