Perfetto!
Thanks a lot!
On 1 Giu, 07:38, Narayan Raman <
nara...@sahi.co.in> wrote:
> I forgot to mention that you would need mail.jar and activation.jar from
> java mail for this. (
http://java.sun.com/products/javamail/downloads/index.html)
> You will also need to add these jars to Sahi's classpath in start_sahi.bat
>
> @ECHO OFF
> SET SAHI_HOME=..\..
> SET SAHI_USERDATA_DIR=..
> SET
> SAHI_EXT_CLASS_PATH=%SAHI_HOME%\extlib\mail\mail.jar;%SAHI_HOME%\extlib\mail\activation.jar
> CALL %SAHI_HOME%\bin\sahi.bat
>
>
>
> On Tue, Jun 1, 2010 at 11:00 AM, Narayan Raman <
nara...@sahi.co.in> wrote:
> > Hi Luigi,
>
> > There is a small class in Sahi which can be used to send emails. You could
> > use it like this:
>
> > var $host = "
smtp.myserver.com";
> > var $port = 25;
> > var $username = "
myem...@example.com";
> > var $password = "mypassword";
> > var $mailer = new net.sf.sahi.ant.Mailer($host, $port, $username,
> > $password);
> > $mailer.send("
f...@example.com", "
t...@example.com", "my subject", "my email
> > body");
>
> > Note that it works only for smtp which does not need ssl or tls. We can add
> > support for ssl/tls if needed. If you do not need a username password, use
> > var $mailer = new net.sf.sahi.ant.Mailer($host, $port);
>
> > Regards,
> > Narayan
>
> > On Tue, Jun 1, 2010 at 2:26 AM, Luigi <
l.fug...@gmail.com> wrote:
>
> >> Hi to all,
> >> is it possible to send email via SAHI?
>
> >> I'm running SAHI on windows machine... otherwise I would have used a
> >> shell script with _execute($script_path);
>
> >> Any suggestion?
>
> >> Regards,
> >> Luigi
>
> >> --
> >> You received this message because you are subscribed to the Google Groups
> >> "sahi" group.
> >> To post to this group, send email to
sa...@googlegroups.com.
> >> To unsubscribe from this group, send email to
> >>
sahi+uns...@googlegroups.com <
sahi%2Bunsu...@googlegroups.com>.
> Tyto Software Pvt. Ltdhttp://www.tytosoftware.comhttp://
sahi.co.in+91 98809 65555begin_of_the_skype_highlighting
+91 98809 65555 end_of_the_skype_highlighting
>
> http://blog.sahi.co.inhttp://
twitter.com/_sahi