sendMail
Method allowing to send an email.
Parameter | Type | Description |
---|---|---|
{ mailOptions, transport, transportDefaults } | SendMailOptions |
SendMailOptions
Parameter | Type | Description |
---|---|---|
mailOptions | NMSMO | |
transport | SMTPTransport / Options / string | |
transportDefaults? | Options |
sendMail Return value
SMTPTransport.SentMessageInfo
Return sent message information.
Basic Usage
await I.sendMail({
mailOptions: {
to: `testmaker@k-expert.com`,
subject: `Subject`,
attachments: [
{
filename: `TM.png`,
path: `./dist/reports/assets/manual_screenshots/TM.png`
}
],
from: `tm@yahoo.com`,
text: `This is the text`
},
transport: {
service: 'yahoo',
auth: {
user: 'tm@yahoo.com',
pass: 'pwd',
}
},
})
parseMail
Method allowing to parse an email.
Parameter | Type | Description |
---|---|---|
{ source, options } | ParseMailParameters |
ParseMailParameters
Parameter | Type | Description |
---|---|---|
source | string | Email to parse. |
options? | SimpleParserOptions | Parsing options |
createTestMailAccount
Method allowing to create a test mail account.
Parameter | Type | Description |
---|---|---|
apiUrl | string / undefined |
createTestMailAccount Return value
TestAccount