I am using the email_send2() function to send emails from my web app through a profile setup in the Email Settings of Alpha WAS. When testing, the emails are all getting sent fine through my gmail server on a Google Apps for Business account. The problem is that whenever the email_send2() function comes up in the code, the script ends there. It doesn't continue. This happens in many different components of my app. Why might this be happening?

Also, when I test in the Interactive Window, I get the error of:

ERROR: Could not connect to SMTP server: smpt.obitium.com

"smpt.obitium.com" is nowhere in my email profile settings. Everything correctly points to smtp.gmail.com and the emails are all sent correctly. It is just that the function kills my scripts and I cannot figure out why. Can you help point me in the right direction here?

Thank you,