Java official support message development, Javax-mail
jdk is not default, require additional downloads
apache-based Javax-mail developed commons-mail, more simple and efficient, it is recommended to use
A, e-mail reception and transmission protocols
Two, Apache-James mail server
1. build their own
1) The non-archive into Chinese path without spaces
2) resolve the conflict jar package
3) Operation Command Set number server
Domain name server settings, to set up a user name and password server
In fact, james server is also all the data exist in the database, the default comes
James allows to save the mysql
Mysql driven into the jar conf mounting of James lib lib is the default directory jar, lib conf custom in the jar
Open james-database-template.properties configuration and renamed james-database.properties
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
# This template file can be used as example for James Server configuration
# DO NOT USE IT AS SUCH AND ADAPT IT TO YOUR NEEDS
# See http://james.apache.org/server/3/config.html for usage
# Use derby as default
database.driverClassName=com.mysql.jdbc.Driver
database.url=jdbc:mysql://localhost:3306/email
database.username=root
database.password=root
# Supported adapters are:
# DB2, DERBY, H2, HSQL, INFORMIX, MYSQL, ORACLE, POSTGRESQL, SQL_SERVER, SYBASE
vendorAdapter.database=MYSQL
# Use streaming for Blobs
# This is only supported on a limited set of databases atm. You should check if its supported by your DB before enable
# it.
#
# See:
# http://openjpa.apache.org/builds/latest/docs/manual/ref_guide_mapping_jpa.html #7.11. LOB Streaming
#
openjpa.streaming=false
Email account @-mail address
james need to configure the domain name (the default port 9999)
Open a new command window
through DOS window, go to the bin directory james file server, and then execute the following DOS command
to create a mailbox name
james-cli.bat -h localhost -p 9999 adddomain atguigu.com
Create a mailbox user
james-cli.bat -h localhost -p 9999 adduser [email protected] the Test
james-cli.bat -h localhost -p 9999 adduser [email protected] ADMIN
Configuring foxmail client to test the mail server
tools ---> Account Management ---> New
Third, other background
Maintenance Qualification
Qualification: documents
t_cert table
Category Management
Through a matrix form, upload the maintenance of each type of account which qualification
t_account_type_cert qualification and classification of maintenance is the middle of the table