Click here to Skip to main content
15,886,067 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hey,
I need a very simple program, which I can use to send a .txt file to some mail account?
I have no idea about C++ Networking although worked alot in Win32 API.
Posted

1 solution

 
Share this answer
 
v2
Comments
saad_lah 2-Feb-13 14:46pm    
:( I tried a lot but it is not not including "stdAfx.h" lib in visual studio
Abhishek Pant 2-Feb-13 15:01pm    
Its not necessary to use that.you can remove that.the purpose-using[^]
it[^].
saad_lah 2-Feb-13 15:13pm    
Look at the step I did,

1-> Made a CLR Win32 Project in Visual Studio 2012
2->Move the file to project directory and include the files "SendMail.h" and "SendMail.cpp"
3-> _gc class SendMail // _gc is giving syntax error
{
......
}

And stdafx is now working fine as it includes just standard libraries.
Abhishek Pant 2-Feb-13 15:31pm    
it was in class file.read the article carefully.

Vote and accept answer if it helps you so that it can help others when they search here.
saad_lah 2-Feb-13 15:13pm    
So, my question is, it is a CLR project or Win32 :P

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900