Home page Forum

Go Back   MyServerZone » My Server Discussion » Server protection & Scripting » Scripting

Reply
 
LinkBack Thread Tools Display Modes
Old 11-27-2008, 03:52 PM
Administrator
 
KING's Avatar
 
Join Date: Nov 2008
Posts: 23
Send a message via ICQ to KING Send a message via Yahoo to KING Send a message via Skype™ to KING
Default PHP mail send script.

If you need simple php mail script,example to test your mail server we can use this:

Code:
<?
mail('webmaster@myserver.com','haha testing mail (subject)','there is my message');
?>
So using this script webmaster@myserver.com will receive email.

Email script with charset:


Code:

  <?
  $header = "Content-type: text/plain; charset=\"UTF-8\"\r\n";
  $header .= "From: MyServerZone admin <admin@myserverzone.net>\r\n";
  $header .= "Reply-to: my@email.com\r\n";

  mail('webmaster@Receiver_email.com','Mail subject (subject)','And message',$header);

?>
KING is offline   Reply With Quote
Sponsored Links
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:00 PM.