Html 如何将注册信息发送到电子邮件
我有一个登录页,我想把注册信息直接发送到我的电子邮件中,或者放在excel文件中Html 如何将注册信息发送到电子邮件,html,ajax,Html,Ajax,我有一个登录页,我想把注册信息直接发送到我的电子邮件中,或者放在excel文件中 // send data to some get post API , if so uncomment next code and customize for your needs $myvars = 'publicid=' . $publicid . '&firstname=' . $firstname . '&lastname=' . $lastname . '&email=' .
// send data to some get post API , if so uncomment next code and customize for your needs
$myvars = 'publicid=' . $publicid . '&firstname=' . $firstname . '&lastname=' . $lastname . '&email=' . $email . '&phone=' . $phone . '&country=' . $selected_country . '&leadsource=' . $leadsource[0] . '&ip=' . $ip;
$url = "#";
$ch = curl_init( $url );
curl_setopt( $ch, CURLOPT_POST, 1);
curl_setopt( $ch, CURLOPT_POSTFIELDS, $myvars);
curl_setopt( $ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt( $ch, CURLOPT_HEADER, 0);
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1);
$response = curl_exec( $ch );
var_dump($response);
echo '{"success":true,"message":{"message":"lead insert"}}';
?>
因此,您需要做stackoverflow中已经要求的两件事,请阅读这两页: 使用您的数据生成excel: 发送带有附件的电子邮件: