<mail>
Description
Tests usage of the $mail
service.
Attributes
recipient
— receiver, optional parameter.subject
— topic of the message, optional parameter.body
— content of the message, optional parameter.
How to use
<mail/>
<mail subject="Hello, Joe!"/>
Consider the script:
theme: /
state: Example
q!: *
script:
$mail.sendMessage(
"example@example.com",
"message subject",
"message body"
);
Script test:
<test>
<test-case>
<q>send1</q>
<mail recipient="example@example.com"
subject="message subject"
body="message body"/>
</test-case>
<test-case>
<q>send2</q>
<mail recipient="example@example.com" />
</test-case>
<test-case>
<q>send3</q>
<mail subject="message subject"
body="message body" />
</test-case>
</test>