Hi,
When I execute the command like "Runtime.getRuntime().exec("cmd /c start mailto:emailaddress@spam.com?subject=Test&body=Hello");" in my java program,There is no boby in my outlook window .could you give me some suggestion? Thank you very much!
source:
import java.io.IOException;
public class TestAutoSendEMail {
public static void main(String[] args) {
try{
Runtime.getRuntime().exec("cmd /c start mailto:emailaddress@spam.com?subject=Test&body=Hello");
}
catch(IOExceptionex){
System.out.println(ex.getMessage());
}
}
}