{"Bad Mail Host"},
{"Bad Message File"},
{"\"sendmail_from\" not set in php.ini"},
+
{"Mailserver rejected our \"sendmail_from\" setting"} /* 20 */
};
char *GetSMErrorText(int index)
{
+
if (MIN_ERROR_INDEX <= index && index < MAX_ERROR_INDEX) {
return (ErrorMessages[index]);
+
} else {
return (ErrorMessages[UNKNOWN_ERROR]);
+
}
}
efree(tempMailTo);
if (headers && (pos1 = strstr(headers, "Cc:"))) {
if (NULL == (pos2 = strstr(pos1, "\r\n"))) {
+
tempMailTo = estrndup(pos1, strlen(pos1));
+
} else {
tempMailTo = estrndup(pos1, pos2-pos1);
+
}
token = strtok(tempMailTo, ",");