L
lemonj
Hi,
can anyone post a code for sending mail using Exchange 2003 and
javamial (1.3.2). I am getting authentication error but I know the user
and passoword are correct (i can base64 them and log via telnet ). Is
it just constructing correctly the user name or need to configure the
server ?
here is a snip from a working code with qmail server
props.put("mail.smtp.host", "mail");
props.put("mail.smtp.port", "25");
props.put("mail.smtp.auth", "true");
props.put("mail.smtp.user", "smtp_cuser");
props.put("mail.smtp.password", "passwd");
props.put("mail.smtp.connectiontimeout", "10000");
Session session = Session.getDefaultInstance(props);
Thanks for responses.
can anyone post a code for sending mail using Exchange 2003 and
javamial (1.3.2). I am getting authentication error but I know the user
and passoword are correct (i can base64 them and log via telnet ). Is
it just constructing correctly the user name or need to configure the
server ?
here is a snip from a working code with qmail server
props.put("mail.smtp.host", "mail");
props.put("mail.smtp.port", "25");
props.put("mail.smtp.auth", "true");
props.put("mail.smtp.user", "smtp_cuser");
props.put("mail.smtp.password", "passwd");
props.put("mail.smtp.connectiontimeout", "10000");
Session session = Session.getDefaultInstance(props);
Thanks for responses.