18 January 2026:


This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.



Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.

Sending email from Sahi

GayathriGayathri Members
edited January 2013 in Sahi - Open Source
I am trying to send email from Sahi OS.

As per the documentation, I have added all the required jar files to sahi/userdata/extlib/mail folder. I have set the classpath in 'start_dashboard.bat' file as :
SET SAHI_EXT_CLASS_PATH=%SAHI_USERDATA_DIR%\extlib\mail\mail.jar;%SAHI_USERDATA_DIR%\extlib\mail\activation.jar;%SAHI_HOME%\lib\ant-sahi.jar;

I have updated the sendEmail function to relate to my org host and credentials.

When I execute this script, I am receiving the below error on the log:

ERROR
TypeError: [JavaPackage net.sf.sahi.ant.Mailer] is not a function, it is object. (RhinoScriptRunner.run#10) at Jan 11, 2013 3:50:16 PM


Please help me to resolve this and to send the email.
Sign In or Register to comment.