/*
- * "$Id: mailto.c 4961 2006-01-20 22:19:13Z mike $"
+ * "$Id: mailto.c 5235 2006-03-06 13:02:23Z mike $"
*
* "mailto" notifier for the Common UNIX Printing System (CUPS).
*
fprintf(stderr, "DEBUG: Connected to \"%s\"...\n", mailtoSMTPServer);
- cupsFilePrintf(fp, "HELO %s\r\n", httpGetHostname(hostbuf, sizeof(hostbuf)));
+ cupsFilePrintf(fp, "HELO %s\r\n",
+ httpGetHostname(NULL, hostbuf, sizeof(hostbuf)));
fprintf(stderr, "DEBUG: >>> HELO %s\n", hostbuf);
if (!cupsFileGets(fp, response, sizeof(response)) || atoi(response) >= 500)
strlcpy(mailtoFrom, server_admin, sizeof(mailtoFrom));
else
snprintf(mailtoFrom, sizeof(mailtoFrom), "root@%s",
- httpGetHostname(line, sizeof(line)));
+ httpGetHostname(NULL, line, sizeof(line)));
strlcpy(mailtoSendmail, "/usr/sbin/sendmail", sizeof(mailtoSendmail));
/*
- * End of "$Id: mailto.c 4961 2006-01-20 22:19:13Z mike $".
+ * End of "$Id: mailto.c 5235 2006-03-06 13:02:23Z mike $".
*/