MailSend

 

ÀüÀÚ¸ÞÀÏÀ» ¹ß¼ÛÇÑ´Ù.

 

int @MailSend(string mail_server, string username, string password, int ssl, string mail_to, string mail_from, string title, string text, int text_format, string filename);

 

ÇÔ¼öÀÎÀÚ

string mail_server : ¸ÞÀÏÀ» º¸³¾ ¶§ »ç¿ëÇÏ´Â ¸ÞÀÏ ¼­¹ö¸í

string username : Á¢¼ÓÇÒ ¸ÞÀϼ­¹öÀÇ »ç¿ëÀÚ¸í

string password : Á¢¼ÓÇÒ ¸ÞÀϼ­¹öÀÇ ºñ¹Ð¹øÈ£

int ssl : ¸ÞÀÏÀ» º¸³¾¶§ SSL º¸¾È »ç¿ë ¿©ºÎ 0=»ç¿ë¾ÈÇÔ, 1=»ç¿ë (Port =25)

(10.3.6.16 ºÎÅÍ´Â 2,3,4,...= »ç¿ë (Port =2,3,4 ...) À¸·Î SSL »ç¿ë½Ã SMTP PortÀÇ ¹øÈ£¸¦ ÁöÁ¤ÇÒ ¼ö ÀÖ´Ù.)

(10.3.6.16 ÀÌÈÄ ¹öÀüÀº ¿¹Á¦ 2ÀÇ Çü½ÄÀ» Âü°í. )

string mail_to : ¹Þ´Â »ç¶÷ÀÇ ¸ÞÀÏ

string mail_from : º¸³»´Â »ç¶÷ÀÇ ¸ÞÀÏ

string title : ¸ÞÀÏÀÇ Á¦¸ñ

string text : ¸ÞÀÏÀÇ º»¹®

int text_format : º»¹®ÀÇ Æ÷¸Ë Çü½Ä (0=Text Format, 1=Html Format)

string filename : ÷ºÎÆÄÀϸí

 

¹Ýȯ °ª

1À» returnÇÏ¸é º¸³»±â ¼º°ø 0=½ÇÆÐ

 

¿¹Á¦ 1

retn = @MailSend("mail.autobase.biz", "username", "password", 0, "test@test.co.kr", "send@test.co.kr", "Mail Test by autobase script", "Hello", 0, "c:\\keypro_log.txt");

if(retn == 1) {
   @MessageBox("Mail successfully sended.", "O.K", MB_OK);
}
else {
   error = @GetLastError();
   @MessageBox(error, "Fail", MB_OK);
}

 

¹®Àå¼³¸í : test@test.co.kr ¿¡°Ô ¸ÞÀÏÀ» ¹ß¼ÛÇÑ´Ù.

 

¿¹Á¦ 2

retn = @MailSend("mail.autobase.biz", "username", "password", 587, "test@test.co.kr", "send@test.co.kr", "Mail Test by autobase script", "Hello", 0, "c:\\keypro_log.txt");

if(retn == 1) {
   @MessageBox("Mail successfully sended.", "O.K", MB_OK);
}
else {
   error = @GetLastError();
   @MessageBox(error, "Fail", MB_OK);
}

 

¹®Àå¼³¸í : test@test.co.kr ¿¡°Ô SMTP Port ¸¦ 587·Î ÁöÁ¤ÇÏ¿© SSLÀ» Àû¿ëÇÑ ¸ÞÀÏÀ» ¹ß¼ÛÇÑ´Ù.

 

 

¹öÀüÁ¤º¸

ÃÖÃÊÁö¿ø: 10.2.6