Compare commits
No commits in common. "495aeef2c2d4276129ef565a417f95ac502a6356" and "03d91f3fa0208fdce5d7cd744515474f17da3fdf" have entirely different histories.
495aeef2c2
...
03d91f3fa0
@ -20,7 +20,7 @@ DB_PORT=3306
|
|||||||
|
|
||||||
SMTP_HOST=autodiscover.qcells.com
|
SMTP_HOST=autodiscover.qcells.com
|
||||||
SMTP_PORT=25
|
SMTP_PORT=25
|
||||||
SMTP_SECURE=false
|
SMTP_SECURE=true
|
||||||
SMTP_USER=hss404.u021@cleverse.dev
|
SMTP_USER=hss404.u021@cleverse.dev
|
||||||
SMTP_PASSWORD=0000
|
SMTP_PASSWORD=0000
|
||||||
SMTP_FROM=qsalesplatform@qcells.com
|
SMTP_FROM=qsalesplatform@qcells.com
|
||||||
|
|||||||
@ -6,7 +6,7 @@ import { useEffect, useState } from 'react'
|
|||||||
import { useSessionStore } from '@/store/session'
|
import { useSessionStore } from '@/store/session'
|
||||||
import { useCommCode } from '@/hooks/useCommCode'
|
import { useCommCode } from '@/hooks/useCommCode'
|
||||||
import { CommCode } from '@/types/CommCode'
|
import { CommCode } from '@/types/CommCode'
|
||||||
import { sendEmail } from '@/libs/mailer'
|
// import { sendEmail } from '@/libs/mailer'
|
||||||
import { useSpinnerStore } from '@/store/spinnerStore'
|
import { useSpinnerStore } from '@/store/spinnerStore'
|
||||||
|
|
||||||
interface SubmitFormData {
|
interface SubmitFormData {
|
||||||
@ -91,23 +91,20 @@ export default function SurveySaleSubmitPopup() {
|
|||||||
window.neoConfirm('送信しますか? 送信後は変更・修正することはできません。', () => {
|
window.neoConfirm('送信しますか? 送信後は変更・修正することはできません。', () => {
|
||||||
setIsShow(true)
|
setIsShow(true)
|
||||||
submitSurvey({ targetId: submitData.store })
|
submitSurvey({ targetId: submitData.store })
|
||||||
sendEmail({
|
// sendEmail({
|
||||||
to: submitData.receiver,
|
// to: submitData.receiver,
|
||||||
subject: submitData.title,
|
// subject: submitData.title,
|
||||||
content: submitData.contents,
|
// content: submitData.contents,
|
||||||
})
|
// })
|
||||||
.then(() => {
|
// .then(() => {
|
||||||
if (!isSubmittingSurvey) {
|
if (!isSubmittingSurvey) {
|
||||||
popupController.setSurveySaleSubmitPopup(false)
|
popupController.setSurveySaleSubmitPopup(false)
|
||||||
}
|
}
|
||||||
})
|
// })
|
||||||
.catch((error) => {
|
// .catch((error) => {
|
||||||
console.error('Error sending email:', error)
|
// console.error('Error sending email:', error)
|
||||||
alert('メール送信に失敗しました。')
|
// alert('メール送信に失敗しました。')
|
||||||
})
|
// })
|
||||||
.finally(() => {
|
|
||||||
setIsShow(false)
|
|
||||||
})
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -13,7 +13,6 @@ export async function sendEmail({ to, cc, subject, content }: EmailParams): Prom
|
|||||||
host: process.env.SMTP_HOST,
|
host: process.env.SMTP_HOST,
|
||||||
port: Number(process.env.SMTP_PORT),
|
port: Number(process.env.SMTP_PORT),
|
||||||
secure: process.env.SMTP_SECURE === 'true',
|
secure: process.env.SMTP_SECURE === 'true',
|
||||||
requireTLS: true,
|
|
||||||
auth: {
|
auth: {
|
||||||
user: process.env.SMTP_USER,
|
user: process.env.SMTP_USER,
|
||||||
pass: process.env.SMTP_PASSWORD,
|
pass: process.env.SMTP_PASSWORD,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user