Codefresh Steps: Reusable Code for Common Operations
This page provides code you can use to perform common operations in the Codefresh CI/CD platform.
smtp smtp
Sends Email using SMTP Server
arguments
SendEmail:
type: smtp
arguments:
TO: [email protected]
FROM: [email protected]
SUBJECT: 'Build for ${{CF_REPO_NAME}}'
BODY: '<html><a href="${{CF_BUILD_URL}}">Codefresh Build</a></html>'
MIME_TYPE: html
SMTP_SERVER: smtp.domain.com
SMTP_USERNAME: [email protected]
SMTP_PASSWORD: password
SendEmail:
type: smtp
arguments:
TO: '[email protected], [email protected], [email protected]'
FROM: [email protected]
SUBJECT: 'Build for ${{CF_REPO_NAME}}'
BODY: '<html><a href="${{CF_BUILD_URL}}">Codefresh Build</a></html>'
MIME_TYPE: html
SMTP_SERVER: smtp.gmail.com
SMTP_USERNAME: [email protected]
SMTP_PASSWORD: password
SMTP_PORT: '587'