Send email: Difference between revisions

m
Line 436:
 
=={{header|Diego}}==
<lang diego>
This <code>instruct</code>ion instructs a thing in the mist to send an email. It understands that the found <code>thing</code> will have microphone knowledge. If the caller does not have email knowledge (similar to libraries in other languages), the callee will train the caller on first request. It is at the discretion of the callee to adjust, delay or not send the email.
<lang diego>begin_instruct(Send email)_param({str} from, to, cc, subject, msg, {html}, htmlmsg)_opt({cred}, login)_ns(rosettacode);
set_thread(linger);
find_thing()_first()_email()
Line 461 ⟶ 462:
_from(bob@bobmail.com.invalid) // It is at the discretion of the caller to use this from address
_to(fred@bobmail.com.invalid)
_cc(jill@bobmail.com.invalicinvalid)
_subject(Rosettacode wants me to send an email!)
_msg(This is the body of my email.)
_htmlmsg(&lt;<b&gt;>This is the body of my email, in bold&lt;</b&gt;>)
_login[mycred]
_me();