Toggle menu
868
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

SendEmail: Difference between revisions

From Catglobe Wiki
Nguyenduyan (talk | contribs)
No edit summary
Nguyenduyan (talk | contribs)
No edit summary
Line 1: Line 1:
{{HelpFiles}}
= sendEmail =
= sendEmail =


Line 33: Line 34:
or
or
sendEmail("some_email@somemail.com", "somebody", "test", "This is a test","phong@maysunshine.vn");
sendEmail("some_email@somemail.com", "somebody", "test", "This is a test","phong@maysunshine.vn");
</source><br/><source lang="javascript">
</source>
<br><source lang="javascript">
setRPQId(1742873106);
setRPQId(1742873106);
array arrAttachmentRId = {15548650,15548653};
array arrAttachmentRId = {15548650,15548653};
Line 44: Line 46:
sendEmail("an@maysunshine.vn","An","subject test", "body test","antest@cghead.catglobe.com",arrAttachment);
sendEmail("an@maysunshine.vn","An","subject test", "body test","antest@cghead.catglobe.com",arrAttachment);
</source>
</source>
[[Category:Email_and_SMS_Functions]]

Revision as of 07:49, 25 November 2016

sendEmail

Sends an email. This function requires the Qnaire context.

(Note: all emails can be tracked in the communicator module)

Syntax

sendEmail(string email, string alias, string subject, string body[, string fromemail][,array Attachments])

Arguments

email: Is an expression of string type. It is the receiver’s email address.

alias: Is an expression of string type. It is the receiver’s alias name.

subject: Is an expression of string type. This is the email’s subject.

body: Is an expression of string type. This is the email’s content.

fromemail: Is an expression of string type. This is the From email’s address.

Attachments: Is an expression of array type. This is the array of Attachment

Return type

empty

Examples

sendEmail(some_email@somemail.com, "somebody", "test", "This is a test");
or
sendEmail("some_email@somemail.com", "somebody", "test", "This is a test","phong@maysunshine.vn");


setRPQId(1742873106);
array arrAttachmentRId = {15548650,15548653};
Array arrAttachment=new Array();
for (number i=0;i<arrAttachmentRId.Count;i++)
{
 Attachment att = new Attachment (arrAttachmentRId[i]);
 arrAttachment.Add(att);
}
sendEmail("an@maysunshine.vn","An","subject test", "body test","antest@cghead.catglobe.com",arrAttachment);