Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F995860
mailer.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
462 B
Referenced Files
None
Subscribers
None
mailer.ts
View Options
import
type
{
App
}
from
"../main"
;
import
type
{
MessageData
}
from
"./message"
;
export
default
abstract
class
Mailer
{
app
:
App
;
abstract
verify
()
:
Promise
<
boolean
>
;
abstract
sendEmail
(
message
:
MessageData
&
{
from_name
:
string
}
)
:
Promise
<
void
>
;
async
send
(
message_data
:
MessageData
)
{
return
this
.
sendEmail
({
...
message_data
,
from_name
:
this
.
app
.
ConfigManager
.
get
(
"email"
).
from_name
,
});
}
async
init
(
app
:
App
)
{
this
.
app
=
app
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-java
Expires
Mon, Dec 23, 22:27 (23 h, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
555180
Default Alt Text
mailer.ts (462 B)
Attached To
Mode
rS Sealious
Attached
Detach File
Event Timeline
Log In to Comment