curtis-r Report post Posted 01/02/2025 07:24 PM 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
SupportTeam Report post Posted 01/02/2025 09:34 PM 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
SupportTeam Report post Posted 01/03/2025 12:18 AM 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? 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
curtis-r Report post Posted 01/08/2025 08:46 PM 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
SupportTeam Report post Posted 01/08/2025 09:46 PM 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
curtis-r Report post Posted 01/09/2025 07:18 PM 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. Share this post Link to post
SupportTeam Report post Posted 01/09/2025 09:05 PM 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