webmail » read(var,profile,id)
Description
This command instructs Nexial to retrieve email contents from the inbox
specified in the profile. The id represents the “email id”, which is
determined via the search(var,profile,searchCriteria,duration) command.
The details of the email is stored into var.
Parameters
- var - the target variable name to which the email details will be stored.
- profile - the webmail profile in the
datafile which specifies the settings likeinbox,provideretc. - id - the
idof the email to be read.
Consider the following example where you can read the details of an email based on its email id.
Example
Script:
In the above example you can see that once the email is read we can retrieve the following email details:
Email Details
- id - The
idof the email read. - from - The
fromaddress of the email. - to - The
toaddress of the email. - subject - The
subjectof the email. - time - The
timeat which the email is received. - content - The
text contentof the email. - links - The list of the
html linksin the email. - html - The
htmlcontent of the email.