git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@13224
7612ce4b-ef26-0410-bec9-
ea0150e637f0
* @since 1.5.2
*/
function build_from_header($identity = 0) {
* @since 1.5.2
*/
function build_from_header($identity = 0) {
$idents = get_identities();
if (! isset($idents[$identity]) ) $identity = 0;
$idents = get_identities();
if (! isset($idents[$identity]) ) $identity = 0;
}
$from_mail = $idents[$identity]['email_address'];
}
$from_mail = $idents[$identity]['email_address'];
+ if (strpos($from_mail, '@') === FALSE)
+ $from_mail .= '@' . $domain;
if ( isset($from_name) ) {
$from_name_encoded = encodeHeader($from_name);
if ( isset($from_name) ) {
$from_name_encoded = encodeHeader($from_name);