Cool PHP Mail Script

Created: September 17, 2014
Last Modified: March 26, 2019
((( spellific )))
Practice spelling while playing a fun word game!
Click here to play
Speech Recognition Anywhere
  • Type emails with your voice
  • Write documents with your voice
  • Control the Inernet with your voice
  • Chrome Extension
Reconocimiento de voz en cualquier lugar
  • Escribe correos electrónicos con tu voz
  • Escribe documentos con tu voz
  • Controla la Inernet con tu voz
  • Extensión de Chrome
Spracherkennung Allerorts
  • Geben Sie E-Mails mit Ihrer Stimme ein
  • Schreiben Sie Dokumente mit Ihrer Stimme
  • Steuern Sie das Internet mit Ihrer Stimme
  • Chrome-Erweiterung
Reconnaissance de la parole
  • Tapez des e-mails avec votre voix
  • Écrivez des documents avec votre voix
  • Contrôlez l'Inernet avec votre voix
  • Extension Chrome
Riconoscimento vocale ovunque
  • Digita e-mail con la tua voce
  • Scrivi documenti con la tua voce
  • Controlla Internet con la tua voce
  • Estensione Chrome
どこでも
音声認識
  • あなたの声で文書を書く
  • あなたの声でメールを入力してください
  • あなたの声でInernetを制御する
  • Chrome拡張機能
语音识别
无处不在
  • 用你的声音写文件
  • 用您的声音输入电子邮件
  • 用你的声音控制互联网
  • Chrome 扩展程序
語音識別
無處不在
  • 用你的聲音寫文件
  • 用您的聲音輸入電子郵件
  • 用你的聲音控制互聯網
  • Chrome 擴展程序
Subscribe to Internet Tips and Tools Feed
f Share
-
G+ Share
-
Tweet
-
in Share
-
P in it
-

Here are two simple functions to send email in PHP.

  1. Using standard PHP - php_mail($to, $message, $headers_array)
  2. Using PEAR with PHP - pear_mail($to, $message, $headers_array)

The standard PHP and the PEAR functions will send both a plaintext and an html email with this script. Note: php.net says "If intending to send HTML or otherwise Complex mails, it is recommended to use the PEAR package". I have noticed myself, that if you send many emails at once using PHPs mail function without PEAR then most of the emails do not get sent. dlc_b

Download

Downloaded 0 times.
Please make a donation to reveal the download link.

then unzip coolphpmail.php. Edit line 26 with your name and email address to test the sending to. Upload coolphpmail.php to your server and point your browser to coolphpmail.php. The script will detect that you are running the script directly and send two emails to your email address. One email using standard PHP mail() function and the other email using PEAR mail functions.

Check your email and see which functions worked or if both worked. Then to use coolphpmail.php in your own scripts include it with:

include("coolphpmail.php");

and then call it in your script with:

php_mail($to, $message, $headers_array)

or

pear_mail($to, $message, $headers_array)

depending on which one worked.

The $headers_array should be created as follows:

	$headers = array('From' => $from_email, 
			'Reply-To' => $replyto_email,
			'Subject' => $subject,
			'Cc' => $cc_email,
			'Bcc' => $bcc_email);

The variable $from and the optional variable $reply-to can be one of the following formats:

	user@example.com
	John Smith <user@example.com>	

The variable $to and the optional variables $cc_email and $bcc_email can be any of the following:

	user@example.com
	user@example.com, anotheruser@example.com
	User <user@example.com>
	User <user@example.com>, Another User <anotheruser@example.com>

History

3/26/2019 - Version 1.1 - Fixed "warning: undefined variable" if PHP is set to display warnings.

9/17/2014 - Version 1.0 - Cool PHP Mail Script created

((( spellific )))
Practice spelling while playing a fun word game!
Click here to play
Speech Recognition Anywhere
  • Type emails with your voice
  • Write documents with your voice
  • Control the Inernet with your voice
  • Chrome Extension
Reconocimiento de voz en cualquier lugar
  • Escribe correos electrónicos con tu voz
  • Escribe documentos con tu voz
  • Controla la Inernet con tu voz
  • Extensión de Chrome
Spracherkennung Allerorts
  • Geben Sie E-Mails mit Ihrer Stimme ein
  • Schreiben Sie Dokumente mit Ihrer Stimme
  • Steuern Sie das Internet mit Ihrer Stimme
  • Chrome-Erweiterung
Reconnaissance de la parole
  • Tapez des e-mails avec votre voix
  • Écrivez des documents avec votre voix
  • Contrôlez l'Inernet avec votre voix
  • Extension Chrome
Riconoscimento vocale ovunque
  • Digita e-mail con la tua voce
  • Scrivi documenti con la tua voce
  • Controlla Internet con la tua voce
  • Estensione Chrome
どこでも
音声認識
  • あなたの声で文書を書く
  • あなたの声でメールを入力してください
  • あなたの声でInernetを制御する
  • Chrome拡張機能
语音识别
无处不在
  • 用你的声音写文件
  • 用您的声音输入电子邮件
  • 用你的声音控制互联网
  • Chrome 扩展程序
語音識別
無處不在
  • 用你的聲音寫文件
  • 用您的聲音輸入電子郵件
  • 用你的聲音控制互聯網
  • Chrome 擴展程序
Back to www.seabreezecomputers.com
Subscribe to Internet Tips and Tools Feed        

User Comments

There are 2 comments.

Displaying first 50 comments.

1. Posted By: Wayne Dinkins - - December 15, 2018, 7:21 pm
I purchased the Speech recognition Anywhere, and it sounds interesting, but I cannot locate the information to activate. My PC indicates itis downloaded, but I have searched and cannot find how to use the program. Need some help. thank you

2. Posted By: Jeff - - December 15, 2018, 10:40 pm
Hi Wayne Dinkins,

It is a Chrome extension. It doesn't download, it just installs when you click on "Add to Chrome" button at the Chrome Web Store. If you already installed the trial version then it is the same icon on the toolbar in Chrome. Just make sure that you are signed into Chrome with the same Google account that you used to purchase the extension with and then it will know that you paid for the Full version.

Jeff
www.seabreezecomputers.com