chore(email): set name for pdf file attachment
This commit is contained in:
parent
1a67063ec3
commit
7a532e9778
@ -74,10 +74,10 @@ dispatchNotificationQualificationRenewal nQualification jRecipient = do
|
|||||||
$logErrorS "LMS" msg
|
$logErrorS "LMS" msg
|
||||||
error $ unpack msg
|
error $ unpack msg
|
||||||
Right pdffile -> do
|
Right pdffile -> do
|
||||||
addPart (File { fileTitle = "Renewal Pin Letter"
|
addPart (File { fileTitle = "RenewalPinLetter.pdf" -- TODO: better file title!
|
||||||
, fileModified = now
|
, fileModified = now
|
||||||
, fileContent = Just $ yield $ LBS.toStrict pdffile
|
, fileContent = Just $ yield $ LBS.toStrict pdffile
|
||||||
} :: PureFile)
|
} :: PureFile)
|
||||||
-- TODO: this is just a dummy to continue while i18nHamletFile usage is unclear
|
-- TODO: this is just a dummy to continue while i18nHamletFile usage is unclear
|
||||||
addHtmlMarkdownAlternatives $(ihamletFile "templates/mail/qualificationRenewal.hamlet")
|
addHtmlMarkdownAlternatives $(ihamletFile "templates/mail/qualificationRenewal.hamlet")
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user