not declared in this scope - BS! It's two lines above.

I've been sitting for hours trying to figure this out... for some reason IDE won't see a variable "smtp" as declared, even though I do so in the argument of the very function.

C:\Users\matt\Documents\Arduino\libraries\AlertMe\src\AlertMe.cpp: In member function 'const char* AlertMe::send(String, String, String, String, int)':

C:\Users\matt\Documents\Arduino\libraries\AlertMe\src\AlertMe.cpp:348:54: error: 'stmp' was not declared in this scope

if (gsender->Subject(subject)->Send(dest, message, stmp, port) == true) {

^

Here is the function:

const char* AlertMe::send(String subject, String message, String dest, String smtp, int port) {

  DEBUG_AM("Sending message to ");
  DEBUG_AM(dest);
  DEBUG_AM(':');
  DEBUG_AM("SUBJECT: ");
  DEBUG_AM(subject);
  DEBUG_AM("   BODY: ");
  DEBUG_AM(message);

  Gsender *gsender = Gsender::Instance(smtp, port);
  if (gsender->Subject(subject)->Send(dest, message, stmp, port) == true) {

    DEBUG_AM("Message sent successfully.");

    return "SENT";
  }
  else {
    strcpy(last_error,gsender->getError());

    DEBUG_AM("Message sending failed. (");
	DEBUG_AM(last_error);
	DEBUG_AM(')');
 
   return last_error;
  }
}

stmp != smtp.

"smtp" and "stmp" are NOT the same thing....

I've been sitting for hours trying to figure this out

A simple text search would have found the problem in a fraction of a second.

Whoops!