0
외부 컴포넌트없이 matlab에 & bcc를 쓰고 싶습니다. (File Ex에는 .jar 파일이있는 솔루션이 있습니다). 그렇게하기위한 참조는 무엇입니까?Matlab에 호의 사본을 추가하는 방법
외부 컴포넌트없이 matlab에 & bcc를 쓰고 싶습니다. (File Ex에는 .jar 파일이있는 솔루션이 있습니다). 그렇게하기위한 참조는 무엇입니까?Matlab에 호의 사본을 추가하는 방법
필자가 생각하기에, 자바와 관련이 있으며, Matlab의 자바와의 관계가 좋지 않아서 간단하지가 않다. ML의 sendmail()
기능을 보면
, 키 라인은 다음과 같습니다 getRecipientTypeTo()
이 기능은받는 사람 유형에 대한 자바에서 정적 클래스의 인스턴스를 얻는 것입니다
msg.addRecipient(getRecipientTypeTo(msg), getInternetAddress(to{i}));
: 그래서
function recipientTypeTo = getRecipientTypeTo(msg)
%getRecipientTypeTo Return the static RecipientType.TO.
% Get the class loader for the Message class.
cl = msg.getClass.getClassLoader;
% Returns a Class object pointing to RecipientType using that ClassLoader.
rt = java.lang.Class.forName('javax.mail.Message$RecipientType', false, cl);
% Returns a Field object pointint to TO.
field = rt.getField('TO');
% Gets the static instance of TO.
recipientTypeTo = field.get([]);
수정 정적 인 것 (CC와 BCC는 완전히 놀랍지 않게 지원됩니다)을 사용하고, addRecipient()
을 사용하십시오.
이 기능을 bcc/cc 이메일 주소로 확장 해 주시겠습니까? 나는 Java에 친숙하지 못하다.이 글에서 bcc/cc 필드를 추가하는 방법을 알지 못한다. – user2305193