Expand my Community achievements bar.

Submit by Email with CC for a pdf as an attachment

Avatar

Former Community Member

Hello,

I am using the codes below for a regular submit button to submit by email and having a problem of CC address. I hard-coded the CC address but it does not seem to recognize it, it keep taking the address in the "To" to put on the CC address. Can any one please check for me if there is any wrong with the codes below on the mouse up event:

var cToAddr = "test1@abc.com";
var cCCAddr = "test2@abc.com";

//Set the subject and body text for the e-mail message
var cSubLine = "Craft Issue Tracking Form";
var cBody = "Please see the attached form.";

// Send the form data as an FDF attachment on an e-mail
event.target.mailDoc({bUI: true, cTo: cToAddr, cCc: cCCAddr, cSubject: cSubLine, cMsg: cBody});

Thanks in advance,

Han Dao

2 Replies

Avatar

Level 10

Try this..

If you are using a regular Button then place the below code in the click event of the button.

event.target.submitForm({cURL:"mailto:"+ cToAddr + "?cc=" + cCCAddr + "&subject=" + cSubLine + "&body=" + cBody,cSubmitAs:"PDF"});

Thanks

Srini

var cToAddr = "test1@abc.com";
var cCCAddr = "test2@abc.com";

//Set the subject and body text for the e-mail message
var cSubLine = "Craft Issue Tracking Form";
var cBody = "Please see the attached form.";

// Send the form data as an FDF attachment on an e-mail

Avatar

Former Community Member

Hi Srini,

No, it does not work right. It still put the test1@abc.com in the "CC" instead pf test2. I think it may be a problem of GroupWise 7.0 or so since it works fine with Outlook.

Thanks,

Han Dao