VoiceXML Forum Community Message Board


Post New Topic  Post A Reply
my profile | register | search | faq | forum home
  next oldest topic   next newest topic
» VoiceXML Forum Community Message Board   » Newbies   » Sending responses via Email

 - UBBFriend: Email this page to someone!    
Author Topic: Sending responses via Email
arball
Junior Member
Member # 3848

Rate Member
Icon 1 posted October 05, 2006 04:18 PM      Profile for arball   Email arball   Send New Private Message       Edit/Delete Post   Reply With Quote 
Hi there, I'm having a little bit of trouble on knowing where to begin sending the results of my VXML app to my email. I havent a clue where to start or how to make it happen. I've included my XML code below, and am using BeVocal Cafe to do this. My app just takes in simple things like Name, Chapter, Shirt size, i just want ot email these simple reponses to my email. Any help would be greatly appreciated. Thanks.

code:
<?xml version="1.0"?>
<!DOCTYPE vxml PUBLIC "-//BeVocal Inc//VoiceXML 2.0//EN" "http://cafe.bevocal.com/libraries/dtd/vxml2-0-bevocal.dtd">
<vxml version="2.0" xmlns="http://www.w3.org/2001/vxml">

<grammar version="1.0">

[
(bevocal reload)
(dtmf-star dtmf-star dtmf-star)
]
</grammar>


<form id="welcome">
<block>
<prompt>Thank you for calling Omega Phi Alpha, Nu Chapter. Using this program, you can r s v p for district formal.</prompt>
<goto next="#question1"/>
</block>
</form>

<form id="question1">
<record name="name" maxtime="2s" finalsilence="1s" type="audio/wav" beep="true" dtmfterm="true" modal="true">
<prompt>Please say your first and last name.</prompt>
</record>
<filled>
<prompt>
Your name is <audio expr="name" />.
</prompt>
<goto next="#question2"/>
</filled>
</form>


<form id="question2">
<field name="chapter">
<prompt>
What chapter are you from?
</prompt>
<grammar type="application/x-nuance-gsl">
[ kai sigma nu ]
</grammar>
<help> Please choose either Chi, Sigma or Nu. </help>
<filled>
<prompt>
You are from <value expr="chapter"/> Chapter.
</prompt>
<goto next="#question3"/>
</filled>
</field>
</form>

<form id="question3">
<field name="guests">
<prompt>
How many guests will you be bringing?
</prompt>
<grammar type="application/x-nuance-gsl">
[ zero one two three ]
</grammar>
<help> Please choose either zero, one, two or three. </help>
<filled>
<prompt>
Your number of guests is <value expr="guests"/>.
</prompt>
<goto next="#question4"/>
</filled>
</field>
</form>

<form id="question4">
<field name="shirt">
<prompt>
What size formal tee shirt would you like?
</prompt>
<grammar type="application/x-nuance-gsl">
[ small medium large ]
</grammar>
<help> Please choose either small, medium or large. </help>
<filled>
<prompt>
You have ordered a <value expr="shirt"/> tee shirt.
</prompt>
<goto next="#thankyou"/>
</filled>
</field>
</form>

<form id="thankyou">
<block>
<prompt>Thank you for r s v peeing!</prompt>
<exit/>
</block>
</form>

</vxml>


Posts: 1 | Registered: Oct 2006  |  IP: Logged
RaxitSheth
Member
Member # 3142

Member Rated:
4
Icon 1 posted October 06, 2006 12:07 PM      Profile for RaxitSheth   Author's Homepage   Email RaxitSheth   Send New Private Message       Edit/Delete Post   Reply With Quote 
E-mail sending is not the responsibility of VoiceXml.

What you can do is use any serverside language,like php,asp,perl,jsp etc. that will send the e-mail.

Now the question is how your serverside app. know the value of variable. ? -- refer <submit>

this is one possible sol.

--raxit sheth

Posts: 34 | From: India | Registered: May 2005  |  IP: Logged
MrMagoo
Junior Member
Member # 3240

Rate Member
Icon 1 posted October 29, 2006 01:32 AM      Profile for MrMagoo   Author's Homepage   Email MrMagoo   Send New Private Message       Edit/Delete Post   Reply With Quote 
Another possibility would be to use the object tag for that purpose.

/dirk

Posts: 7 | From: Germany | Registered: Sep 2005  |  IP: Logged


All times are Eastern  
Post New Topic  Post A Reply Close Topic    Move Topic    Delete Topic next oldest topic   next newest topic
 - Printer-friendly view of this topic
Hop To:

Contact Us | VoiceXML Forum



Powered by Infopop Corporation
UBB.classicTM 6.3.1.2