wood burning stoves 2.0*
The moose likes Other JSE/JEE APIs and the fly likes how do i specify the port form where i want to send the mails Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "how do i specify the port form where i want to send the mails" Watch "how do i specify the port form where i want to send the mails" New topic
Author

how do i specify the port form where i want to send the mails

mihir maniar
Ranch Hand

Joined: Sep 09, 2003
Posts: 88
i have smtp server which by default has proxy at port 25.So i want to send the mails through some other port.So how can i specify the exact port in the bean(i am using a bean to send email) so that all the mails through that port.my machine is having public ip.so what i do is Properties prop = new Properties();
prop.put("mail.smtp.host",hostname);but how do i specify the port name coz this sends the mail at port 25 by default
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how do i specify the port form where i want to send the mails
 
Similar Threads
550 Invalid recipient Problem whilst I am sending Email using SMTP
problem in sending mail
Email from jBoss
Javamail problem
how to solve Below error?