How to send a fully automated email with attachment?

Hello,

I need a function

bool SendMail (string to_email, string attach_filepath, string body = "default)

This function should be able to fully automatedly send an email from a hardcoded adress with login and stuff to another email adress, and should be able to attach a file to it. It should return true is the email could be sent.

His is that done?

Thanks for help already!
i am sorry but that is exactly what i cannot use. Sockets didnt work for me and any library/3rd party thats listed there is either not available for Windows or is an executable.
I did something similar with POCO:

https://pocoproject.org/


.Net also has email support:

https://msdn.microsoft.com/en-us/library/system.net.mail(v=vs.110).aspx

But then you might consider using C#
Topic archived. No new replies allowed.