Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
iTasks-SDK
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
74
Issues
74
List
Boards
Labels
Service Desk
Milestones
Merge Requests
6
Merge Requests
6
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
clean-and-itasks
iTasks-SDK
Commits
6d8e61dc
Commit
6d8e61dc
authored
Oct 18, 2019
by
Camil Staps
🚀
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'utf8HtmlMail' into 'master'
use UTF-8 encoding for HTML mails See merge request
!349
parents
4ce7502f
fa043468
Pipeline
#31572
passed with stage
in 6 minutes and 54 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
Libraries/iTasks/Extensions/Email.dcl
Libraries/iTasks/Extensions/Email.dcl
+1
-1
Libraries/iTasks/Extensions/Email.icl
Libraries/iTasks/Extensions/Email.icl
+2
-1
No files found.
Libraries/iTasks/Extensions/Email.dcl
View file @
6d8e61dc
...
...
@@ -24,7 +24,7 @@ sendEmail :: ![EmailOpt] !String ![String] !String !String -> Task ()
* @param Sender: The sender address
* @param Recipients: The recipient addresses
* @param Subject: The subject line of the e-mail message
* @param Body: The HTML body of the e-mail message
* @param Body: The HTML body of the e-mail message
. Text has to be UTF-8 encoded.
*/
sendHtmlEmail
::
![
EmailOpt
]
!
String
![
String
]
!
String
!
HtmlTag
->
Task
()
...
...
Libraries/iTasks/Extensions/Email.icl
View file @
6d8e61dc
...
...
@@ -52,7 +52,8 @@ where
sendHtmlEmail
::
![
EmailOpt
]
!
String
![
String
]
!
String
!
HtmlTag
->
Task
()
sendHtmlEmail
opts
sender
recipients
subject
body
=
sendEmail
[
EmailOptExtraHeaders
[(
"content-type"
,
"text/html"
)]:
opts
]
sender
recipients
subject
htmlString
sendEmail
[
EmailOptExtraHeaders
[(
"content-type"
,
"text/html; charset=UTF8"
)]:
opts
]
sender
recipients
subject
htmlString
where
// avoid too long lines (SMTP allows a max length of 1000 characters only)
// by inserting a newline (\r\n is required for mails) after each tag
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment