Created
February 14, 2012 10:08
-
-
Save jacking75/1825475 to your computer and use it in GitHub Desktop.
Unix에서 C 언어로 email 보내는 방법
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
아주 간단하게 이메일을 보낼 수 있습니다. | |
(주) 손오공에서 근무할 때 같이 일했던 서영완씨가 가르쳐준 방법입니다. | |
*/ | |
int main() | |
{ | |
char buf[1024]; | |
// 내용 제목 보낸사람 | |
sprintf( buf , "echo \"마지막테스트\" | mail -s '12345' [email protected]" ); | |
system( buf ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment