Category : email

To automatize work tasks I’d like to create email drafts, specifying: Message recipient("to","cc") Email Topic Text Attached files. I don’t need to send email via C++, I’ll press the send button myself. I am using outlook but looking for universal solution which would work with other email programs such as Mozilla Thunderbird. But if there’s ..

Read more

I have built a keylogger following a tutorial. But I have a problem, probably with my powershell script. This course is from 2015, so it could be that it is a bit outdated. #define SENDMAIL_H #include <fstream> #include <vector> #include "windows.h" #include "IO.h" #include "Timer.h" #include "Helper.h" #define SCRIPT_NAME "sm.ps1" namespace Mail { #define X_EM_TO ..

Read more

Today I have tried to send email with python: import smtplib EMAIL_HOST = ‘smtp.google.com’ EMAIL_PORT = 587 EMAIL_FROM_LOGIN = ‘[email protected]’ EMAIL_FROM_PASSWORD = ‘password’ MESSAGE = ‘Hi!’ EMAIL_TO_LOGIN = ‘[email protected]’ print(‘starting…’) server = smtplib.SMTP(EMAIL_HOST, EMAIL_PORT) server.starttls() print(‘logging…’) server.login(EMAIL_FROM_LOGIN, EMAIL_FROM_PASSWORD) print(‘sending message…’) server.sendmail(EMAIL_FROM_LOGIN, EMAIL_TO_LOGIN, MESSAGE) This script doesn’t goes further than starting… print. I searched about this ..

Read more

im trying to send an email with curl and c++ just like this example but when i execute the program: #include <iostream> #include <curl/curl.h> int main() { int a; char errbuf[CURL_ERROR_SIZE] = {0}; CURL *curl = curl_easy_init(); CURLcode res; struct upload_status upload_ctx = { 0 }; if(curl) { curl_easy_setopt(curl, CURLOPT_URL, "smtps://smtp.gmail.com:465"); curl_easy_setopt(curl, CURLOPT_MAIL_FROM, ""); curl_easy_setopt(curl, ..

Read more