2011-12-14 88 views
5

我正在創建一個html頁面,並且在我的html頁面中有一個按鈕。點擊該按鈕後,必須用「」和「主題」信息打開Outlook,如圖所示。使用php和html打開Outlook新郵件

enter image description here

任何能幫助我如何提前打開與php.Thanks前景。

+3

如果客戶在他的PC上沒有展望,你會怎麼做? HTML commande是'` – 2011-12-14 11:27:26

回答

17

這裏的鏈接使用:

<a href="mailto:[email protected]?subject=Feedback for webdevelopersnotes.com&body=The Tips and Tricks section is great">Send me an email</a> 

Source is here

+0

+1爲非常好的來源鏈接。 – Maheep 2011-12-14 11:31:27

6

使用的mailto超鏈接,客戶端機器

<a href="mailto:[email protected]?Subject=subject here&Body=bodytext"> 
    Link display text 
</a> 

上打開郵件應用程序也可以使用查詢字符串paramters添加CCBCC,因爲我們已經做了

這將打開在客戶機上配置的默認郵件應用程序;它可能會相應地打開不同的應用

1

我認爲你應該使用一個標籤像下面

<a href="mailto:[email protected]">your_email</a> 

但打開Outlook,Thunderbird或其他客戶端是用戶的默認設置。

+0

嗨@noctilux這段代碼正在爲我工​​作,我已經添加了這段代碼,以便我當前的Outlook頁面打開。如果在電腦沒有展望的情況下會打開什麼,請告訴我,謝謝。 – Kogile 2015-11-02 09:59:29

相關問題