new Address[]()那里报The left-hand side of an assignment must b
来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/11/09 03:36:07
new Address[]()那里报The left-hand side of an assignment must be a variable错误、
package com.sxt.mail;
import java.util.Properties;
import javax.mail.Address;
import javax.mail.Message;
import javax.mail.Session;
import javax.mail.Transport;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeMessage;
public class MailConnection {
\x05public static void main(String[] args) throws Exception {
\x05\x05Properties props = new Properties();
\x05\x05props.setProperty("mail.debug","");
\x05\x05Session session = Session.getInstance(props);
\x05\x05Message msg = new MimeMessage(session);
\x05\x05msg.setText("你好吗?");
\x05\x05msg.setFrom(new InternetAddress("meimei@sohu.com"));
\x05\x05Transport transport = session.getTransport();
\x05\x05transport.connect("smtp.sohu.com",25,"wstc","123456");
\x05\x05transport.send(msg,new Address[](new InternetAddress("wstc@sohu.com")));
\x05\x05transport.close();
\x05}
}
package com.sxt.mail;
import java.util.Properties;
import javax.mail.Address;
import javax.mail.Message;
import javax.mail.Session;
import javax.mail.Transport;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeMessage;
public class MailConnection {
\x05public static void main(String[] args) throws Exception {
\x05\x05Properties props = new Properties();
\x05\x05props.setProperty("mail.debug","");
\x05\x05Session session = Session.getInstance(props);
\x05\x05Message msg = new MimeMessage(session);
\x05\x05msg.setText("你好吗?");
\x05\x05msg.setFrom(new InternetAddress("meimei@sohu.com"));
\x05\x05Transport transport = session.getTransport();
\x05\x05transport.connect("smtp.sohu.com",25,"wstc","123456");
\x05\x05transport.send(msg,new Address[](new InternetAddress("wstc@sohu.com")));
\x05\x05transport.close();
\x05}
}
Address[](new InternetAddress("wstc@sohu.com"))-->
Address[]{new InternetAddress("wstc@sohu.com")}
Address[]{new InternetAddress("wstc@sohu.com")}
new Address[]()那里报The left-hand side of an assignment must b
The left-hand side of an assignment must be a variable这个怎么改?
object "process_en" on left-hand side of assignment must hav
“you must drive on the left-hand side of the road in Britain
matlab报错:In an assignment A(i,j) = B,the number of columns i
word 设置 the left and right hand margis of your assignment sh
what is the left side of an apple?翻译
What is the left side of an apple
What is the left side of an apple?
In Hong Kong we drive on (the left-hand side) of the road.(对
开头是put your hand to the left side of your chest .短文
Put your hand to the left side of your chest.Try to feel you