Standard BCC in E-Mail
This commit is contained in:
@@ -8,8 +8,8 @@ const toast = useToast()
|
||||
|
||||
const emailData = ref({
|
||||
to:"",
|
||||
cc:"",
|
||||
bcc: "",
|
||||
cc:null,
|
||||
bcc: null,
|
||||
subject: "",
|
||||
html: "",
|
||||
text: "",
|
||||
@@ -28,8 +28,8 @@ const setupPage = async () => {
|
||||
|
||||
//Check Query
|
||||
if(route.query.to) emailData.value.to = route.query.to
|
||||
if(route.query.cc) emailData.value.to = route.query.cc
|
||||
if(route.query.bcc) emailData.value.to = route.query.bcc
|
||||
if(route.query.cc) emailData.value.cc = route.query.cc
|
||||
if(route.query.bcc) emailData.value.bcc = route.query.bcc
|
||||
if(route.query.subject) emailData.value.to = route.query.subject
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ const setupPage = async () => {
|
||||
|
||||
if(loadedDocuments.value.length > 0) {
|
||||
emailData.value.subject = loadedDocuments.value[0].createdDocument.title
|
||||
emailData.value.to = loadedDocuments.value[0].createdDocument.contact.email
|
||||
emailData.value.to = loadedDocuments.value[0].createdDocument.contact ? loadedDocuments.value[0].createdDocument.contact.email : ""
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user