Re: Java mail problem
- From: "Andy Flowers" <notsupplied@xxxxxxxxxxxxx>
- Date: Tue, 05 Apr 2005 17:21:28 GMT
nialltimpson wrote:
> The following gives off no error's but doesnt send the mail any
> idea's?
>
> public void mailPass(){
> try{
> Properties props = new Properties();
> props.put("mail.host","149.153.100.8");
>
> Session mailConnection = Session.getInstance(props, null);
> Message msg = new MimeMessage(mailConnection);
>
> Address bill = new InternetAddress("eScratchCard@xxxxxxxxx","Tech
> Support");
> Address customer = new InternetAddress("niallmulhare@xxxxxxxxxxx");
> System.err.println("setup mail");
> msg.setContent("You Password For WWW.eScratchCard.ie is : ",
> "text/plain");
> msg.setFrom(bill);
> msg.setRecipient(Message.RecipientType.TO,customer);
> msg.setSubject("Your eScratchCards Passwrord");
>
> Transport.send(msg);
> }
> catch(Exception e ){e.printStackTrace();}
> }
>
> I would appreceate any help, thanks Niall
What is the error ?
.
- Follow-Ups:
- Re: Java mail problem
- From: nialltimpson
- Re: Java mail problem
- References:
- Java mail problem
- From: nialltimpson
- Java mail problem
- Prev by Date: Re: Bad performance of HTTPServletResponse at Tomcat
- Next by Date: Maximum access in tomcat 5.0
- Previous by thread: Java mail problem
- Next by thread: Re: Java mail problem
- Index(es):