瀏覽代碼

change \"from\" email CT#662

Carlos Vargas 15 年之前
父節點
當前提交
4db5fee912
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      main/inc/lib/mail.lib.inc.php

+ 4 - 0
main/inc/lib/mail.lib.inc.php

@@ -140,6 +140,10 @@ function api_mail_html($recipient_name, $recipient_email, $subject, $message, $s
 	$mail->IsHTML(0);
 	$mail->SMTPKeepAlive = true;
 
+	if (($sender_email != "") && ($sender_name != "")) {
+		$mail->AddReplyTo ($sender_email,$sender_name);
+	}
+
 	// attachments
 	// $mail->AddAttachment($path);
 	// $mail->AddAttachment($path,$filename);