Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
MKCLOS
Core Development Platform
corepkgv2
Merge requests
!108
Email: Reply-To feature added
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Email: Reply-To feature added
vi_emailReplyTo
into
devbranch
Overview
0
Commits
3
Pipelines
0
Changes
2
Merged
Vikram Ingawale
requested to merge
vi_emailReplyTo
into
devbranch
5 years ago
Overview
0
Commits
3
Pipelines
0
Changes
2
Expand
Add: Reply-To related fixes added in email.go file
Add: Reply-To related fixes added in emailSLS.go file
0
0
Merge request reports
Compare
devbranch
version 1
411fd2ab
5 years ago
devbranch (base)
and
latest version
latest version
411fd2ab
3 commits,
5 years ago
version 1
411fd2ab
3 commits,
5 years ago
2 files
+
5
−
1
Expand all files
Preferences
File browser
List view
Tree view
Compare changes
Inline
Side-by-side
Show whitespace changes
Show one file at a time
Search (e.g. *.vue) (Ctrl+P)
notificationmdl/email/email.go
+
4
−
1
Options
@@ -47,6 +47,7 @@ func Init(tomlFilepath string) error {
type
Email
struct
{
from
string
replyTo
string
to
[]
string
cc
[]
string
bcc
[]
string
@@ -56,9 +57,10 @@ type Email struct {
plainBody
string
// alternate text if template fails
}
func
NewEmail
(
to
,
cc
,
bcc
,
attachments
[]
string
,
from
,
subject
,
body
string
)
*
Email
{
func
NewEmail
(
to
,
cc
,
bcc
,
attachments
[]
string
,
from
,
replyTo
,
subject
,
body
string
)
*
Email
{
return
&
Email
{
from
:
from
,
replyTo
:
replyTo
,
to
:
to
,
cc
:
cc
,
bcc
:
bcc
,
@@ -148,6 +150,7 @@ func (email *Email) Send() error {
message
:=
gomail
.
NewMessage
()
message
.
SetHeader
(
"From"
,
email
.
from
)
message
.
SetHeader
(
"To"
,
email
.
to
...
)
message
.
SetHeader
(
"Reply-To"
,
email
.
replyTo
)
message
.
SetHeader
(
"Cc"
,
email
.
cc
...
)
message
.
SetHeader
(
"Bcc"
,
email
.
bcc
...
)
message
.
SetHeader
(
"Subject"
,
email
.
subject
)
Menu
Explore
Projects
Groups
Topics
Snippets