63 lines
1.8 KiB
Templ
63 lines
1.8 KiB
Templ
{{/*
|
|
ENGLISH
|
|
|
|
This template defines content of the email sent to users as a request to confirm registration email address.
|
|
See https://golang.org/pkg/text/template/ for syntax.
|
|
|
|
The template must contain the following parts parts:
|
|
- 'subject': Subject line of an email message
|
|
- One or both of the following:
|
|
- 'body_html': HTML content of the message. A header "Content-type: text/html" will be added.
|
|
- 'body_plain': plain text content of the message. A header "Content-type: text/plain" will be added.
|
|
|
|
If both body_html and body_plain are included, both are sent as parts of 'multipart/alternative' message.
|
|
*/}}
|
|
|
|
{{define "subject" -}}
|
|
MeetingIM registration: confirm email
|
|
{{- end}}
|
|
|
|
{{define "body_html" -}}
|
|
<html>
|
|
<body>
|
|
|
|
<p>Hello.</p>
|
|
|
|
<p>You're receiving this message because someone used your email to register at
|
|
<a href="{{.HostUrl}}">MeetingIM</a>.</p>
|
|
|
|
<p><a href="{{.HostUrl}}#cred?method=email&code={{.Code}}&token={{.Token}}">Click to confirm</a>
|
|
or go to
|
|
<a href="{{.HostUrl}}#cred?what=email">{{.HostUrl}}#cred?method=email</a>
|
|
and enter the following code:</p>
|
|
<blockquote><big>{{.Code}}</big></blockquote>
|
|
<p>You may need to enter login and password.</p>
|
|
|
|
<p>If you did not register at MeetingIM just ignore this message.</p>
|
|
|
|
<p><a href="https://118im.com/">MeetingIM Team</a></p>
|
|
|
|
</body>
|
|
</html>
|
|
{{- end}}
|
|
|
|
{{define "body_plain" -}}
|
|
|
|
Hello.
|
|
|
|
You're receiving this message because someone used your email to register at MeetingIM ({{.HostUrl}}).
|
|
|
|
Click the link {{.HostUrl}}#cred?method=email&code={{.Code}}&token={{.Token}} to confirm or go to {{.HostUrl}}#cred?what=email
|
|
and enter the following code:
|
|
|
|
{{.Code}}
|
|
|
|
You may need to enter login and password.
|
|
|
|
If you did not register at MeetingIM just ignore this message.
|
|
|
|
MeetingIM Team
|
|
https://118im.com/
|
|
|
|
{{- end}}
|