Skip to content

jjdai Blog

  • 首頁
  • 關於我們

Tag: php mail function

[PHP] 如何傳送一封 MIME / HTML 格式的 email 信件

Simple codes to send the MIME / HTML email with PHP

一般我們使用 PHP 程式傳送文字 email (text email) 可以很直覺地填寫好 message 欄位即可將信件送出, 但是如果想在 PHP 程式中傳送一封 HTML 格式的 email (HTML email) 則需要做一些小改變:

  1. 需要決定信件內容的 charset
  2. 需要設定 MIME 版本和 Content-type header 內容

Continue reading “[PHP] 如何傳送一封 MIME / HTML 格式的 email 信件”

Author cctaiPosted on 2010/10/122011/03/03Categories HTML, PHP, 實作, 解決Tags email, PHP, php html email, php mail form, php mail function, php mail script, php MIME mail, php mime type headerLeave a comment on [PHP] 如何傳送一封 MIME / HTML 格式的 email 信件

熱門文章:

  • [WEB][PHP][SEO] 轉導、轉向(Redirect)網址的方法. 3 views
  • [SEO][服務架設] 讓 MediaWiki 使用短網址(short url) 2 views
  • [PHP] 解決中文郵件寄件者, 收件者名稱, 信件標題亂碼問題 2 views
  • [PHP] 用密件副本(BCC)傳送 email 的方法 2 views
  • 改變/更改 SFTP 所連往的 port 以連到非 port 22 的遠端伺服器 1 view
  • 用搜尋引擎的網站管理員 (webmaster) 工具做 SEO (2) – Google 篇 1 view
  • [服務架設][系統][sshd] ssh_exchange_identification: Connection closed by remote host 解決 1 view
  • postfix 中只開 localhost 網路介面或跑 Virtual Host 時, 碰到 loops back to myself 錯誤要如何解決? 1 view
  • [SEO][架站] 使用 Apache 的 ReWrite 設定讓 URL 變短(short URL)、變成靜態樣式 1 view
  • 將MySQL升級成4.1版遇到 ‘Warning: mysql_connect() [function.mysql-connect]: Client does not support authentication protocol requested by server; consider upgrading MySQL client in …..’ 錯誤訊息要如何解? 1 view
  • [Joomla][教學] 如何改變Joomla前台icon (change Joomla Favicon) 1 view
  • [HTML][JS] 為 textarea 增加 maxlength 屬性 1 view

最新文章:

  • Interactive Brokers (IB) 盈透證券新客送股計劃的推薦鏈接
  • [服務架設][系統][sshd] ssh_exchange_identification: Connection closed by remote host 解決
  • [服務架設][系統][PHP] Fatal error: Call to undefined function exif_read_data()
  • [SEO][服務架設] 讓 MediaWiki 使用短網址(short url)
  • 如何移除並取消 MySQL 的 binary log 檔案

最新回應:

  • 如何使用 Apache Virtual Host 功能在 同一台伺服器建立多個網站 – BoB 團 on [SEO][架站] 使用 Apache 的 ReWrite 設定讓 URL 變短(short URL)、變成靜態樣式
  • 关于favicon.ico的两三事 – HELIAN.info on [架站] 為什麼網站的根目錄最好有 favicon.ico 和 robots.txt 存在?
  • 轉導、轉向(Redirect)網址的方法 – Blog # Ho Chun on [WEB][PHP][SEO] 轉導、轉向(Redirect)網址的方法.
  • Blogger要怎麼發文啊 | a port of heart on [PHP]如何用程式刊登文章到 Google Blogger/blogspot 部落格
  • 关于favicon.ico的两三事[转] | 823工作室 on [架站] 為什麼網站的根目錄最好有 favicon.ico 和 robots.txt 存在?

彙整:

  • October 2024
  • January 2018
  • May 2016
  • July 2014
  • June 2014
  • July 2013
  • May 2013
  • April 2013
  • May 2012
  • October 2011
  • July 2011
  • October 2010

文章分類:

  • AdSense
  • ASP
  • HTML
  • HTML5
  • JavaScript
  • Joomla
    • Install Joomla
  • Linux
  • MySQL
  • PHP
  • Python
  • SEO
  • Uncategorized
  • 實作
  • 架站
    • web page validation
    • web standard
  • 解決
  • 隨記

鏈結:

  • Site Admin
  • Log out
  • Entries RSS RSS
  • Comments RSS RSS
  • sitemap.xml

書籤:

  • 301 redirect
  • 302 redirect
  • apache
  • Apache Web Server
  • BaiDu Web Master
  • Bing Web Master
  • email
  • favicon.ico
  • GAE
  • Google Web Master
  • HTML
  • html redirection
  • html redirect page
  • html refresh page
  • HTTP
  • http redirect example
  • http redirect head
  • http redirect html
  • http redirection
  • http redirect meta
  • http redirects
  • Install Joomla
  • javascript
  • Joomla
  • localhost
  • MySQL
  • PHP
  • postfix mail server
  • Python
  • Python教學
  • redirect javascript
  • redirect php
  • redirect script
  • rewrite url
  • Search Engine Optimization
  • SEF
  • SEO
  • short url
  • short url redirection
  • short urls
  • Virtual Host
  • webmaster
  • 搜尋引擎最佳化
  • 教學
  • 架站

日歷:

May 2025
M T W T F S S
 1234
567891011
12131415161718
19202122232425
262728293031  
« Oct    
(C) Copyright Dai, Juin-Jia. All Rights Reserved.
  • 首頁
  • 關於我們
jjdai Blog Privacy Policy Proudly powered by WordPress