{"id":19188905,"url":"https://github.com/kelvins/smtpclient","last_synced_at":"2025-06-23T00:34:28.629Z","repository":{"id":84558080,"uuid":"114579618","full_name":"kelvins/SMTPClient","owner":"kelvins","description":":mailbox: A simple SMTP client to send e-mails using C++ and the Qt framework","archived":false,"fork":false,"pushed_at":"2018-04-08T01:07:48.000Z","size":31,"stargazers_count":14,"open_issues_count":1,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-08T02:48:10.492Z","etag":null,"topics":["cpp","email","qt","smtp","smtp-client"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kelvins.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-12-18T00:37:33.000Z","updated_at":"2024-12-17T11:32:09.000Z","dependencies_parsed_at":"2023-03-12T23:37:11.797Z","dependency_job_id":null,"html_url":"https://github.com/kelvins/SMTPClient","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kelvins/SMTPClient","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kelvins%2FSMTPClient","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kelvins%2FSMTPClient/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kelvins%2FSMTPClient/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kelvins%2FSMTPClient/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kelvins","download_url":"https://codeload.github.com/kelvins/SMTPClient/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kelvins%2FSMTPClient/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261390528,"owners_count":23151581,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cpp","email","qt","smtp","smtp-client"],"created_at":"2024-11-09T11:26:41.653Z","updated_at":"2025-06-23T00:34:23.613Z","avatar_url":"https://github.com/kelvins.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SMTPClient\n\nA simple [SMTP (Simple Mail Transfer Protocol)][1] client to send e-mails using C++ and the Qt framework.\n\n## How to use\n\nJust include it in your `.PRO` file, like this:\n\n```\ninclude( $$PWD/SMTPClient.pri )\n```\n\nThen you can include the headers in your code:\n\n```cpp\n#include \"SMTPClient/email.h\"\n#include \"SMTPClient/smtpclient.h\"\n```\n\nAnd send the e-mail, for example:\n\n```cpp\n\n/**\n * @brief Slot used to send the message.\n */\nvoid MainWindow::sendEmail()\n{\n    // Create the email object\n    Email email = createEmail();\n\n    // Create the SMTPClient\n    client_ = new SMTPClient(ui-\u003elineEditHost-\u003etext(),\n                             ui-\u003espinBoxPort-\u003evalue());\n\n    // Connection used to receive the results\n    connect(client_, SIGNAL(status(Status::e, QString)),\n            this, SLOT(onStatus(Status::e, QString)), Qt::UniqueConnection);\n\n    // Try to send the email\n    client_-\u003esendEmail(email);\n}\n\n/**\n * @brief Create and return an Email object based on the fields from the form.\n */\nEmail MainWindow::createEmail()\n{\n    // Create the credentials EmailAddress\n    EmailAddress credentials(ui-\u003elineEditEmailCredentials-\u003etext(),\n                             ui-\u003elineEditPasswordCredentials-\u003etext());\n\n    // Create the from EmailAddress\n    EmailAddress from(ui-\u003elineEditEmailFrom-\u003etext());\n\n    // Create the to EmailAddress\n    EmailAddress to(ui-\u003elineEditEmailTo-\u003etext());\n\n    // Create the email\n    Email email(credentials,\n                from,\n                to,\n                ui-\u003elineEditSubject-\u003etext(),\n                ui-\u003etextEditContent-\u003etoPlainText());\n\n    return email;\n}\n```\n\n## License\n\nThis project was created under the [GNU General Public License v3.0][2].\n\n [1]: https://pt.wikipedia.org/wiki/Simple_Mail_Transfer_Protocol\n [2]: LICENSE\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkelvins%2Fsmtpclient","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkelvins%2Fsmtpclient","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkelvins%2Fsmtpclient/lists"}