Having buttons with javascripts function in mail.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi All,

I need to have a button in a mail which needs to perform some javascript
function when the button is clicked. If i send a mail from an console
application with HTML format content. The scripts are not getting executed in
outlook. if i reduce the security settings also the scripts are not working.
Is there any other way to achieve the target. I need to have a button in a
mail, which needs to perform some action. If i use Macro or Activex those
contents are also getting blocked by mail sever. So kindly me out in this.

Thanks,
Anbu
 
I need to have a button in a mail which needs to perform some
javascript
function when the button is clicked. If i send a mail from an
console
application with HTML format content. The scripts are not getting
executed in
outlook. if i reduce the security settings also the scripts are not
working.
Is there any other way to achieve the target. I need to have a
button in a
mail, which needs to perform some action. If i use Macro or Activex
those
contents are also getting blocked by mail sever. So kindly me out in
this.


What is the point in configuring a setup that only works for you? So
you reduce your security settings. Maybe you change Outlook's
security options to use the Internet security zone instead of the
default Restricted Sites security zone. So what? Pretty useless to
have a setup made by yourself using scripts you wrote and that work
for yourself alone. Other Outlook users will be using the Restricted
Sites security zone (at its default High level) which means NO SCRIPTS
EXECUTE IN HTML E-MAILS when viewed in Outlook.

If you want to use HTML scripting then create a web site with it and
put a URL to the page in your e-mails. The recipient will then decide
whether or not to visit your site. Thankfully you don't get to
control the recipient's security setup in their e-mail client.
 
VanguardLH said:
...


What is the point in configuring a setup that only works for you? So
you reduce your security settings. Maybe you change Outlook's
security options to use the Internet security zone instead of the
default Restricted Sites security zone. So what? Pretty useless to
have a setup made by yourself using scripts you wrote and that work
for yourself alone. Other Outlook users will be using the Restricted
Sites security zone (at its default High level) which means NO SCRIPTS
EXECUTE IN HTML E-MAILS when viewed in Outlook.

If you want to use HTML scripting then create a web site with it and
put a URL to the page in your e-mails. The recipient will then decide
whether or not to visit your site. Thankfully you don't get to
control the recipient's security setup in their e-mail client.
Thanks VanguardLH,

your suggestions are nice, but my actual requirement is i need to call a
webservices on click a button in a mail. So i need to get click event of the
button. If i use Control toolbox's button control and i code it for click of
that button the code in not working in the receipent outlook mail, that is
it simply shows button but no action is taking place when user clicks on the
button.

I need to display a msgbox when user clicks on the button. If i code macro
also its getting blocked. Is there any other way to acheive the task.

Thanks a lot,
Anbu.
 
Anbu said:
Thanks VanguardLH,

your suggestions are nice, but my actual requirement is i need to
call a
webservices on click a button in a mail. So i need to get click
event of the
button. If i use Control toolbox's button control and i code it for
click of
that button the code in not working in the receipent outlook mail,
that is
it simply shows button but no action is taking place when user
clicks on the
button.

I need to display a msgbox when user clicks on the button. If i code
macro
also its getting blocked. Is there any other way to acheive the
task.


All of which requires the security zone under which HTML-formatted
e-mails get rendered will support scripting. What happens when you
reconfigure Outlook's security to use the Internet security zone
instead of the Restricted Sites security zone? Also be aware that
while Outlook will use libraries from Internet Explorer to render HTML
formatted e-mails that Outlook is not a full-fledged web browser so it
may not display HTML pages as well as a web browser.
 
Thanks VanguardLH,
Even lowering the security settings of outlook, its not working as expected.
Is there any other way to acheive my task.?...

Regards,
Anbu...
 
in message
Even lowering the security settings of outlook, its not working as
expected.
Is there any other way to acheive my task.?...


Could be anti-malware running on your host that is protecting you from
yourself. Outlook will not render all web pages correctly. It is not
a web browser. In fact, you can define folders in the tree and change
its properties so it points at a web page; however, the web page may
not render correctly.

The folks over at www.outlookcode.com might have more info.
 
Back
Top