java 调用foxmail_使用java实现与foxmail邮箱的接受,发送,转发等功能!!求精啊...

这篇博客介绍了如何使用Java来实现与Foxmail邮箱的交互,包括接收、发送和转发邮件的功能。通过配置类`Config`,设置SMTP和POP3端口以及邮件路径,实现了与Foxmail的集成。
摘要由CSDN通过智能技术生成

该楼层疑似违规已被系统折叠 隐藏此楼查看此楼

package com.mail.config; public class Config {

private int smtpPort=25;

private int pop3Port=110;

private String sendPath="E://mail/send";

private String receivePath="E://mail/receive";

private String failePath="E://mail/faile";

private String userPath="E://mail/user.properties";

public int getSmtpPort() {

return smtpPort;

}

public void setSmtpPort(int smtpPort) {

this.smtpPort = smtpPort;

}

public int getPop3Port() {

return pop3Port;

}

public void setPop3Port(int pop3Port) {

this.pop3Port = pop3Port;

}

public String getSendPath() {

return sendPath;

}

public void setSendPath(String sendPath) {

this.sendPath = sendPath;

}

public String getReceivePath() {

return receivePath;

}

public void setReceivePath(String receivePath) {

this.receivePath = receivePath;

}

public String getFailePath() {

return failePath;

}

public void setFailePath(String failePath) {

this.failePath = failePath;

}

public String getUserPath() {

return userPath;

}

public void setUserPath(String userPath) {

this.userPath = userPath;

}

}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值