Lines Matching refs:PW32G

221 		strcpy(PW32G(mail_host), host);  in TSendMail()
302 PW32G(mail_host), !INI_INT("smtp_port") ? 25 : INI_INT("smtp_port")); in TSendMail()
339 shutdown(PW32G(mail_socket), 0); in TSMClose()
340 closesocket(PW32G(mail_socket)); in TSMClose()
412 snprintf(PW32G(mail_buffer), sizeof(PW32G(mail_buffer)), "HELO %s\r\n", PW32G(mail_local_host)); in SendText()
416 if ((res = Post(PW32G(mail_buffer))) != SUCCESS) { in SendText()
422 if ((res = Post(PW32G(mail_buffer))) != SUCCESS) { in SendText()
432 FormatEmailAddress(PW32G(mail_buffer), RPath, "MAIL FROM:<%s>\r\n"); in SendText()
433 if ((res = Post(PW32G(mail_buffer))) != SUCCESS) { in SendText()
447 FormatEmailAddress(PW32G(mail_buffer), token, "RCPT TO:<%s>\r\n"); in SendText()
448 if ((res = Post(PW32G(mail_buffer))) != SUCCESS) { in SendText()
468 FormatEmailAddress(PW32G(mail_buffer), token, "RCPT TO:<%s>\r\n"); in SendText()
469 if ((res = Post(PW32G(mail_buffer))) != SUCCESS) { in SendText()
498 FormatEmailAddress(PW32G(mail_buffer), token, "RCPT TO:<%s>\r\n"); in SendText()
499 if ((res = Post(PW32G(mail_buffer))) != SUCCESS) { in SendText()
523 FormatEmailAddress(PW32G(mail_buffer), token, "RCPT TO:<%s>\r\n"); in SendText()
524 if ((res = Post(PW32G(mail_buffer))) != SUCCESS) { in SendText()
556 FormatEmailAddress(PW32G(mail_buffer), token, "RCPT TO:<%s>\r\n"); in SendText()
557 if ((res = Post(PW32G(mail_buffer))) != SUCCESS) { in SendText()
794 if ((PW32G(mail_socket) = socket(PF_INET, SOCK_STREAM, 0)) == INVALID_SOCKET) { in MailConnect()
799 if (gethostname(PW32G(mail_local_host), HOST_NAME_LEN)) { in MailConnect()
800 closesocket(PW32G(mail_socket)); in MailConnect()
804 ent = gethostbyname(PW32G(mail_local_host)); in MailConnect()
807 closesocket(PW32G(mail_socket)); in MailConnect()
820 closesocket(PW32G(mail_socket)); in MailConnect()
824 strcpy(PW32G(mail_local_host), "["); in MailConnect()
825 strcpy(PW32G(mail_local_host) + 1, ent->h_name); in MailConnect()
826 strcpy(PW32G(mail_local_host) + namelen + 1, "]"); in MailConnect()
829 closesocket(PW32G(mail_socket)); in MailConnect()
833 strcpy(PW32G(mail_local_host), ent->h_name); in MailConnect()
852 sock_in.sin_addr.S_un.S_addr = GetAddr(PW32G(mail_host)); in MailConnect()
854 if (connect(PW32G(mail_socket), (LPSOCKADDR) & sock_in, sizeof(sock_in))) { in MailConnect()
855 closesocket(PW32G(mail_socket)); in MailConnect()
886 if ((slen = send(PW32G(mail_socket), msg + index, len, 0)) < 1) in Post()
919 if ((rlen = recv(PW32G(mail_socket), buf + Index, ((MAIL_BUFFER_SIZE) - 1) - Received, 0)) < 1) { in Ack()