java 调用outlook并插入图片附件
[attach]210[/attach]Runtime.getRuntime().exec("CMD /C start mailto:[email protected]?subject=\"Chinese New Year backup arrangement\"");
调用outlook写一封新邮件发送给:[email protected]
主题:Chinese New Year backup arrangement
但是和附件不能指定.
抄送,内容,不能和主题同时指定.这是为什么呀!
Runtime.getRuntime().exec("cmd /c start mailto:[email protected]?subject=Chinese New Year backup arrangement&[email protected]&body=aaaarrrr");
抄送,内容不显示呀!!!
各位帮忙想一下呀!!
[attach]210[/attach]Runtime.getRuntime().exec("CMD /C start mailto:[email protected]?subject=\"Chinese New Year backup arrangement\"");
调用outlook写一封新邮件发送给:[email protected]
主题:Chinese New Year backup arrangement
但是和附件不能指定.
抄送,内容,不能和主题同时指定.这是为什么呀!
Runtime.getRuntime().exec("cmd /c start mailto:[email protected]?subject=Chinese New Year backup arrangement&[email protected]&body=aaaarrrr");
抄送,内容不显示呀!!!
各位帮忙想一下呀!!
POI里面没有实现outlook方面的功能!!!
请问有没有谁用过 Java Outlook Connector
outlook配置中的服务器信息,帐户信息
我能想到的办法是,你先用java生成一个邮件文件。就是那种.eml的
然后调用outlook打开它具体代码我还没有。目前只能提供这个思路,不过凭你的水平,应该很快做出来!!!OVER
msg.writeTo(new FileOutputStream(f));
Process p = Runtime.getRuntime().exec("cmd /C start msimn.exe /eml:d:/test.eml");OVER.
http://blog.csdn.net/java2000_net/archive/2008/02/14/2091282.aspx或者
http://www.java2000.net/viewthread.jsp?tid=795
谢谢了!!!
不过呢?我要实现的哪种效果跟你提供的差不多.
有点不同的是可以在outlook中修改主题,内容...
自己从联系人中指定收件人.
就是生成一个新邮件.不是一个已发邮件的eml.
可以再指点一下不?
非常感谢了!!!
无法让outlook打开时,eml在待发里面。 难道保存到outlook的邮件目录有用??
可以另外再增加附件....主题,内容...
哎!!!就像Picasa中的电子邮件功能一样.