Focal Point Banner


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.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     email multiselect - sending data from maintain to dynamic list of recipients on save

Read-Only Read-Only Topic
Go
Search
Notify
Tools
email multiselect - sending data from maintain to dynamic list of recipients on save
 Login/Join
 
Member
posted
I have a foc file with location, name, email.
I have a maintain that captures approval information for collaboration.

When I save updates to data using the maintain, I would like to send an email to a dynamic list of recipients based on location with some of the information that was updated.
The location has already been determined with an established global variable.

I am looking for an email procedure or something I can use to send the emails with.

I need to be able to pass the dynamic list of who I am sending TO:
I need to pass a predetermined RE: (or it can be coded in the email app)
I need to pass some of the fields of data captured with the maintain as MESSAGE:

Then I need some way of verifying that the emails have been sent.

Has anyone developed something like this or know of someone who has?

Bill Cooper
Nationwide
cooperw@nationwide.com

WebFocus 7.6.5


Version 7.6.5, XT, PDF
 
Posts: 3 | Registered: November 20, 2007Report This Post
Master
posted Hide Post
We have a sample JSP file that works at some sites. You can pass the pieces of the e-mail (From, To, Subject and Body) from a Winform using JavaScript to the JSP. It automatically and silently sends the mail. I do not have a way to get a confirmation though.

Here is JS and jsp file. Make sure to change the SMTP client and webpage location to reflect your site. Please note that the EditBox values, 1 - 4 are collected from a Winform. In order for Mainain to pass values to a JavaScript they must be placed on a form. The values in the those editboxes can either be singular or a list.

Mark

  
function OnButton1_Click() {
webpage    = "http://md00715:8080/approot/Email/test.jsp";
getTo      = document.getElementById("EditBox1").value;
getFrom    = document.getElementById("EditBox2").value;
getSubject = document.getElementById("EditBox3").value;
getInqNum  = document.getElementById("EditBox4").value;
url = webpage + "?getTo=" + getTo + "&getFrom=" + getFrom + "&getSubj=" + getSubject + "&getInqNum=" + getInqNum;
window.open(url,"emailwin");
}


<html>
<BODY>

<%@ page import="sun.net.smtp.SmtpClient, java.io.*" %>
<%
 String from=request.getParameter("getFrom");
 String to=request.getParameter("getTo");
 String subj=request.getParameter("getSubj");
 String body=request.getParameter("getBody");

 try{
     SmtpClient client = new SmtpClient("IBIUSMBSA.ibi.com");
     client.from(from);
     client.to(to);
     PrintStream message = client.startMessage();
     message.println("To: " + to);
     message.println("From: " + from);
     message.println("Subject:  " + subj);
     message.println(body);
     client.closeServer();

  }
  catch (IOException e){	
     System.out.println("ERROR SENDING EMAIL:"+e);
  }
%>

<script language="JavaScript">
{
window.close();
}
</script>

</BODY
</html>

 
Posts: 663 | Location: New York | Registered: May 08, 2003Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     email multiselect - sending data from maintain to dynamic list of recipients on save

Copyright © 1996-2020 Information Builders