From: Brad Stiritz on
Hi,

I'm sorry, but I'm confused by your comment--

> the code is NOT .net based - it's java..

since the first two lines of the posted code solution from another thread (see first reply above) appear to be .NET interface commands--

NET.addAssembly('System.Net')
import System.Net.Mail.*;

Brad

"us " <us(a)neurol.unizh.ch> wrote in message <hogdgl$pe5$1(a)fred.mathworks.com>...
> "Brad Stiritz" <sorry.no.contact(a)info.net> wrote in message <hogctd$f91$1(a)fred.mathworks.com>...
> > Hi "us",
> >
> > Thank you so much for referring me to your previously posted solution to my sendmail problem. I executed your .NET-interface-based code in R2010a and unfortunately received an error message:
> >
> > >> mySmtpClient.Send(myMail)
> > ??? Message: The SMTP server requires a secure connection or the client was
> > not authenticated. The server response was: 5.7.0 Must issue a STARTTLS
> > command first. 22sm55690iwn.4
> > Source: System
> > HelpLink:
> >
> > Any further suggestions appreciated,
> > Thanks,
> > Brad
>
> but - the code is NOT .net based - it's java...
>
> did you use this very syntax(?)...
>
> props=java.lang.System.getProperties;
> % which does NOT use .net's SYSTEM...
>
> again, we're living behind several firewalls and it works perfectly well...
>
> us