VoiceGuide IVR Software Main Page
Jump to content

Emails Not Sending

Recommended Posts

We've upgraded to the current VG 7.7.5 and are trying to get email notifications working.  The attached test vbs file (redacted) works on its own, but no emails are generated by VG when a message is left in that mailbox.  Additionally, if I change the server port to 587 the vbs fails, and I thought 587 is better to use these days (but I could be wrong). 

Hopefully the email addresses and such I've redacted from the attached log doesn't affect your diagnosis.

test send email2.vbs

0102_1026_vgEngine.txt

Share this post


Link to post

Attached vgEngine shows a call where a message is left in a voicemail box after user navigates through the [main] and [ER] PLAY modules:

102639.820   20   1   1     1 state [main] Playing wav (C:\Program Files\VoiceGuide\Scripts\Voicemail Server\Main.wav) |
102642.242   20   1   1     1 state [ER] Playing wav (er.wav) |
102643.644   20   1   1     1 state [VmLmStart] RunScript |
102643.659   12   1   1     1 state [VmLmStart] Run Script vbs, onhold= |
102643.707   20   1   1     1 state [VmLmWelc] Playing wav (C:\Program Files (x86)\VoiceGuide\system\voice\VmbWelcomeMsgDefault.wav) |
102644.161   20   1   1     1 state [VmLmRecInit] RunScript |
102644.161    7   1   1     1 state [VmLmRecInit] Run Script vbs, onhold= |
102644.172   20   1   1     1 state [VmLmRec] Recording C:\Program Files (x86)\VoiceGuide\data\VmSave\0002_0102102644_1_1_4155647525_.wav |
102656.145   20   1   1     1 state [VmLmHangup_ForwardLastMsg] RunScript |  : display not set as L2=Running_AfterHangup
102656.146   12   1   1     1 state [VmLmHangup_ForwardLastMsg] Run Script vbs, onhold= |  : display not set as L2=Running_AfterHangup

 

the voicemail message is then forwarded, and runs the command line specified by the user: c:\test.bat

c:\test.bat is not a VoiceGuide system file. It is a user created file.

102656.156   17   1   1     1 api   Vm_Event 1, FORWARD, 0002, C:\Program Files (x86)\VoiceGuide\data\VmSave\0002_0102102644_1_1_4155647525_.wav, ,
102656.172   17   1   1     1       vm    forward vmb start
102656.172   17   1   1     1       vm    forward vmb 0002
102656.173   17   1   1     1       rv    add   VoicemailMessage0002|C:\Program Files (x86)\VoiceGuide\data\VmSave\0002_0102102644_1_1_4155647525_.wav
102656.173   17   1   1     1       rvns  add   VoicemailMessage|C:\Program Files (x86)\VoiceGuide\data\VmSave\0002_0102102644_1_1_4155647525_.wav
102656.175   17   1   1     1       vm    forward run vmb specific command: [c:\test.bat] => exe=[c:\test.bat], args=[]
102656.179   17   1   1     1       StartProcessTask run:[c:\test.bat] args:[] pref_mode=simple_create_process bHideWindow=True
102656.180   17   1   1     1       process_start_simple_createprocess begin
102656.180   17   1   1     1       process_start_simple_createprocess call
102656.191   17   1   1     1       process_start_simple_createprocess returned True
102656.191   17   1   1     1       StartProcessTask  preferred process start method - simple_create_process : started ok. dwProcessId=9784, hProcess=648, dwThreadId=12816, hThread=24024

 

It seems like your "test send email2.vbs" is then ran from that c:\test.bat ?

You would need to debug both your .BAT and your .VBS to confirm that the .VBSis actually started by the .BAT, and how it then progresses.

Best way to debug that is by printing out some tracing entries to some log file to confirm how each command in each file progresses.

Your .VBS is calling some other objects so you may also want to look into what debug information those other 3rd party objects can provide.

Share this post


Link to post

