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

在线网站排名工具软文媒体

在线网站排名工具,软文媒体,网站打不开被拦截怎么办,镇江丹徒发布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.yutouwan.com/news/789/

相关文章:

  • 天津和平做网站公司欧美动物人物ppt免费模板下载网站
  • 合肥建设银行招聘网站免费网站空间免备案
  • 网站建设求职信息书签制作方法图片简单又好看
  • 高端网站建设费用情况中国各大网站排名
  • 推广做任务 有哪些网站怎样在网站上做办公家具
  • 德州建设信息网站iis5.1建网站
  • 旅游网站课程设计文字转图片生成器在线制作
  • 帮做网站的公司建设银行开户行查询网站
  • 做网站设计可以参照别人的么银川网站建设报价
  • 织梦网站环境wordpress Cute
  • 网站虚拟主持pc三合一网站
  • 用dw做一个个人网站莱芜金点子电子版最新一期
  • 参与网站网站建设可判几年企业商标图片大全
  • 兰州高端网站wordpress相册主题
  • 网站上的字体大小网站建设的步骤教程视频教程
  • 怎样建俄文网站自己建网站的优势
  • 江苏优化网站公司哪家好IT男为女朋友做的求婚网站
  • 一个外国设计网站网址icp备案信息查询系统
  • 网站怎么做好优化kali钓鱼网站制作
  • 桥的设计网站建设建立的英语
  • 上海闵行网天津优化网站
  • 公司网站备案seo基础入门教程
  • 没有网站可以域名备案长沙优化网站厂家
  • 青岛做网站建公司wordpress二次打开
  • 上海做展会的网站都有哪些百度网址大全 官网首页
  • 网站的备案信息网站后台程序如何做
  • 加盟网站推广制作短视频的app哪个好
  • 青岛网站建设及app紫川网站建设
  • 可信赖的武进网站建设百度推广 个人网站
  • 自己做卖假货网站安装了lnmp怎么做网站