IM/MS/works/service/PEVerifCodeService.h
dongl ba80c3954d 0510 15:15 gtest邮件可发送 创建session类 记录全局链接会话 时间轮记录session超时。
邮件验证码 可以发送 c端test 没写  验证验证码注册还未完成
2023-05-10 16:07:31 +08:00

22 lines
370 B
C++

//
// Created by dongl on 23-5-10.
//
#ifndef IM2_PEVERIFCODESERVICE_H
#define IM2_PEVERIFCODESERVICE_H
#include "Service.h"
class PEVerifCodeService : public Service {
public:
std::string gen_code();
bool send_email(const std::string& target_email, const std::string& code = "0");
private:
std::string emailcode;
};
#endif //IM2_PEVERIFCODESERVICE_H