Skip to content

Commit 472ad1d

Browse files
aspangaroeldy
andauthored
NEW Holiday - Allow to specify a specific mail address from (#36184)
* NEW Holiday - Allow to specify a specific mail address from * Update card.php --------- Co-authored-by: Laurent Destailleur <[email protected]>
1 parent 4334797 commit 472ad1d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

htdocs/holiday/card.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
* Copyright (C) 2022 Anthony Berton <[email protected]>
1111
* Copyright (C) 2024 Charlene Benke <[email protected]>
1212
* Copyright (C) 2025 MDW <[email protected]>
13+
* Copyright (C) 2025 Julien Marchand <[email protected]>
1314
*
1415
* This program is free software; you can redistribute it and/or modify
1516
* it under the terms of the GNU General Public License as published by
@@ -506,7 +507,9 @@
506507
$expediteur = new User($db);
507508
$expediteur->fetch($object->fk_user);
508509
//$emailFrom = $expediteur->email; Email of user can be an email into another company. Sending will fails, we must use the generic email.
509-
$emailFrom = getDolGlobalString('MAIN_MAIL_EMAIL_FROM');
510+
511+
// You can specify a special address from for holiday
512+
$emailFrom = getDolGlobalString('MAIN_MAIL_EMAIL_HOLIDAY_FROM', getDolGlobalString('MAIN_MAIL_EMAIL_FROM'));
510513

511514
// Subject
512515
$societeName = getDolGlobalString('MAIN_INFO_SOCIETE_NOM');

0 commit comments

Comments
 (0)