IFTTT with email

I want to make a temperature sensor with esp8266
and if the temperature is above 28 celsius it should send a email, and send the result to thingspeak, the thingspeak part works, it goes into the if loop above 28 degress but it doesnt send the email? what did i do wrong?

The email part i got from this code, and it works here

#include <ESP8266WiFi.h>
const int httpPort = 80;
const char* ssid = "xxx";
const char* password = "xxx";
const char* host = "maker.ifttt.com";
String url = "/trigger/xxx/with/key/cf2iDx79B-c_5oAQB2tT15";
void setup() {
    Serial.begin(115200);
    Serial.println(ssid);
    WiFi.begin(ssid, password);   
    while (WiFi.status() != WL_CONNECTED) {
    delay(500);
    Serial.print(".");} 
    Serial.println("");
    Serial.println("IP address: ");
    Serial.println(WiFi.localIP());}
void loop() {
           WiFiClient client; 
           if (!client.connect(host, httpPort)) { 
           Serial.println("connection failed"); 
           return;}
           if(Serial.available()){
           char a=Serial.read();
           if (a=='y');{   
           Client.print(String("GET ") + url + " HTTP/1.1\r\n" +
           "Host: " + host + "\r\n" +   
           "Connection: close\r\n\r\n");}}
          delay(1000);}

I tried to put it in this code but it didnt work

#include <DallasTemperature.h>
#include <OneWire.h>
#include <ThingSpeak.h>
#include <ESP8266WiFi.h>
#define ONE_WIRE_BUS 5
#define TEMPERATURE_PRECISION 10
String url = "/trigger/xxx/with/key/cf2iDx79B-c_5oAQB2tT15";
unsigned long myChannelNumber = 123456;
const char * myWriteAPIKey="xxx";
const char* ssid="xxx";
const char* password="xxx";
const char* host = "maker.ifttt.com";
const int httpPort = 80;
int updatePeriod = 20;
int fieldStart = 1;
int status = WL_IDLE_STATUS;
OneWire oneWire(ONE_WIRE_BUS);
DallasTemperature sensors(&oneWire);
int numberOfDevices;
DeviceAddress tempDeviceAddress;
WiFiClient  client;
void setup() {
 Serial.begin(115200);
  delay(10);
  Serial.println();
  Serial.println();
  pinMode(A0,INPUT);
  Serial.print("Connecting to ");
  Serial.println(ssid);
  WiFi.begin(ssid, password); 
  while (WiFi.status() != WL_CONNECTED) {
    delay(500);
    Serial.print(".");}
  Serial.println("");
  Serial.println("WiFi connected"); 
  Serial.println("IP address: ");
  Serial.println(WiFi.localIP());
  ThingSpeak.begin(client);
  sensors.begin();
  numberOfDevices = sensors.getDeviceCount();
  Serial.print("Locating devices...");
  Serial.print("Found ");
  Serial.print(numberOfDevices, DEC);
  Serial.println(" devices.");
  Serial.print("Parasite power is: ");
  if (sensors.isParasitePowerMode()) Serial.println("ON");
  else Serial.println("OFF");
  for(int i=0;i<numberOfDevices; i++)
  {if(sensors.getAddress(tempDeviceAddress, i)){
    Serial.print("Found device ");
    Serial.print(i, DEC);
    Serial.print(" with address: ");
    printAddress(tempDeviceAddress);
    Serial.println();   
    Serial.print("Setting resolution to ");
    Serial.println(TEMPERATURE_PRECISION, DEC);
    sensors.setResolution(tempDeviceAddress, TEMPERATURE_PRECISION);   
    Serial.print("Resolution actually set to: ");
    Serial.print(sensors.getResolution(tempDeviceAddress), DEC);
    Serial.println();  }else{
    Serial.print("Found ghost device at ");
    Serial.print(i, DEC);
    Serial.print(" but could not detect address. Check power and cabling");}}}
void printAddress(DeviceAddress deviceAddress)
{for (uint8_t i = 0; i < 8; i++){
    if (deviceAddress[i] < 16) Serial.print("0");
    Serial.print(deviceAddress[i], HEX);}}
void loop() {
  sensors.requestTemperatures();
  for (int i=0; i<=(numberOfDevices - 1); i++){
    float temp=sensors.getTempCByIndex(i);
    ThingSpeak.setField(i+fieldStart,temp);
    Serial.println("Sensor #:");
    Serial.print(i);
    Serial.println("Temperature:");
    Serial.println(temp);
  ThingSpeak.writeFields(myChannelNumber, myWriteAPIKey);
    Serial.println("Data sent to ThinkSpeak");
    delay(updatePeriod * 1000);
    if (temp>28){Serial.print("Sending E-mail");
                    client.print(String("GET ")+url+"HTTP/1.1\r\n"+"Host:"+host+"\r\n"+"Connection: close\r\n\r\n");}}}