cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Hi All,

I have to send mails from SMTP server which has been configured on my Portal Server.

Can any body tell me how I can read the SMTP server host name using Web Dynpro/Java API?

Regards,

Sruti

0 Likes
View Entire Topic
Former Member
0 Likes

Hi,

Use this statement to get the smtp and host name.

String mailHost = System.getProperty("mail.smtp.host");

String Host = System.getProperty("HostName");

Check the system properties for more information through system information.

Thanks and Regards,

Manjunath