You can.
I know it because ive used the Perl Net::SMTP module with my college's SMTP
host, using my coolege's email username and password.  I just don't know if
Microsoft will let anyone do that with theirs, even if it is through your
own account. They might block such an attempt you can only try it and see.

javax.mail.Session has this method:

"setPasswordAuthentication

public void setPasswordAuthentication(URLName url,
                                     PasswordAuthentication pw)

   Save a PasswordAuthentication for this (store or transport) URLName. If
pw is null the entry corresponding to the URLName is removed.

This is normally used only by the store or transport implementations to
allow authentication information to be shared among multiple uses of a
session."

The URL I imagine would the URL of the actual SMTP server, so if you knew
the name of that..(i think if you used a outlook, or outlook express with
your hotmail, it would have the SMTP address in the settings somewhere)

Having said that, if you can use hotmail with outlook/outlook express, then
you can use it with any mail program provided you know the URL to use.

S

"JC Rules"




From: rich boone <[EMAIL PROTECTED]>
Reply-To: "A mailing list for discussion about Sun Microsystem's Java
        Servlet API Technology." <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re: mail servers question
Date: Fri, 28 Feb 2003 14:47:37 -0500
MIME-Version: 1.0
X-Originating-IP: [209.204.71.120]
Received: from mc9-f17.bay6.hotmail.com ([65.54.166.24]) by
mc9-s15.bay6.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Fri, 28 Feb
2003 11:49:39 -0800
Received: from swjscmail2.java.sun.com ([192.18.99.108]) by
mc9-f17.bay6.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Fri, 28 Feb
2003 11:48:37 -0800
Received: from swjscmail1 (swjscmail1.Sun.COM [192.18.99.107])by
swjscmail2.java.sun.com (Postfix) with ESMTPid 47B3521F6D; Fri, 28 Feb 2003
12:44:35 -0700 (MST)
Received: from JAVA.SUN.COM by JAVA.SUN.COM (LISTSERV-TCP/IP release 1.8d)
with          spool id 5888581 for [EMAIL PROTECTED]; Fri, 28
Feb 2003          12:42:01 -0700
Received: from hotmail.com (f8.law15.hotmail.com [64.4.23.8]) by
swjscmail1.java.sun.com (Postfix) with ESMTP id 2C416481E for
<[EMAIL PROTECTED]>; Fri, 28 Feb 2003 12:41:40 -0700 (MST)
Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC;
Fri,          28 Feb 2003 11:47:37 -0800
Received: from 209.204.71.120 by lw15fd.law15.hotmail.msn.com with HTTP;
Fri,          28 Feb 2003 19:47:37 GMT
X-Message-Info: dHZMQeBBv44lPE7o4B5bAg==
Delivered-To: [EMAIL PROTECTED]
X-OriginalArrivalTime: 28 Feb 2003 19:47:37.0943 (UTC)
 FILETIME=[3F2BF670:01C2DF62]
Message-ID:  <[EMAIL PROTECTED]>
Sender: "A mailing list for discussion about Sun Microsystem's Java
      Servlet API Technology." <[EMAIL PROTECTED]>
Return-Path: [EMAIL PROTECTED]

So I guess the answer is no ?
You cannot send direct to a mail server without password and loggin?
TIA


[EMAIL PROTECTED] http://rboone.up.to




_________________________________________________________________ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html


_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



Reply via email to