Set mail transporter
curl --request PUT \
--url http://127.0.0.1:3000/api/admin/setting/set-mail-transport-config \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "notifyMailTransportConfig",
"transportConfig": {
"sender": "<string>",
"host": "<string>",
"port": 123,
"auth": {
"user": "<string>",
"pass": "<string>"
},
"senderName": "<string>",
"secure": true
}
}
'{
"name": "notifyMailTransportConfig",
"transportConfig": {
"sender": "<string>",
"host": "<string>",
"port": 123,
"auth": {
"user": "<string>",
"pass": "<string>"
},
"senderName": "<string>",
"secure": true
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
notifyMailTransportConfig Set mail transporter successfully.
notifyMailTransportConfig 此页面对您有帮助吗?
curl --request PUT \
--url http://127.0.0.1:3000/api/admin/setting/set-mail-transport-config \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "notifyMailTransportConfig",
"transportConfig": {
"sender": "<string>",
"host": "<string>",
"port": 123,
"auth": {
"user": "<string>",
"pass": "<string>"
},
"senderName": "<string>",
"secure": true
}
}
'{
"name": "notifyMailTransportConfig",
"transportConfig": {
"sender": "<string>",
"host": "<string>",
"port": 123,
"auth": {
"user": "<string>",
"pass": "<string>"
},
"senderName": "<string>",
"secure": true
}
}