For the script below how I can take the value of a Drop Box(With some email address as values)
and put into cCC?
Thnaks
var
oDoc = event.target;
oDoc.mailDoc({
bUI
: true,
cTo
: "xxx@example.com",
cCC
: "",
cSubject
: "The Latest News",
cMsg
: "A.P., attached is my latest news story in PDF."
});
Solved! Go to Solution.
Views
Replies
Total Likes
In the earlier code where you assign the value for CC Address use this instead..
var CCAddress = "" + DropDown1.rawValue;
That can help..
Thanks
Srini
Views
Replies
Total Likes
Try this instead either in the Click event or preSubmit event of the Email Submit button:
event.target.submitForm({cURL:"mailto:"+ "xxx@example.com" + "?cc=" + DropDown1.rawValue + "&subject=" + "The Latest News" + "&body=" + "A.P., attached is my latest news story in PDF.",cSubmitAs:"PDF"});
Thanks
Srini
Views
Replies
Total Likes
Hi Shrini I am using the script below:
How I can genarate cCC from the DD values?
THANKS AGAIN
var
myDoc = event.target;
var
address = "kkk@xxx.org";
var msgBody = "Please find the Form attached.\n\nThank You!";
var
Sender = ( form1.Page1.EmployeeInfo.Row1.Last_Name.rawValue+" "+ form1.Page1.EmployeeInfo.Row1.First_Name.rawValue+" "+ form1.Page1.EmployeeInfo.Row1.Effective_Date.formattedValue);
myDoc.mailDoc({ bUI
: false,
cTo
: address,
cSubject
: Sender,
cMsg
: msgBody,
cSubmitAs
: "PDF"});
}
Views
Replies
Total Likes
The email method you are trying has issue in sending the CC email address.
So I want you to try with the other method of sending the email.
//var myDoc = event.target;
var address = "kkk@xxx.org";
var CCAddress = DropDown1.rawValue; // Take the Dropdown value into this variable.
var msgBody = "Please find the Form attached.\n\nThank You!";
var Sender = ( form1.Page1.EmployeeInfo.Row1.Last_Name.rawValue+" "+ form1.Page1.EmployeeInfo.Row1.First_Name.rawValue+" "+ form1.Page1.EmployeeInfo.Row1.Effective_Date.formattedValue);
//myDoc.mailDoc({ bUI: false,cTo: address,cSubject: Sender, cMsg: msgBody, cSubmitAs: "PDF"});
event.target.submitForm({cURL:"mailto:"+ address + "?cc=" + CCAddress + "&subject=" + Sender + "&body=" + msgBody,cSubmitAs:"PDF"});
Thanks
Srini
Views
Replies
Total Likes
Thank you Shrini it's work fine!
There is one more issue in case user does not select a value from the Drop Down Box!
In this case we get the message:
Micrsoft office Outlook does not recognize ""null"
There is any way to solve this issue?
Thank you
Views
Replies
Total Likes
In the earlier code where you assign the value for CC Address use this instead..
var CCAddress = "" + DropDown1.rawValue;
That can help..
Thanks
Srini
Views
Replies
Total Likes
Views
Likes
Replies