Skip to content

About

这是一个优化GTIIT邮件发送的一个项目,目标是做到对于每个学生都可以生成他们对应标红名字的考试座位表给他们。

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

19 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

目前已经实现的方法:

  1. public static void sending_email(String sender_email , String recevided_email , String password , String subject , String content , String attachmentPath){...}

    说明:
        
       这是一个发送邮件的method(在此以qq邮箱为例子)
    
       参数:
       @param sender_email             发送者邮箱
       @param recevided_email          接受者邮箱
       @param password                 这不是邮箱密码,是smtp授权码
       @param subject                  邮件主题
       @param content                  邮件内容
       @param attachmentPath           附件的路径(如xlsx表格) 
    
  2. public static void markNameInSeatTable(String inputPath, String outputPath, String targetName){...}

    说明:
    
       在座位表中查找指定人名并标红,生成新的Excel文件
    
       参数:
       @param inputPath  原始座位表路径(如 "C:/座位表.xlsx")
       @param outputPath 输出路径(如 "C:/座位表_已标记.xlsx")
       @param targetName 要标红的人名
    
  3. private static void loadStudentEmails(String emailMappingPath){...}

    说明:
    
        这是个私有方法
    
        这个方法的作用是:
    
           读取你提供的邮箱映射表 Excel 文件
           取第一张表的每一行
           把第一列当作学生姓名,第二列当作学生邮箱
           将姓名/邮箱对存到 test_taker_information 这个 Map 里
           后面 auto_sending(...) 就用这个映射,根据每个学生的姓名找到对应的邮箱,发送带附件的邮件。
    
        参数:
        @param emailMappingPath         存放学生(名字,邮箱)映射的excel文件的路径
    
  4. public static void auto_sending(String inputPath, String outputPath, String senderEmail, String password, String subject, String content) {...}

    说明:
    
       这个方法是实现自动每个学生生成标红后的座位表,并发送带附件的邮件
    
       参数:
       @param inputPath                 原始座位表路径(如 "C:/座位表.xlsx")        
       @param outputPath                输出路径(如 "C:/座位表_已标记.xlsx")
       @param senderEmail               发送者邮箱
       @param password                  smtp授权码
       @param subject                   邮件主题
       @param content                   邮件内容
    

Release 版本:

1.邮件优化发送程序QQemail_Version 1.0(Jar版)

2.邮件优化发送程序QQemail_Version 1.0(Deb版)

About

这是一个优化GTIIT邮件发送的一个项目,目标是做到对于每个学生都可以生成他们对应标红名字的考试座位表给他们。

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages