As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.
Join the TIBCO Community TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.
From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
Request access to the private WebFOCUS User Group (login required) to network with fellow members.
Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.
Hi, Does anyone have javascript code to send a silent email with a list of BCCs from Maintain. Thank you, NickThis message has been edited. Last edited by: Kerry,
WebFOCUS 7.7.03 & 8.0.7 Windows HTML, Excel, PDF, etc. Also, using Maintain, etc.
Hi Anmol, Currently, a Maintain sends many emails to a list of receipients. Although, this has some degree of success, a better method would be to send one email with the list of receipients in the BCC list. Do you have javascript to send emails with support for BCC? IBI's method does not support BCC. Thank you in advance, Nick
WebFOCUS 7.7.03 & 8.0.7 Windows HTML, Excel, PDF, etc. Also, using Maintain, etc.
We have a jsp technique that can be performed from a Maintain procedure that takes From, To, Subject and Body. It uses smtpClient to kick off a silent e-mail using the parms collected from the Maintain procedure.
There does not seem to be any way to add CC, BCC or attachments. Nick (and I) are wondering if anyone has a way to do this as well.
Thanks Mark
Posts: 663 | Location: New York | Registered: May 08, 2003
The last time I did this, which was a few years ago now, I used an AJAX call to an ASP page and CDONTS. Requires IIS.
The ASP method is server, not client / browser based, so can be run from any browser / machine.
The data for the e-mail was sent with the AJAX call and picked up in the Request.QueryString. Full cc and bcc are available. I think I had problems with attachments though!
Alan. WF 7.705/8.007
Posts: 1451 | Location: Portugal | Registered: February 07, 2007
Hi Alan, Thanks for the info. I am running IIS on the server, so this should be a viable solution. Can you provide code so I can use and give to Mark for other users? Thank you, Nick
WebFOCUS 7.7.03 & 8.0.7 Windows HTML, Excel, PDF, etc. Also, using Maintain, etc.
Unfortunately, or not, MS have stopped CDONTS now and use CDOSYS. This should be the same(ish).
The code I have is tied in to the old, and is really difficult to separate out, and I don't have any time at the moment.
Basically create an ASP page, using examples you can Google, to use CDOSYS to send an email. That is pretty straight forward, and should work on its own with parameters supplied in the URL.
Add a javascript to your page for an AJAX call. There are examples on the forum here. Remove any ajax response code, you won't need that.
Add the parameters you want to send on the email from your page, and add to the URL you will use to call the asp with the AJAX GET call.
Alan. WF 7.705/8.007
Posts: 1451 | Location: Portugal | Registered: February 07, 2007
Hi Alan, I am not very familar with AJAX and the integration of the parts you presented. Is it possible to use only javascript to send to a list of BCCs? Nick
WebFOCUS 7.7.03 & 8.0.7 Windows HTML, Excel, PDF, etc. Also, using Maintain, etc.
Like Alan, I use CDONTS via ASP but not via Maintain (although the principle is identical). It's a piece of cake and there are lots of examples on the interweb.
To my knowledge, there is no JavaScript alternative without AJAX, although you might have success within your HTML page using VBScript instead - I've not tried it as there are certain settings that you wouldn't want visible in your code!
One thing I would also make a note of is that many sites will actively block certain ports such as port 25 which will then preclude sending SMTP. I have also have problems in the past with McAfee blocking some things, so make sure you check.
If you have Report Caster installed then you should be able to run the ASP on that server as it's likely to be the web server as well(?) and will also have the ports set to your needs etc.
I also use CDONTS using VBScript, mainly to allow post processing of Excel templates to format and resave as proper .xls files before sending them out to the end users as attachments. It reduces the size and it's something you can't do within Report Caster.