pop.mail.yahoo.com

-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]] On Behalf Of
Vijaya bhaskar K R
Sent: Tuesday, March 19, 2002 12:48 PM
To: [EMAIL PROTECTED]
Subject: Re: Mailing using java

        Pallav
        The runtime error "connect to pop.mail.yahoo.com failed" is
occuring

        what cud be the problem.?
        Viju

> here's my code for mailing..u need to setup pop access in yahoo under
web
> access and pop forwarding...
>
>   Properties props = new Properties();
>   Session ses = Session.getDefaultInstance(props,null);
>   Store store = ses.getStore("pop3");
>   store.connect("pop.mail.yahoo.com","yahooID","password");
>   MimeMessage message = new MimeMessage(ses);
>   Address to = new InternetAddress(" [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>");
>   Address from = new InternetAddress(" [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>");
>   String person = req.getParameter("first") + " " +
> req.getParameter("last");
>   Address replyTo = new InternetAddress(req.getParameter("replyto"),
> person);
>   Address[] replyArr = {replyTo};
>   Address[] toArr = {to};
>   message.setFrom(from);
>   message.addRecipients(Message.RecipientType.TO, toArr);
>   message.setReplyTo(replyArr);
>   message.setSubject("Feedback");
>   message.setText(req.getParameter("comments"));
>   message.setSentDate(new Date());
>   message.saveChanges();
>   Transport.send(message);
>   store.close();
>
> for java stuf..goto <http://pallav.cjb.net>
>
>

________________________________________________________________________
___
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


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


___________________________________________________________________________
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