Новые файлы для настройки почты
This commit is contained in:
parent
27c4d64d73
commit
e695b9bc01
4 changed files with 97 additions and 9 deletions
|
|
@ -450,6 +450,12 @@ const {
|
|||
|
||||
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.steps-section {
|
||||
padding-bottom: 3rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 1024px) {
|
||||
.steps-container {
|
||||
flex-direction: column;
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
import nodemailer from 'nodemailer';
|
||||
import type { EmailOptions } from '../globalInterfaces';
|
||||
|
||||
const SMTP_HOST = import.meta.env.SMTP_HOST || 'localhost';
|
||||
const SMTP_PORT = import.meta.env.SMTP_PORT || 1025;
|
||||
const FROM_EMAIL = import.meta.env.FROM_EMAIL || 'noreply@avtourist-surgut.ru';
|
||||
const FROM_NAME = import.meta.env.FROM_NAME || 'Автоюрист Сургут';
|
||||
const SITE_URL = import.meta.env.SITE_URL || 'http://localhost:4321';
|
||||
const SMTP_HOST = import.meta.env.SMTP_HOST; // || 'localhost';
|
||||
const SMTP_PORT = import.meta.env.SMTP_PORT; // || 1025;
|
||||
const FROM_EMAIL = import.meta.env.FROM_EMAIL; // || 'noreply@avtourist-surgut.ru';
|
||||
const FROM_NAME = import.meta.env.FROM_NAME; // || 'Автоюрист Сургут';
|
||||
const SITE_URL = import.meta.env.SITE_URL; // || 'http://localhost:4321';
|
||||
|
||||
let transporter: nodemailer.Transporter | null = null;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
import type { APIRoute } from 'astro';
|
||||
import nodemailer from 'nodemailer';
|
||||
|
||||
const POCKETBASE_URL = import.meta.env.POCKETBASE_URL || 'http://localhost:8090';
|
||||
const SMTP_HOST = import.meta.env.SMTP_HOST || 'localhost';
|
||||
const SMTP_PORT = import.meta.env.SMTP_PORT || '1025';
|
||||
const NOTIFY_EMAIL = import.meta.env.NOTIFY_EMAIL || 'info@avtourist.ru';
|
||||
const POCKETBASE_URL = import.meta.env.POCKETBASE_URL; // || 'http://localhost:8090';
|
||||
const SMTP_HOST = import.meta.env.SMTP_HOST; // || 'localhost';
|
||||
const SMTP_PORT = import.meta.env.SMTP_PORT; // || '1025';
|
||||
const NOTIFY_EMAIL = import.meta.env.NOTIFY_EMAIL; // || 'info@avtourist.ru';
|
||||
|
||||
const transporter = nodemailer.createTransport({
|
||||
host: SMTP_HOST,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue