Re: Java mail problem



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 ?


.