Verify Reply To still has its uses
[squirrelmail.git] / src / compose.php
index e7ed28e86828f7a254a163e74409940a520775c4..3ba329b43f0d87f1504e3041488545e705702059 100644 (file)
@@ -1627,6 +1627,8 @@ function deliverMessage(&$composeMessage, $draft=false) {
 
     $reply_to = '';
     $reply_to  = $idents[$identity]['reply_to'];
+    if (strpos($reply_to, '@') === FALSE)
+        $reply_to .= '@' . $domain;
     
     $from_addr = build_from_header($identity);
     $rfc822_header->from = $rfc822_header->parseAddress($from_addr,true);