setFrom("service@cyanwireless.com", "CYAN Wireless"); $email->setSubject($subject); $email->addTo($to); $email->addContent( "text/html", $body ); $sendgrid = new \SendGrid('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'); try { $response = $sendgrid->send($email); } catch (Exception $e) { echo 'Caught exception: '. $e->getMessage() ."\n"; } } $n = str_replace("-"," ",$_GET[city]); $c = str_replace("-"," ",$_GET[state]); ?> High Speed Internet in $c $n - CYAN Wireless - No Contracts, No Credit Check"; echo ""; } elseif (isset($_GET[city])) { echo "High Speed Internet in $n $c - CYAN Wireless - No Contracts, No Credit Check"; echo ""; } else { if ($_GET[nav] == "coverage") { echo "CYAN Wireless Coverage - High Speed Rural Internet - No Contracts, No Credit Check"; echo ""; } else { echo "CYAN Wireless - High Speed Rural Internet - No Contracts, No Credit Check"; echo ""; } } ?>