You need to sign in to do that
Don't have an account?

Can I send an email through SControl ?
Can I send an email through Scontrol? On running SControl I want to send email notification to specific users....
Can it be done usinf SControl?
If Yes then how?
Waiting for reply.
Ragards
Vaishali.
Hi Ron thanx for the reply......
can u elaborate more on how modifying records results in sending email notifications? is there any way by which i can send mails using ajax toolkit and SControls?
Regards
Vaishali.
Message Edited by vaishali g on 11-08-2006 08:18 PM
Here is a sample that sends email from s-control
hi Venkat
Thanx for the reply.....will try out with this......
Code Below (old school before ajaxbeta 3.3, too lazy to rewrite it):
Code:
Already at http://community.salesforce.com/sforce/board/message?board.id=scontrols&message.id=1063
Without using Email Template :-
var sample_SFDC_ID = "{!Sample_ID}";
var managerEmailId="003T0000005fmrv";
var requestorEmailID="xyz@gmail.com";
var url="/email/author/emailauthor.jsp?retURL=/"+sample_SFDC_ID+"&"+
"p2_lkid="+managerEmailId+"&"+ // This takes a contact id and resolves it to the first “to” entry
"p24="+requestorEmailID+"&" + // sets the ‘additional to’ field. Here is where you can aggregate all the email fields from your record
"p6=Some+subject&"+
"p7=This is the body of the email {!Sample_ID}";
window.parent.document.location.href=url;
Using Email Template :-
var sample_SFDC_ID = "{!Sample_ID}";
var emailTemplate = "00XT0000000qwas";
var managerEmailId="003T0000005fmrv";
var requestorEmailID=xyz@gmail.com;
var url="/email/author/emailauthor.jsp?retURL=/"+sample_SFDC_ID+"&"+
"template_id="+emailTemplate+"&"+ //Replace with your template ID
"p2_lkid="+managerEmailId+"&"+ // This takes a contact id and resolves it to the first “to” entry
"p24="+requestorEmailID+"&" + // sets the ‘additional to’ field. Here is where you can aggregate all the email fields from your record
"p6=Some+subject&"+
"p7=This is the body of the email {!Sample_ID}";
Addtional Fields you have
new_template: Set to 1 if you want to include the attachment that your template may have, otherwise set to zero or exclude this parm
save :set to any value and the email is sent automatically. Exclude the parm to review the page and then press send
p3_lkid: sets the ‘related’ to drop down box and value correctly
p4: the cc email
p5: the bcc email
- textmode - "t" or "r" for "text" or "rich text" (HTML) modes
- p23 - HTML content string for use in rich text mode
Just include textmode=r and p23="< ... html string >" with you other parameters to create an HTML email:There is a limit to the number of characters you can pass through the URL string, however you can "push" your HTML
directly from the s-control to the rich text editor once the form is open to get around the limitation.
Here's a sample s-control that does just that:
<P>dasd</P>
<P>asd</P>
<P>ada</P>
<P>da</P>
<P>da</P>
<P>dasd</P>
How does the function: is translated in 13.0 version ?
http://www.salesforce.com/us/developer/docs/ajax/Content/sforce_api_ajax_beta.htm
@ http://www.salesforce.com/us/developer/docs/ajax/Content/sforce_api_ajax_beta.htm
Message Edited by Chirag Mehta on 08-19-2008 10:09 PM