Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F995660
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, 12:48 (1 d, 7 h)
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