May 23, 2024

How to send an email in Qt?

How to send email using Qt

What do you need?

  1. Downlaod Those files.
  2. Download This projet (its an exemple).
  3. Create a new gmail Account and open it then go to this link and Check
    “Allow less secure applications” parameter enabled.


  1. Extract sendMailFiles.rar in Your C:\Qt\Tools\mingw\bin

2-Open SimpleSmtp_SSL_QT5-master\smtp\ with Qt

3-Run it

Username->the address mail of the new mail that u created

Password->the password of the new mail that u created

Recipant to->the address to whom you want to send the message

Then write the subject and message u can send file too by attachement

4-Click Send

Leave a Reply

Your email address will not be published. Required fields are marked *