It also looks like the voicemail system is configured to use the inbuilt voicemail->email forwarding to forward the recorded messages, but it looks like you have it set up to use a MAPI provider (trace extract below).

Have you tried setting it up to connect to your email providers SMTP server direct?

image.png.bc5a40fbc09a7fd263bcf1f2b862c230.png

 

102656.204    8                     email QueEmailToSend start

102656.318    8                     email message created
102656.327    8                     email to: REDACTED
102656.328    8                     email to: REDACTED
102656.328    8                     email to: REDACTED
102656.329    8                     email set subject
102656.331    8                     email set body begin
102656.332    8                     email add attachements
102656.332    8                     email attach: C:\Program Files (x86)\VoiceGuide\data\VmSave\0002_0102102644_1_1_4155647525_.wav
102656.402    8                     email set body exec
102656.415    8                     email login_credential_username not set
102656.416    8                     email QueEmailToSend sClientHost=MAPI iClientPort=0 bClientUseSsl=False sCredentialUserName=[] send_id=REDACTED</guid>
102656.421    8                     email connect call. send_id=REDACTED</guid>
102658.717    7               ERROR v7.7.5 - 7.7.8914.31531 (2024-05-28 17:31:00.74) QueEmailToSend_conect_and_send : No such host is known

 

 

Share this post


Link to post

Our default email on this machine was not set-up.  Didn't know that mattered, but I've changed it to Outlook, which is configured for SMTP.  Still the emails are not going out.  Log attached.  I also removed the test.bat path so I can just focus on getting emails to work.  Also, I guess I'll just stick with port 465 since at least the test .vbs script work with it.

Thanks.

0108_1228_vgEngine.zip

Share this post


Link to post

Looks like you are trying to set the system to send the email out using the 'MAPI' approach, but for some reason the MAPI functions in VoiceGuide return error when trying to connect to the specified MAPI server.

Recommend just using the SMTP method.

Please consult your email service provided for the correct server name / port / username / password to use with their SMTP server.

 

102656.318    8                     email message created
102656.327    8                     email to: REDACTED
102656.328    8                     email to: REDACTED
102656.328    8                     email to: REDACTED
102656.329    8                     email set subject
102656.331    8                     email set body begin
102656.332    8                     email add attachements
102656.332    8                     email attach: C:\Program Files (x86)\VoiceGuide\data\VmSave\0002_0102102644_1_1_4155647525_.wav
102656.402    8                     email set body exec
102656.415    8                     email login_credential_username not set
102656.416    8                     email QueEmailToSend sClientHost=MAPI iClientPort=0 bClientUseSsl=False sCredentialUserName=[] send_id=REDACTED</guid>
102656.421    8                     email connect call. send_id=REDACTED</guid>
102658.717    7               ERROR v7.7.5 - 7.7.8914.31531 (2024-05-28 17:31:00.74) QueEmailToSend_conect_and_send : No such host is known

Share this post


Link to post

Sorry for being a newb, but I have it set to SMTP.  I tried changing it to MAPI then back, but still no emails.  Again, the VBS script using the same email credentials works.

chrome_EBJF4EuQFu.jpg.f97054daa1d422345d7f4a9a4b432b5c.jpg

Share this post


Link to post

Can you please post traces when the SMTP email send method is used.

Both the previous traces captured send attempts through MAPI.

Share this post


Link to post

I have always had it set to SMPT (prior screenshot).  Here is another capture, again on SMPT.  And just a reminder that the VBS test SMPT script works perfectly on this machine. Thanks.

0114_1333_vgEngine.zip

Share this post


Link to post

I added an email module to the callflow but didn't know if this was what you wanted.  I phoned in an pressed #9.  I then received the email, so that works.  Thus the problem appears to be only with emails fired after a message is left.

chrome_YldiKLYD2C.jpg.1b51a27f2c78f3a2a34a58134ba9b054.jpgchrome_V4vQmIOVif.jpg.46787dce7f0fe718f8ece0106efcbf40.jpg

