2

In my requirement I need to implement email option. By default I have to open outlook as default composer. I am using below code to open outlook as default

 var mailData = 'https://outlook.live.com/owa/?path=/mail/action/compose&to=' + actionData['to'] + '&subject=' + actionData['subject'] + '&body='+actionData['body']+'&CC='+actionData['cc']+'&bcc='+actionData['bcc']
    window.open(mailData, '_blank', 'location=yes,height=600,width=900,scrollbars=yes,status=yes');

But CC,BCC property not working

How to resolve this error

5
  • you use CC and bcc ... is case important? Commented Jul 12, 2021 at 8:27
  • @Bravo thanks for reply.I have tried different cases such as(cc,CC,Cc,bcc,BCC,Bcc) even its not working Commented Jul 12, 2021 at 8:34
  • are all the parameters properly escaped? i.e. do you have & in the body for example? have you tried moving cc and bcc before the body? Commented Jul 12, 2021 at 8:36
  • This older SO answer says that the cc field is not implemented (I assume the same goes for bcc); but a comment points out that it applies to an outdated format (apparently, so does your question). I don't know if the new format supports those fields and how to use it, though. Commented Jul 12, 2021 at 8:39
  • the old link redirects to the new mail/deeplink link - and you're right @FZs cc is not supported Commented Jul 12, 2021 at 8:50

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.