Java mail problem



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

.



Relevant Pages

  • RE: Delegates/events
    ... public void OnMyEvent ... public class Second ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.languages.csharp)
  • F2k3 Translation - UML 2 Test Profile Example
    ... although I don't know what assertTrue does or how to handle the throw. ... public void addDifferentMoney() ... Support the Original G95 Project: http://www.g95.org ... Support the GNU GFortran Project: http://gcc.gnu.org/fortran/index.html ...
    (comp.lang.fortran)
  • Re: Using overload to implement the equivalent of a switch
    ... public abstract void doSomething(Object anObject); ... public void doSomething{ ... AbstractBase reference = new ResponsibleChild; ... Java does not support this concept at the language level. ...
    (comp.lang.java.programmer)
  • Re: How do I use Generics with interfaces?
    ... "AlexS" wrote: ... public void doSomething{... ... support for generic covariance. ...
    (microsoft.public.dotnet.languages.csharp)