email

Provides methods for working with email.

Methods

getLastEmail(sinceMinutes, subject, timeout)→ {Object}

Retrieves last unseen email.
Parameters:
Name Type Description
sinceMinutes Number Search for emails received since the specified amount of minutes into past.
subject (String|Regex) Return email matching the specified subject.
timeout String Timeout for waiting for the message to arrive.
Returns:
Object - Email body and TO, FROM, SUBJECT, DATE headers.