在纯PHP7.1中如何重定向邮件后的页面

在纯PHP7.1中如何重定向邮件后的页面,php,redirect,mailto,Php,Redirect,Mailto,因此,我正在用PHP 7.1构建一个web应用程序,没有任何框架,在填写表单后,我将重定向到mailto链接,如下所示: header("Location: mailto:$mail?subject=$subje&body=$mailstring&message=" . $succes, true); 这是一个构造的字符串,但我知道它可以工作,因为它会生成我想要的电子邮件。但在那之后,我希望te页面继续到另一个页面,就像在表单提交之后一样。这可能吗?如果可能,怎么可能?&消息部

因此,我正在用PHP 7.1构建一个web应用程序,没有任何框架,在填写表单后,我将重定向到mailto链接,如下所示:

header("Location: mailto:$mail?subject=$subje&body=$mailstring&message=" . $succes, true);
这是一个构造的字符串,但我知道它可以工作,因为它会生成我想要的电子邮件。但在那之后,我希望te页面继续到另一个页面,就像在表单提交之后一样。这可能吗?如果可能,怎么可能?&消息部分用于表单提交并打开邮件后我要转到的页面。如果我需要为此使用一个小javascript(没有jquery或任何东西),也可以


提前感谢。

我发现这在PHP中是不可能的,所以我使用Javascript的window.open()实现了这一点。立即关闭打开的空窗格,然后重定向页面,如下所示:

        let mail = "mailto:" + findGetParameter("mail") + "?subject=" + findGetParameter("subject") + "&body=" + findGetParameter("body");
        let newmail = encodeURI(mail);
        win = window.open(newmail);
        while(!win.closed) {
            win.close();
        }
        window.location.href = uri + "/Action/Page.php?message=" + findGetParameter("message");