39 using Ptr = std::shared_ptr<Email>;
43 std::string get_mail_host()
const {
return mail_host_; }
44 std::string get_sender()
const {
return sender_; }
45 std::string get_recipient()
const {
return recipient_; }
46 std::string get_subject()
const {
return subject_; }
47 std::string get_email_message()
const {
return email_message_; }
48 std::string get_email_user()
const {
return email_user_; }
49 std::string get_email_password()
const {
return email_password_; }
51 void set_mail_host(std::string mail_host) { mail_host_ = mail_host; };
52 void set_sender(std::string sender) { sender_ = sender; };
53 void set_recipient(std::string recipient) { recipient_ = recipient; };
54 void set_subject(std::string subject) { subject_ = subject; };
55 void set_email_message(std::string email_message) { email_message_ = email_message; };
56 void set_email_user(std::string email_user) { email_user_ = email_user; };
57 void set_email_password(std::string email_password) { email_password_ = email_password; };
59 virtual bool SendEmail_();
62 std::string mail_host_;
64 std::string recipient_;
66 std::string email_message_;
67 std::string email_user_;
68 std::string email_password_;