2017-01-23 4 views
-1

私は自動的にmydelfにウェブページのオープン時に生成されたPHPデータを含むメールを送信します。これは可能ですか?開封時にPHPデータを含むメールを自動的に送信

$string ='"'.$QUERY_STRING.'","' // everything after "?" in the URL 
    .$_SERVER['REMOTE_ADDR'].'","' // ip address 
    .$hostname.'","' // hostname 
    .$_SERVER['HTTP_USER_AGENT'].'","' // browser and operating system 
    .$_SERVER['HTTP_REFERER'].'","' // where they got the link for this page 
    .$details->loc.'","' // latitude, longitude 
    .$details->org.'","' // internet service provider 
    .$details->city.'","' // city 
    .$details->region.'","' // state 
    .$details->country.'","' // country 
    .date("D dS M,Y h:i a").'"' // date 
    ."\n" 
    ; 

答えて

-1

あなたは

http://php.net/manual/en/function.mail.php

PHPのメール機能を使用することができますしかし、あなたは、おそらくこれは、実際に彼らの質問に答えていないphpmailerの

https://github.com/PHPMailer/PHPMailer

+0

としたほうが良いでしょう。さらに、明らかにトピック外の質問に関する回答を投稿しないでください。 [トピックの質問にはアドバイスする必要がありますか?**](http://meta.stackoverflow.com/q/276572/1768232)トピック以外の質問は、投稿を削除したり削除したりすることができます。 –

関連する問題