N
nialltimpson
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("(e-mail address removed)","Tech
Support");
Address customer = new InternetAddress("(e-mail address removed)");
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
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("(e-mail address removed)","Tech
Support");
Address customer = new InternetAddress("(e-mail address removed)");
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