package com.gear.common.utils.email; public class test { public static void main(String[] args) { Emailer emailer = new Emailer(); emailer.setEmail("service@saxtrader.co"); Emailer to1 = new Emailer(); to1.setEmail("chen20100312@gmail.com"); to1.setName("customer1"); Emailer to2 = new Emailer(); to2.setEmail("miao7616@126.com"); to2.setName("customer"); Emailer[] emailers = new Emailer[]{to1,to2}; String title = "Registration verification code"; String content = "SAX
Hello, welcome to SAX
Please enter the following verification code in the open browser window:
123123
If it is not my own operation, please rest assured to ignore this email。
saxtrader.net
Trading the world's largest market
 
\n"; SendEmailUtils.sendEmial(emailer,emailers,title,content); } }