Skip to content

With this header file, you can perform mailing in c language too...

Notifications You must be signed in to change notification settings

TAGISWILD/MailinC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Welcome To MailInC

Here you can see how to send mails form C language code

Step 1

Clone or Download the repo

Step 2

If you have downloaded the zip, then extract it and if you have cloned then open the folder

Step 3

Now you will find a file named Mail.h Copy it and paste it into Your GCC compiler's include folder Ex. If you are using Dev-Cpp Then goto "C:\Program Files(x86)\Dev-Cpp\MinGW64\x86_64-w64-mingw32\include" and paste it.

Step 4

Now just open the file Example.cpp And Run it.

Step 5

Enable 2 step authentication in gmail form which you will be sending email

Step 6

Below 2 step authentication you will se app password go there i. In Select app select mail ii.Select custom and enter "SMTP" (you can enter whatever you want).

Step 7

Press generate Now you will see a password enter that password in PassUR.txt You are good to go now.


Remember: When You Are Including This Library, Before It You Must Also Include stdio.h, stdlib.h and conio.h then Mail.h.

The First Few Lines Of Your Code Must Be

#include <stdio.h>

#include <stdlib.h>

#include <Mail.h>


This library has 3 Methods

  1. Init();
  2. fillDat();
  3. SendMail();

First of all make sure that you have turned on less secure app access on your account, click here to turn it on.

We must run Init() while starting the code, means at the time when you start to write down the code.

We must always run the fillDat() after running Init() to avoid many errors.

We must run SendMail() Whenever we want to send mail while executing.

We need python so download it from here


Queries? Watch our video tutorial

Remember, we make use of python in background to make process easier

About

With this header file, you can perform mailing in c language too...

Topics

Resources

Stars

Watchers

Forks