Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Jay Mehta
/
zango-strapi
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Registry
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit 7dd637e2
authored
2024-07-12 15:21:09 +0530
by
jaymehta
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
.
1 parent
ecf82389
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletions
src/api/vendor/content-types/vendor/schema.json
src/api/vendor/controllers/vendor.js
src/api/vendor/content-types/vendor/schema.json
View file @
7dd637e
...
@@ -78,6 +78,16 @@
...
@@ -78,6 +78,16 @@
},
},
"uniqueVendorId"
:
{
"uniqueVendorId"
:
{
"type"
:
"string"
"type"
:
"string"
},
"einDocument"
:
{
"allowedTypes"
:
[
"images"
,
"files"
,
"videos"
,
"audios"
],
"type"
:
"media"
,
"multiple"
:
false
}
}
}
}
}
}
src/api/vendor/controllers/vendor.js
View file @
7dd637e
...
@@ -227,7 +227,7 @@ module.exports = createCoreController("api::vendor.vendor", () => ({
...
@@ -227,7 +227,7 @@ module.exports = createCoreController("api::vendor.vendor", () => ({
async
function
main
()
{
async
function
main
()
{
// send mail with defined transport object
// send mail with defined transport object
const
info
=
await
transport
.
sendMail
({
const
info
=
await
transport
.
sendMail
({
from
:
"Team Zango<no-reply@zango.com>"
,
// sender address
from
:
`Team Zango<
${
ctx
.
request
.
body
.
email
}
>`
,
// sender address
to
:
ctx
.
request
.
body
.
email
,
// list of receivers
to
:
ctx
.
request
.
body
.
email
,
// list of receivers
subject
:
"OTP Verification"
,
// Subject line
subject
:
"OTP Verification"
,
// Subject line
// text: "Hello world?", // plain text body
// text: "Hello world?", // plain text body
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment