Lines Matching refs:PW32G

221 		strcpy(PW32G(mail_host), host);  in TSendMail()
303 PW32G(mail_host), !INI_INT("smtp_port") ? 25 : INI_INT("smtp_port")); in TSendMail()
340 shutdown(PW32G(mail_socket), 0); in TSMClose()
341 closesocket(PW32G(mail_socket)); in TSMClose()
413 snprintf(PW32G(mail_buffer), sizeof(PW32G(mail_buffer)), "HELO %s\r\n", PW32G(mail_local_host)); in SendText()
417 if ((res = Post(PW32G(mail_buffer))) != SUCCESS) { in SendText()
423 if ((res = Post(PW32G(mail_buffer))) != SUCCESS) { in SendText()
433 FormatEmailAddress(PW32G(mail_buffer), RPath, "MAIL FROM:<%s>\r\n"); in SendText()
434 if ((res = Post(PW32G(mail_buffer))) != SUCCESS) { in SendText()
448 FormatEmailAddress(PW32G(mail_buffer), token, "RCPT TO:<%s>\r\n"); in SendText()
449 if ((res = Post(PW32G(mail_buffer))) != SUCCESS) { in SendText()
469 FormatEmailAddress(PW32G(mail_buffer), token, "RCPT TO:<%s>\r\n"); in SendText()
470 if ((res = Post(PW32G(mail_buffer))) != SUCCESS) { in SendText()
499 FormatEmailAddress(PW32G(mail_buffer), token, "RCPT TO:<%s>\r\n"); in SendText()
500 if ((res = Post(PW32G(mail_buffer))) != SUCCESS) { in SendText()
524 FormatEmailAddress(PW32G(mail_buffer), token, "RCPT TO:<%s>\r\n"); in SendText()
525 if ((res = Post(PW32G(mail_buffer))) != SUCCESS) { in SendText()
557 FormatEmailAddress(PW32G(mail_buffer), token, "RCPT TO:<%s>\r\n"); in SendText()
558 if ((res = Post(PW32G(mail_buffer))) != SUCCESS) { in SendText()
795 if ((PW32G(mail_socket) = socket(PF_INET, SOCK_STREAM, 0)) == INVALID_SOCKET) { in MailConnect()
800 if (gethostname(PW32G(mail_local_host), HOST_NAME_LEN)) { in MailConnect()
801 closesocket(PW32G(mail_socket)); in MailConnect()
805 ent = gethostbyname(PW32G(mail_local_host)); in MailConnect()
808 closesocket(PW32G(mail_socket)); in MailConnect()
821 closesocket(PW32G(mail_socket)); in MailConnect()
825 strcpy(PW32G(mail_local_host), "["); in MailConnect()
826 strcpy(PW32G(mail_local_host) + 1, ent->h_name); in MailConnect()
827 strcpy(PW32G(mail_local_host) + namelen + 1, "]"); in MailConnect()
830 closesocket(PW32G(mail_socket)); in MailConnect()
834 strcpy(PW32G(mail_local_host), ent->h_name); in MailConnect()
853 sock_in.sin_addr.S_un.S_addr = GetAddr(PW32G(mail_host)); in MailConnect()
855 if (connect(PW32G(mail_socket), (LPSOCKADDR) & sock_in, sizeof(sock_in))) { in MailConnect()
856 closesocket(PW32G(mail_socket)); in MailConnect()
887 if ((slen = send(PW32G(mail_socket), msg + index, len, 0)) < 1) in Post()
920 if ((rlen = recv(PW32G(mail_socket), buf + Index, ((MAIL_BUFFER_SIZE) - 1) - Received, 0)) < 1) { in Ack()