0116_1209_vgEngine.zip

 

Edited by SupportTeam

Share this post


Link to post

We just tested voicemail message forwarding to email on our test system and it worked ok when sending using SMTP through smtp.gmail.com port 465.

Traces shows email was sent, and we received the email at the destination email address with the sound file attachment ok.

Trace from our test is at bottom of this post.

 

Looking at your latest vgEngine trace we can see that on your system the settings for the primary email forwarding method as loaded from your VG.INI are:

120934.444    9                     [Voicemail]:ForwardVmEmailMechanism_1 = [MAPI]
120934.444    9                     [Voicemail]:ForwardVmEmailServer_1 - set to default: []
120934.444    9                     [Voicemail]:ForwardVmEmailSmtpPort_1 - empty - set to default: 0

so looks like for some reason your settings in your VG.INI are not getting updated with the settings that you set in VoiceGuide's Voicemail Manager app...

Look at your VG.INI

In the [Voicemail] section what are the values in these entries: ForwardVmEmailMechanism_1, ForwardVmEmailServer_1, ForwardVmEmailSmtpPort_1 ?

They should be:

ForwardVmEmailMechanism_1=SMTP
ForwardVmEmailServer_1=smtp.gmail.com
ForwardVmEmailSmtpPort_1=465

On our test system the Voicemail Manager has set those values in the VG.INI, and on VoiceGuide Service restart those VG.INI values were read in by VoiceGuide Service - and the read in values were seen in the vgEngine log like this:

093940.351    1                     [Voicemail]:ForwardVmEmailMechanism_1 = [SMTP]
093940.351    1                     [Voicemail]:ForwardVmEmailServer_1 = [smtp.gmail.com]
093940.351    1                     [Voicemail]:ForwardVmEmailSmtpPort_1 = [465] => 465

 

Do you perhaps have something installed or configured on your Windows system which 'protects' .INI files from being changed and restores old .INI file if it detects any changes?

 

Trace of a message being recorded and then forwarded to email on our test system:

094000.963   25   3   1     1 state [VmLmWelc] Playing wav (C:\775_250129\data\VmWelc\0001.wav) |
...
094003.963   25   3   1     1 state [VmLmRecInit] RunScript |
...
094003.968   28   3   1     1 api   Run_ResultReturn [VmLmRecFilename]{0001_0119094003_1_3_100@10.1.40.166_.wav}[MsgLenMax]{1800}[Vmb_Name]{111111}[VmbForwardMade]{no}
...
094003.969   25   3   1     1 state [VmLmRec] Recording C:\775_250129\data\VmSave\0001_0119094003_1_3_100@10.1.40.166_.wav |
...
094011.832   33   3   1     1 ev    CallState GCEV_DISCONNECTED, crn=8000001, iEvent=0 ,16384,-1318930952,64, s1:?�, s2:, s3:, build_date: 2024-08-07 15:03:27.84
...
094011.879   33   3   1     1 ev    RecEnd 1033367215 ||
...
094011.880   25   3   1     1 state [VmLmHangup_ForwardLastMsg] RunScript |  : display not set as L2=Running_AfterHangup
...
094011.881   19   3   1     1 state [VmLmHangup_ForwardLastMsg] Run Script vbs, onhold= |  : display not set as L2=Running_AfterHangup
...
094011.885   28               api   vgServices_CommandLink started
094011.886   28   3   1     1 api   vm    RV[VmLmRec_RecLen100ms] not set.
094011.886   28   3   1     1 api   Vm_Event 3, FORWARD, 0001, C:\775_250129\data\VmSave\0001_0119094003_1_3_100@10.1.40.166_.wav, ,
094011.892   28   3   1     1       vm    forward vmb start
094011.892   28   3   1     1       vm    forward vmb 0001
094011.892   28   3   1     1       rv    add   VoicemailMessage0001|C:\775_250129\data\VmSave\0001_0119094003_1_3_100@10.1.40.166_.wav
094011.892   28   3   1     1       rvns  add   VoicemailMessage|C:\775_250129\data\VmSave\0001_0119094003_1_3_100@10.1.40.166_.wav
094011.892   28                     [Voicemail]:ForwardVmEmailSubject = [VoiceGuide Voicemail 001]
094011.893   28   3   1     1       rv    replace start
------------------------------
Voicemail received from $RV_CIDNAME, $RV_CIDNUMBER at $RV_HOUR:$RV_NN $RV_DATE/$RV_MONTH 2


