Share PHP Mail Manager source code, PHP email source code _php Tutorial

Source: Internet
Author: User

Share PHP Mail Manager source code, PHP mail source code


This article for everyone to provide PHP Mail Manager source code, I hope you like.
1. Demand Analysis
Administrators should be able to create and modify message content.
Administrators should be able to send text or HTML-formatted news letters to all subscribers in a list.
Users should be able to register to use a site and can access and modify their personal data.
A user should be able to subscribe to a news letter for any of the lists on that site.
The user should be able to cancel a subscription to a mailing list.
Users should be able to store news letters in HTML or plain text format, depending on their preferences.
For security reasons, users should not be able to send messages to the list, or they cannot see other users ' e-mail addresses.
Users and administrators should be able to view information about the mailing list.
Users and administrators should be able to view news letters that have been sent to a list (archive file) in the past.

2. Solutions
2.1 User Rights Map

2.2 List of files in the message list Manager

2.3 Possible actions in the Message list Manager

3. Implement the Database

CREATE DATABASE MLM; #创建mlm数据库 use MLM; #使用mlm数据库 CREATE TABLE lists #列表 (Listid INT auto_increment not null PRIMARY KEY, #列表ID listname CHAR (a) not NULL, #列  Table name blurb VARCHAR (255) #列表主要内容); CREATE TABLE subscribers #订阅者 (email CHAR (+) NOT null PRIMARY KEY, #邮箱 realname CHAR (+) NOT NULL, #真实姓名 mimetype C  HAR (1) Not NULL, #想要接收邮件类型 password CHAR (+) NOT NULL, #密码 admin TINYINT not null #管理员标记);  CREATE table sub_lists #订阅-List Relationship table (email CHAR (+) NOT NULL, #邮件 Listid INT not null #列表ID); CREATE TABLE Mail #邮件表 (mailid INT auto_increment not null PRIMARY KEY, #邮件ID email CHAR (+) not NULL, #发送方 subject C HAR (+) is not NULL, #主题 Listid INT is not null, #列表ID status CHAR (TEN) not NULL, #邮件状态, whether it is sent sent DATETIME, #发送时间 modified  TIMESTAMP #最后一次修改时间戳);   CREATE TABLE Images #图像表 (mailid INT not NULL, #邮件ID path char (+) NOT NULL, #路径 mimetype char (+) not null #图片类型); GRANT Select,insert,update,delete #创建mlm用户 on mlm.* to mlm@localhost identified by ' password '; #插入订阅者标记 INSERT into Subscribers VALUES (' Admin@localhost ', ' Administrative User ', ' H ', SHA1 (' admin '), 1);  INSERT into Subscribers VALUES (' Switch_1@switch.com ', ' Administrative User ', ' H ', SHA1 (' admin '), 1);

I hope this article will help you learn PHP programming.

Articles you may be interested in:

    • A class that sends mail through SMTP in PHP, tested by
    • Full-featured PHP Send message Class code with detailed instructions
    • Phpmailer message class using Smtp.163.com to send mail methods
    • PHP mail send, php send mail class
    • Phpmailer using Tutorials (phpmailer sending mail instance analysis)
    • Phpmailer implementation code for mail delivery
    • thinkphp implementing code for mail delivery using Phpmailer
    • A simple way to use PHP to send mail using Phpmailer
    • PHP uses SMTP to send mail samples that support attachments
    • Phpmailer the solution for sending mail on the server is not normal

http://www.bkjia.com/PHPjc/1089203.html www.bkjia.com true http://www.bkjia.com/PHPjc/1089203.html techarticle share PHP Mail Manager source code, PHP mail source code for everyone to provide PHP Mail Manager source code, I hope you like. 1, needs analysis Administrator should be able to create and modify the mail inside ...

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.