Both sides previous revision Previous revision Next revision | Previous revision |
examples:record [2016/09/21 06:47] – borja | examples:record [2016/09/21 06:53] (current) – borja |
---|
===== VoiceXML Record and POST a message ===== | ===== VoiceXML Example : Record and POST a message ===== |
| |
**Record message to mail** | **Record message to mail** |
//$mail->Host = "smtp.gmail.com"; // sets GMAIL as the SMTP server | //$mail->Host = "smtp.gmail.com"; // sets GMAIL as the SMTP server |
//$mail->Port = 465; // set the SMTP port for the GMAIL server | //$mail->Port = 465; // set the SMTP port for the GMAIL server |
//$mail->Username = "bsixto@gmail.com"; // GMAIL username | //$mail->Username = "name@gmail.com"; // GMAIL username |
//$mail->Password = "xxxxxx"; // GMAIL password | //$mail->Password = "xxxxxx"; // GMAIL password |
//$mail->AddReplyTo("bsixto@gmail.com", "First Last"); | //$mail->AddReplyTo("name@gmail.com", "First Last"); |
| |
//$mail->Host = "smtp.free.fr"; // sets GMAIL as the SMTP server | //$mail->Host = "smtp.free.fr"; // sets GMAIL as the SMTP server |
//$mail->Port = 25; // set the SMTP port for the GMAIL server | //$mail->Port = 25; // set the SMTP port for the GMAIL server |
| |
$mail->From = "marketing@i6net.com"; | $mail->From = "marketing@domain.com"; |
$mail->FromName = "i6net"; | $mail->FromName = "Ulex.fr"; |
| |
//$mail->AddAddress("isabel.desa@i6net.com", "Isabel"); | $mail->AddAddress("borja.sixto@domain.com", "Borja"); |
$mail->AddAddress("borja.sixto@i6net.com", "Borja"); | $mail->AddAddress("marketing@ulex.fr", "Ulex.fr"); |
$mail->AddAddress("marketing@i6net.com", "i6net"); | |
| |
//$mail->AddAddress("pascal@davi.fr", "Pascal"); | $mail->Subject = "Message : from ".$caller." to Ulex.fr"; |
$mail->Subject = "Message : from ".$caller." to i6net"; | |
$mail->Body = "A file is attached ("."mp3".")\n"; | $mail->Body = "A file is attached ("."mp3".")\n"; |
| |
| |
Download : | Download : |
[[http://links.i6net.com/vxml_examples/messagebox/record.vxml|record.vxml]] | [[http://downloads.voximal.com/vxml_examples/messagebox/record.vxml|record.vxml]] |
[[http://links.i6net.com/vxml_examples/messagebox/send.php.txt|send.php]] | [[http://downloads.voximal.com/vxml_examples/messagebox/send.php.txt|send.php]] |