the universal email code:
<?php
if ((($_SERVER["REQUEST_METHOD"] == "POST") && (isset($_SERVER["HTTP_REFERER"]) && strpos(urldecode($_SERVER["HTTP_REFERER"]), urldecode($_SERVER["SERVER_NAME"].$_SERVER["PHP_SELF"])) > 0) && isset($_POST))) {
//WA Universal Email object="mail"
//Send Loop Once Per Entry
$RecipientEmail = "".($WAGLOBAL_Contact_Email_To) ."";include("./WA_Universal_Email/WAUE_contact_1.php");
//Send Mail All Entries
if ("index.php"!="") {
header("Location: thankyou.php");
}
}
?>
is redirecting before the code that sends to the sms address.
change:if ("index.php"!="") {
header("Location: thankyou.php");
}
to:
if (""!="") {
header("Location: ");
}
to prevent the redirect.