I know this information is loosely outlined aboveI just wanted to post the files and configurations that worked for me to enable SMTP mail to be from CVP Studio Apps.
All config (xml) and jar files are in the <CVPHome>\VXMLServer\Tomcat\conf (xml config files) and <CVPHome>\VXMLServer\Tomcat\common\lib (jar files) folders.
2 of the 3 jar files can be downloaded from
here mail.jar can be extracted from the javamailX_X_X.zip file and activation.jar can be extracted from the JavaBeans Activation Framework (jaf-X_X_X.zip). The third file (naming-factory.jar) can be found
here, once all files are downloaded copy them into the lib directory mentioned above.
Next, the following lines were added context.xml and server.xml config files.
In the context.xml file the next line is added within the <Context> tags where JNDIMailName is the JNDI Name you have used in the Email Element in your CVP Studio App.
<ResourceLink global="mail/JNDIMailName" name="mail/JNDIMailName" type="javax.mail.Session"/>
In the server.xml file the next line is added within the <GlobalNamingResources> tags, again JNDIMailName is the JNDI Name you have used in the Email Element in your CVP Studio App, and SMTP-ServerNameOrIPAddress is the IP address or host name for the SMTP server you'll be sending emails to.
<Resource auth="Container" name="mail/JNDIMailName" type="javax.mail.Session" mail.smtp.host="SMTP-ServerNameOrIPAddress" />
The final step is to stop and restart the VXML Server via CVP Ops console.
Note: This process was used on CVP 7.X, also the SMTP server needs to allow unauthenticated email requests from the VXML server.
I hope someone finds this helpful.
Mike Jezierski