How to send an email w/ attachment

Hello everyone!
I've been searching the solution on google for two days now, and i could not manage to find it out.

First of all: I have to say I am a beginner in c++ concerning this kind of programming.

I would like to write a SIMPLE program to send an email with one attachment (a txt file).
I am going mad with this. I found lots of codes with tons of lines, and none working (because of un-findable headers or propetary libs).

Can somebody help me please?
Topic archived. No new replies allowed.