[try Beta version]
Not logged in

 
Sending a file to email

May 22, 2013 at 2:22pm
Hello, basically what i am looking for is a way to send a file to email using c++

I don't need an explanation because I can figure it out myself. I just need the source code. Not trying to sound cocky lol

There's not very much information on this topic on the internet from a google search.
May 22, 2013 at 2:25pm
Use libcurl for this, there is example code on project website:
http://curl.haxx.se/libcurl/
May 23, 2013 at 4:27pm
closed account (G309216C)
Well, Good Luck to copy paste the code but we cannot spoon feed you it can be easily done by Winsock.

Look at MSDN documentation for winsock:
http://msdn.microsoft.com/en-us/library/windows/desktop/ms740673(v=vs.85).aspx

It has a lot of data and effort put i. I learned that only through MSDN. If I can do it you can as well.

Good Luck!
May 24, 2013 at 1:23pm
You could use SMTP
May 24, 2013 at 4:19pm
closed account (G309216C)
... Or you can create a Download a decent Webserver then assign it a SMTP Open Relay setting which means it allows SMTP to be accessed without any authentication then you can always Send Mail.

Of course make sure this Server IP \ Domain is confidential as this can be accessed by Internet Spammers to spam.

GL
Topic archived. No new replies allowed.