PDF Password with CC in E-Mail

Hello,
we have a problem with the feedback of PDF passwords to the sender.
If we have a recipient or multiple recipients via BCC, everything is fine.
However, if 2 recipients are named as CC, then the notification is no longer correct.
Both recipients are then named in the e-mail, but the second recipient receives the same password as
the first to appear.
How do we have to change it so that the passwords are correct?

Our template looks like this:

<#assign passwords = mail.getAttribute("djigzo.encryptedPasswords")>
<#assign emails = passwords?keys>
<#list emails as email>
<#assign pwc = passwords[email]>
</#list>
<#list mail.recipients as recipient>
</#list>
Ihre Nachricht (ID: ${pwc.passwordID}) mit dem Betreff: ${qp(subject!"")}

<#list mail.recipients as recipient>
wurde verschlüsselt an den Empfänger übertragen: (${qp(recipient)}) , das Passwort ist: ${pwc.password}
</#list>

<#assign passwords = mail.getAttribute("djigzo.encryptedPasswords")>
<#assign emails = passwords?keys>
<#list emails as email>
<#assign pwc = passwords[email]>
</#list>
Bitte teilen Sie dem Empfänger das Passwort auf anderem Wege (z.B. telefonisch) mit.

Mit freundlichen Grüßen
[cid:image001.png(a)01D7EA72.95BFB820]<http://www.wizard.de/default.cfm?mid=25603&gt;
Ralf Kirmis - Teamleiter RZ / Infrastruktur

[cid:image002.jpg(a)01D7EA72.95BFB820]<http://www.wizard.de/&gt;
Neue Straße 52 D-27432 Bremervörde
Telefon 04761-9941-0 Fax 04761-9941-400
Unseren Service erreichen Sie unter: Tel: +49 4761-9941-120, Fax: +49 4761-9941-420, service(a)wizard.de<mailto:service(a)wizard.de>
Den Vertrieb erreichen Sie unter: Tel: +49 4761-9941-130, Fax: +49 4761-9941-430, vertrieb(a)wizard.de<mailto:vertrieb(a)wizard.de>

Vertretungsberechtigter Geschäftsführer: Normen Herting Registergericht: Amtsgericht Tostedt Registernummer: HRB 100838 Umsatzsteuer-Identifikationsnummer gemäß § 27a Umsatzsteuergesetz: DE 116923248
Hinweis zum Datenschutz
Der Inhalt dieser eMail sowie etwaiger Anlagen hierzu sind vertraulich und ausschließlich für den Gebrauch durch den Empfänger bestimmt. Soweit eine Weitergabe oder Verteilung nicht ausschließlich zu internen Zwecken des Empfängers geschieht, wird jede Weitergabe, Verteilung oder sonstige Vervielfältigung untersagt. Diese eMail ist ausschließlich für den in der Adresse genannten Empfänger bestimmt. Sollten Sie nicht der beabsichtigte Empfänger der eMail sein, informieren Sie bitte den Absender unverzüglich. Diese eMail und die Dateianlagen wurden vom Absender auf Viren geprüft und über den abgesicherten Internet-Zugang eZEUS mit Firewall- und Viruswall-Technik verschickt. Weitere Informationen zu eZEUS finden Sie hier: http://www.wizard.de/&gt;\.

attachment.html (11.3 KB)

image001.png

image002.jpg

Hello,
we have a problem with the feedback of PDF passwords to the sender.
If we have a recipient or multiple recipients via BCC, everything is
fine.
However, if 2 recipients are named as CC, then the notification is no
longer correct.
Both recipients are then named in the e-mail, but the second
recipient receives the same password as
the first to appear.
How do we have to change it so that the passwords are correct?

Our template looks like this:

<#assign passwords = mail.getAttribute("djigzo.encryptedPasswords")>
<#assign emails = passwords?keys>
<#list emails as email>
<#assign pwc = passwords[email]>
</#list>
<#list mail.recipients as recipient>
</#list>
Ihre Nachricht (ID: ${pwc.passwordID}) mit dem Betreff:
${qp(subject!"")}

<#list mail.recipients as recipient>
wurde verschlüsselt an den Empfänger übertragen: (${qp(recipient)}) ,
das Passwort ist: ${pwc.password}
</#list>

<#assign passwords = mail.getAttribute("djigzo.encryptedPasswords")>
<#assign emails = passwords?keys>
<#list emails as email>
<#assign pwc = passwords[email]>
</#list>
Bitte teilen Sie dem Empfänger das Passwort auf anderem Wege (z.B.
telefonisch) mit.

Looks like your template is incorrect.

For example you step through the emails and assign a password but you
do not generate any output from the loop. The output will be generated
outside the loop (in another loop) and therefore only the last password
will be used:

<#list emails as email>
<#assign pwc = passwords[email]>
</#list>

I suggest you compare your template with the factory template. With the
factory template it works (I just tested it)

Kind regards,

Martijn Brinkers

···

On Mon, 2021-12-06 at 06:29 +0000, Kirmis, Ralf via Users wrote:

--
CipherMail email encryption
Email encryption with support for S/MIME,
OpenPGP, PDF Messenger and Webmail Messenger