- TenantMailConfigController: 목록, 편집, 저장, SMTP 테스트 API - TenantMailConfig, MailLog 모델 추가 - SmtpConnectionTester: SMTP 연결 테스트 서비스 (에러 코드, 트러블슈팅) - TenantMailService: 테넌트 설정 기반 메일 발송 (쿼터, Fallback) - config/mail-presets.php: Gmail/Naver/MS365 등 8개 SMTP 프리셋 - Blade 뷰: 테넌트 목록 현황 + 설정 폼 (프리셋 자동 채움, 연결 테스트) - 라우트 추가: /system/tenant-mail/*
69 lines
2.1 KiB
PHP
69 lines
2.1 KiB
PHP
<?php
|
|
|
|
return [
|
|
'gmail' => [
|
|
'label' => 'Gmail / Google Workspace',
|
|
'host' => 'smtp.gmail.com',
|
|
'port' => 587,
|
|
'encryption' => 'tls',
|
|
'daily_limit' => 500,
|
|
'notes' => '앱 비밀번호 필요 (2단계 인증 활성화 후 생성)',
|
|
],
|
|
'naver' => [
|
|
'label' => '네이버 메일',
|
|
'host' => 'smtp.naver.com',
|
|
'port' => 587,
|
|
'encryption' => 'tls',
|
|
'daily_limit' => 500,
|
|
'notes' => '네이버 메일 설정 > POP3/SMTP > SMTP 사용 활성화 필요',
|
|
],
|
|
'naverworks' => [
|
|
'label' => '네이버웍스 (NAVER WORKS)',
|
|
'host' => 'smtp.worksmobile.com',
|
|
'port' => 587,
|
|
'encryption' => 'tls',
|
|
'daily_limit' => null,
|
|
'notes' => '관리자 콘솔에서 SMTP 허용 설정 필요',
|
|
],
|
|
'daum' => [
|
|
'label' => '다음/카카오 메일',
|
|
'host' => 'smtp.daum.net',
|
|
'port' => 465,
|
|
'encryption' => 'ssl',
|
|
'daily_limit' => 500,
|
|
'notes' => '카카오 계정 > 보안 > 앱 비밀번호 생성',
|
|
],
|
|
'microsoft365' => [
|
|
'label' => 'Microsoft 365 (Outlook)',
|
|
'host' => 'smtp.office365.com',
|
|
'port' => 587,
|
|
'encryption' => 'tls',
|
|
'daily_limit' => 10000,
|
|
'notes' => 'Basic Auth 폐지 추세 — OAuth2 전환 권장',
|
|
],
|
|
'cafe24' => [
|
|
'label' => '카페24 호스팅 메일',
|
|
'host' => '',
|
|
'port' => 587,
|
|
'encryption' => 'tls',
|
|
'daily_limit' => null,
|
|
'notes' => 'SMTP 호스트는 호스팅 계정마다 상이 — 수동 입력',
|
|
],
|
|
'gabia' => [
|
|
'label' => '가비아 호스팅 메일',
|
|
'host' => 'smtp.gabia.com',
|
|
'port' => 587,
|
|
'encryption' => 'tls',
|
|
'daily_limit' => null,
|
|
'notes' => '가비아 메일 관리 > SMTP 설정 확인',
|
|
],
|
|
'custom' => [
|
|
'label' => '직접 입력 (자체 서버 등)',
|
|
'host' => '',
|
|
'port' => 587,
|
|
'encryption' => 'tls',
|
|
'daily_limit' => null,
|
|
'notes' => '호스트, 포트, 암호화 방식을 직접 입력',
|
|
],
|
|
];
|