SMTP_C.C
资源名称:ertos.rar [点击查看]
上传用户:sunrenlu
上传日期:2022-06-13
资源大小:1419k
文件大小:0k
源码类别:
操作系统开发
开发平台:
DOS
- /*
- * smtp_c.c - sample smtp client
- * - must have smtp.gateway=xxx.xxx.xxx.xxx in TCP.CFG file
- *
- */
- #include <rtos.h>
- #include <net.h>
- #include <smtpcli.h>
- main(int argc, char **argv)
- {
- char *mailfrom = "someone";
- kdebug = 1;
- rt_init( 100 );
- sock_init();
- if ( argc < 2 )
- rt_halt("ERROR must specify an Email address to send this message to");
- smtp_client( 0, mailfrom, argv[1], "hi there","a message");
- }