Toggle menu
862
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
Cg_pham (talk | contribs)
No edit summary
No edit summary
 
(6 intermediate revisions by 4 users not shown)
Line 1: Line 1:
[[Category:Email_and_SMS_Functions]]
{{HelpFiles}}

= sendEmail =
 
====sendEmail====


Sends an email to another user. If the email has merge fields, it will be merged before sending.
Sends an email. '''This function requires the Qnaire context'''.


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


'''Syntax'''
== Syntax ==


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


'''Arguments'''
== Arguments ==


''email:'' Is an expression of string type. It is the receiver’s email address.
''email:'' Is an expression of string type. It is the receiver’s email address.
Line 22: Line 20:
''body:'' Is an expression of string type. This is the email’s content.
''body:'' Is an expression of string type. This is the email’s content.


'''Return type'''
''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
empty


'''Examples'''
== Examples ==


<source lang="javascript">
sendEmail(“[email protected]”, "somebody", "test", "This is a test");
sendEmail(“[email protected]”, "somebody", "test", "This is a test");
 
or
'''Availability'''
sendEmail("[email protected]", "somebody", "test", "This is a test","[email protected]");
 
</source>
Version 4.8
<br><source lang="javascript">
__NOTOC__
setRPQId(1742873106);
<!-- imported from file: 575.htm-->
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("[email protected]","Alias","subject test", "body test","[email protected]",arrAttachment);
</source>
[[Category:Email_and_SMS_Functions]]

Latest revision as of 04:07, 23 March 2022

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("[email protected]", "somebody", "test", "This is a test","[email protected]");


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("[email protected]","Alias","subject test", "body test","[email protected]",arrAttachment);