------------------------------
094011.893   28   3   1     1       rv    replace end   
------------------------------
Voicemail received from , 100@10.1.40.166 at 9:40 19-Jan-25 9:40:11 AM/1 2


------------------------------
094011.893   28                     [Voicemail]:ForwardVmEmail_IncludeWavFile = [1] => 1
094011.893   28   3   1     1       vm    forward vmb 0001 email to support@voiceguide.com (wav attached)
094011.893   28   3   1     1       vm    email QueEmailToSend calling_now
094011.893   28   3   1     1       vm    email QueEmailToSend call_returned
094011.893   28   3   1     1       vm    frwrd vmb 0001 end
094011.893   28   3   1     1       vm    MsgLamp control set to [DISABLE]
094011.894   28   3   1     1 api   Run_ResultReturn success
...
094011.895   25   3   1     1 state Hanging up... [Run_ResultReturn - no path match (same vgm)] |
...
094011.902   33   3   1     1 ev    CallState GCEV_DROPCALL, crn=8000001, iEvent=0 ,1,0,32, s1:, s2:, s3:, build_date: 2024-08-07 15:03:27.84
...
094011.909   25   3   1     1 state Waiting for a call |
094011.918   33   3   1     1 ev    CallState GCEV_RELEASECALL, crn=8000001, iEvent=2137 ,0,0,0, s1:GCST_NULL, s2:, s3:, build_date: 2024-08-07 15:03:27.84
...
094011.966   20                     email message created
094011.972   20                     email to: support@voiceguide.com
094011.973   20                     email set subject
094011.973   20                     email set body begin
094011.973   20                     email add attachements
094011.973   20                     email attach: C:\775_250129\data\VmSave\0001_0119094003_1_3_100@10.1.40.166_.wav
094012.000   20                     email set body exec
094012.005   20                     email setting EnableSsl as port = 465
094012.005   20                     email QueEmailToSend sClientHost=smtp.gmail.com iClientPort=465 bClientUseSsl=True sCredentialUserName=[xxxxxxxx@gmail.com] send_id=<to>support@voiceguide.com</to><subject>VoiceGuide Voicemail 001</subject><guid>c522e48e-7df5-4c05-b9f6-f6e1dff9c9f2</guid>
094012.009   20                     email connect call. send_id=<to>support@voiceguide.com</to><subject>VoiceGuide Voicemail 001</subject><guid>c522e48e-7df5-4c05-b9f6-f6e1dff9c9f2</guid>
...
094013.566   19                     email connect returned. send_id=<to>support@voiceguide.com</to><subject>VoiceGuide Voicemail 001</subject><guid>c522e48e-7df5-4c05-b9f6-f6e1dff9c9f2</guid>
094013.953   19                     email authenticate returned. send_id=<to>support@voiceguide.com</to><subject>VoiceGuide Voicemail 001</subject><guid>c522e48e-7df5-4c05-b9f6-f6e1dff9c9f2</guid>
094016.097   18                     email send returned. send_id=<to>support@voiceguide.com</to><subject>VoiceGuide Voicemail 001</subject><guid>c522e48e-7df5-4c05-b9f6-f6e1dff9c9f2</guid>
094016.362   19                     email disconnected. send_id=<to>support@voiceguide.com</to><subject>VoiceGuide Voicemail 001</subject><guid>c522e48e-7df5-4c05-b9f6-f6e1dff9c9f2</guid>

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×