on ‎2009 Dec 18 6:39 AM
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
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shruti,
Go Through this Blog it might be useful in your case.
[Send mail with attachment using web dynpro API's |http://wiki.sdn.sap.com/wiki/display/WDJava/Sendmailwithattachmentusingwebdynpro+API%27s]
[Sending mail with an online interactive form(pdf) as an attachment.|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/8551] [original link is broken] [original link is broken] [original link is broken];
Regards
Jeetendra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Please have a look at this information,
http://java.sun.com/products/javamail/javadocs/com/sun/mail/smtp/package-summary.html
Regards,
Saravanan K
Hi Sruti,
Package com.sun.mail.smtp
An SMTP protocol provider for the JavaMail API that provides access to an SMTP server.
Pls refre this link :-http://java.sun.com/products/javamail/javadocs/com/sun/mail/smtp/package-summary.html
mail.smtp.host-> String-> The SMTP server to connect to.
Hope this may help you.
Deepak!!!
| User | Count |
|---|---|
| 13 | |
| 8 | |
| 7 | |
| 5 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.