- mail_settings_controller for setting smtp settings - added view ror rjecting dataset for editor - added new model AppConfig for stroing appwide config values - better validate_chesum.ts command with process chunking - added vue3 apps 'BasicSettings' like email, profile settings - started with 2 multilingual capabilities - npm updates
This commit is contained in:
parent
010bead723
commit
b06ccae603
67 changed files with 7820 additions and 1463 deletions
76
config/mail.ts
Normal file
76
config/mail.ts
Normal file
|
@ -0,0 +1,76 @@
|
|||
import env from '#start/env'
|
||||
import { defineConfig, transports } from '@adonisjs/mail'
|
||||
|
||||
const mailConfig = defineConfig({
|
||||
default: 'smtp',
|
||||
|
||||
/**
|
||||
* The mailers object can be used to configure multiple mailers
|
||||
* each using a different transport or same transport with different
|
||||
* options.
|
||||
*/
|
||||
mailers: {
|
||||
smtp: transports.smtp({
|
||||
host: env.get('SMTP_HOST', ''),
|
||||
port: env.get('SMTP_PORT'),
|
||||
secure: false,
|
||||
// ignoreTLS: true,
|
||||
requireTLS: false,
|
||||
/**
|
||||
* Uncomment the auth block if your SMTP
|
||||
* server needs authentication
|
||||
*/
|
||||
/* auth: {
|
||||
type: 'login',
|
||||
user: env.get('SMTP_USERNAME'),
|
||||
pass: env.get('SMTP_PASSWORD'),
|
||||
}, */
|
||||
}),
|
||||
|
||||
resend: transports.resend({
|
||||
key: env.get('RESEND_API_KEY'),
|
||||
baseUrl: 'https://api.resend.com',
|
||||
}),
|
||||
|
||||
},
|
||||
})
|
||||
|
||||
export default mailConfig
|
||||
|
||||
declare module '@adonisjs/mail/types' {
|
||||
export interface MailersList extends InferMailers<typeof mailConfig> {}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// const mailConfig = defineConfig({
|
||||
// default: 'smtp',
|
||||
|
||||
// /**
|
||||
// * The mailers object can be used to configure multiple mailers
|
||||
// * each using a different transport or same transport with different
|
||||
// * options.
|
||||
// */
|
||||
// mailers: {
|
||||
// smtp: transports.smtp({
|
||||
// host: env.get('SMTP_HOST', ''),
|
||||
// port: env.get('SMTP_PORT'),
|
||||
// /**
|
||||
// * Uncomment the auth block if your SMTP
|
||||
// * server needs authentication
|
||||
// */
|
||||
// /* auth: {
|
||||
// type: 'login',
|
||||
// user: env.get('SMTP_USERNAME'),
|
||||
// pass: env.get('SMTP_PASSWORD'),
|
||||
// }, */
|
||||
// }),
|
||||
|
||||
// resend: transports.resend({
|
||||
// key: env.get('RESEND_API_KEY'),
|
||||
// baseUrl: 'https://api.resend.com',
|
||||
// }),
|
||||
|
||||
// },
|
||||
// })
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue