Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Macro to send an email for AJAX client.

Hi,

Below piece of code works fine for Plugin but fails for Ajax. Can anyone help me to get its Ajax equivalent.

Set vOlApp = CreateObject("Outlook.Application")

Set vMessage = vOlApp.CreateItem(olMailItem)

vMessage.Subject = "alert message"

vMessage.To = "abc@yahoo.com"

vMessage.bcc =  ActiveDocument.Variables("EmailList").GetContent.String

vMessage.Body = "Please type here"

Thanks in advance!

Tanaka

1 Reply
Not applicable
Author

AJAX is client-side, the code you have is server-side. You can't control what is installed on the client, so on the client (according to that code) you need a copy of Qlikview and Outlook installed to make it run (not that the code would run since you need to define ActiveDocument/which QV report it is to get the EmailList)