当前位置: 首页 > news >正文

湛江网站定制石家庄市鹿泉区确诊病例

湛江网站定制,石家庄市鹿泉区确诊病例,利津网页设计,谷歌官方seo入门指南1、概述 源码放在文章末尾 该项目实现了邮件的批量发送&#xff0c;如下图所示&#xff1a; 项目部分代码如下所示&#xff1a; #ifndef SMTPCLIENT_H #define SMTPCLIENT_H#include <QtGui> #include <QtNetwork> #if (QT_VERSION > QT_VERSION_CHECK(5,0,…

1、概述
源码放在文章末尾

该项目实现了邮件的批量发送,如下图所示:
在这里插入图片描述

项目部分代码如下所示:

#ifndef SMTPCLIENT_H
#define SMTPCLIENT_H#include <QtGui>
#include <QtNetwork>
#if (QT_VERSION >= QT_VERSION_CHECK(5,0,0))
#include <QtWidgets>
#endif
#include "mimemessage.h"class SmtpClient : public QObject
{Q_OBJECT
public:enum AuthMethod {AuthPlain,AuthLogin};enum SmtpError {ConnectionTimeoutError,ResponseTimeoutError,AuthenticationFailedError,ServerError,    // 4xx smtp errorClientError     // 5xx smtp error};enum ConnectionType {TcpConnection,SslConnection,TlsConnection       // STARTTLS};SmtpClient(const QString &host = "locahost", int port = 25, ConnectionType ct = TcpConnection);~SmtpClient();const QString &getHost() const;void setHost(QString &host);int getPort() const;void setPort(int port);const QString &getName() const;void setName(const QString &name);ConnectionType getConnectionType() const;void setConnectionType(ConnectionType ct);const QString &getUser() const;void setUser(const QString &host);const QString &getPassword() const;void setPassword(const QString &password);SmtpClient::AuthMethod getAuthMethod() const;void setAuthMethod(AuthMethod method);const QString &getResponseText() const;int getResponseCode() const;int getConnectionTimeout() const;void setConnectionTimeout(int msec);int getResponseTimeout() const;void setResponseTimeout(int msec);QTcpSocket *getSocket();bool connectToHost();bool login();bool login(const QString &user, const QString &password, AuthMethod method = AuthLogin);bool sendMail(MimeMessage &email);void quit();protected:QTcpSocket *socket;QString host;int port;ConnectionType connectionType;QString name;QString user;QString password;AuthMethod authMethod;int connectionTimeout;int responseTimeout;QString responseText;int responseCode;class ResponseTimeoutException {};void waitForResponse();void sendMessage(const QString &text);signals:void smtpError(SmtpError e);};#endif // SMTPCLIENT_H

源码下载

http://www.yayakq.cn/news/234993/

相关文章:

  • 移动网站建设是什么意思青岛网络科技公司排名
  • 河南五建建设集团有限公司网站wordpress 禁止爬虫
  • 如何做网站需求表格清单长春互联网公司哪里多
  • 做企业网站用什么cms亚马逊中文官网
  • 河西网站建设上海纯设计公司排名
  • 西部数码空间可以做会所网站吗网站通常用什么编程做
  • 营销推广型网站wordpress主题html
  • 想创业做网站设计网名字
  • 在微信中做网站软件定制与开发
  • 阳城做网站win2012 iis 部署网站
  • 南昌手机模板建站手机网站建设的教程视频
  • 视频类html网站模板上海营销平台网站建设
  • 怎么调查建设网站网站建设方案书阿里云
  • 布吉公司做网站百度免费推广
  • 宁波高端网站开发wordpress用户注册免邮箱
  • 推广的网站wordpress仿wiki
  • 制作app开发定制外包24郑州网站优化公司排名
  • 到哪里找人做网站网络项目个人怎么推广快
  • 平凉市网站建设企业网站宣传
  • 网站开发语言啥意思徐州关键字优化资讯
  • 怎么把网站做漂亮能答题做试卷的网站
  • seo整站如何优化济南外贸网站建设公司
  • 如何做亚马逊国外网站网站伪静态设置
  • 网站开发项目实训免费在线设计平台
  • 晋城市企业网站网站建设和使用现状
  • 驻马店市可以做网站的公司在线做任务的网站有哪些
  • 免费企业建站选哪家chmod wordpress
  • 网站设计的摘要wordpress 禁止更新提示
  • 建立一个网站济南做网络安全的公司
  • 网站兼容问题西宁做腋臭北大网站Y