mirror of
https://github.com/dawidd6/action-send-mail.git
synced 2024-12-26 11:03:06 +07:00
parent
3c0bbc53ef
commit
19516a4a58
4
main.js
4
main.js
@ -96,10 +96,6 @@ async function main() {
|
|||||||
throw new Error("Server address must be specified")
|
throw new Error("Server address must be specified")
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!username || !password) {
|
|
||||||
core.warning("Username and password not specified. You should only do this if you are using a self-hosted runner to access an on-premise mail server.")
|
|
||||||
}
|
|
||||||
|
|
||||||
const transport = nodemailer.createTransport({
|
const transport = nodemailer.createTransport({
|
||||||
host: serverAddress,
|
host: serverAddress,
|
||||||
auth: username && password ? {
|
auth: username && password ? {
|
||||||
|
Loading…
Reference in New Issue
Block a user