Haz algunois cambios ok por ejemplo este:
reemplaza:
Código PHP:
$dataEscribir = "\n".",,".$correoToAdd.",";
por:
Código PHP:
$dataEscribir = "\n,,".$correoToAdd.",";
y tambien este:
Código PHP:
header("Location: ./index.html");
cambialo por:
Código PHP:
header("Location: ".$thanksURL);