🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #404

Re: Help on mailer.

#404
From: Shankar Unni
Date: Wed, 05 Nov 2003 17:50
19 lines
1928 bytes
Richard Li wrote:

> I made a sendMessage function in JSP Bean class in order to send message and
> it is successful.
> The code is like this
>             Qsmtp mailer = new Qsmtp("smtp.exchange.missouri.edu");
>             mailer.setFromAddress("www@www.cf.missouri.edu");
>             mailer.setToAddress("lix@missouri.edu");
>             mailer.setSubject("Contract Payment.");
>             mailer.sendmsg();

Strong suggestion: invest a *little* time in learning the JavaMail API,
and use that. It's a de facto standard, and is extremely powerful. It
handles this sort of thing quite well (fully RFC-822-compliant from
addresses, MIME with attachments, the works..).

The Session/Transport stuff is a teeny bit too powerful, but the
defaults should work great as long as you set up the properties
correctly for the Session.
Technical Details
Message-ID: <3fa93849$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!easynews.net!newsfeed3.easynews.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3fa6b194$2@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,5d8442fd68f88448
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2003-11-05 10:11:08 PST
Date: Wed, 05 Nov 2003 09:50:01 -0800
From: Shankar Unni <shankar@cotagesoft.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (Compact)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.java.api
Subject: Re: Help on mailer.
References: <3fa6b194$2@newsgroups.borland.com>
In-Reply-To: <3fa6b194$2@newsgroups.borland.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 64.165.207.59
Message-ID: <3fa93849$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1068054601 64.165.207.59 (5 Nov 2003 09:50:01 -0700)
Lines: 20
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!easynews.net!newsfeed3.easynews.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail