Lines Matching refs:PW32G

208 		strcpy(PW32G(mail_host), host);  in TSendMail()
288 PW32G(mail_host), !INI_INT("smtp_port") ? 25 : INI_INT("smtp_port")); in TSendMail()
325 shutdown(PW32G(mail_socket), 0); in TSMClose()
326 closesocket(PW32G(mail_socket)); in TSMClose()
398 snprintf(PW32G(mail_buffer), sizeof(PW32G(mail_buffer)), "HELO %s\r\n", PW32G(mail_local_host)); in SendText()
402 if ((res = Post(PW32G(mail_buffer))) != SUCCESS) { in SendText()
408 if ((res = Post(PW32G(mail_buffer))) != SUCCESS) { in SendText()
418 FormatEmailAddress(PW32G(mail_buffer), RPath, "MAIL FROM:<%s>\r\n"); in SendText()
419 if ((res = Post(PW32G(mail_buffer))) != SUCCESS) { in SendText()
433 FormatEmailAddress(PW32G(mail_buffer), token, "RCPT TO:<%s>\r\n"); in SendText()
434 if ((res = Post(PW32G(mail_buffer))) != SUCCESS) { in SendText()
454 FormatEmailAddress(PW32G(mail_buffer), token, "RCPT TO:<%s>\r\n"); in SendText()
455 if ((res = Post(PW32G(mail_buffer))) != SUCCESS) { in SendText()
484 FormatEmailAddress(PW32G(mail_buffer), token, "RCPT TO:<%s>\r\n"); in SendText()
485 if ((res = Post(PW32G(mail_buffer))) != SUCCESS) { in SendText()
509 FormatEmailAddress(PW32G(mail_buffer), token, "RCPT TO:<%s>\r\n"); in SendText()
510 if ((res = Post(PW32G(mail_buffer))) != SUCCESS) { in SendText()
542 FormatEmailAddress(PW32G(mail_buffer), token, "RCPT TO:<%s>\r\n"); in SendText()
543 if ((res = Post(PW32G(mail_buffer))) != SUCCESS) { in SendText()
771 if ((PW32G(mail_socket) = socket(PF_INET, SOCK_STREAM, 0)) == INVALID_SOCKET) { in MailConnect()
776 if (gethostname(PW32G(mail_local_host), HOST_NAME_LEN)) { in MailConnect()
777 closesocket(PW32G(mail_socket)); in MailConnect()
781 ent = gethostbyname(PW32G(mail_local_host)); in MailConnect()
784 closesocket(PW32G(mail_socket)); in MailConnect()
797 closesocket(PW32G(mail_socket)); in MailConnect()
801 strcpy(PW32G(mail_local_host), "["); in MailConnect()
802 strcpy(PW32G(mail_local_host) + 1, ent->h_name); in MailConnect()
803 strcpy(PW32G(mail_local_host) + namelen + 1, "]"); in MailConnect()
806 closesocket(PW32G(mail_socket)); in MailConnect()
810 strcpy(PW32G(mail_local_host), ent->h_name); in MailConnect()
829 sock_in.sin_addr.S_un.S_addr = GetAddr(PW32G(mail_host)); in MailConnect()
831 if (connect(PW32G(mail_socket), (LPSOCKADDR) & sock_in, sizeof(sock_in))) { in MailConnect()
832 closesocket(PW32G(mail_socket)); in MailConnect()
863 if ((slen = send(PW32G(mail_socket), msg + index, len, 0)) < 1) in Post()
896 if ((rlen = recv(PW32G(mail_socket), buf + Index, ((MAIL_BUFFER_SIZE) - 1) - Received, 0)) < 1) { in Ack()