Archive for September, 2009:

How to Send Email from a PHP Script

Send email from PHP script is extremely easy. All you need is one function: mail($to, $subject, $body, $headers) This is an example: <?php $to = “recipient@example.com”; $subject = “Hi!”; $body = “Hi,\n\nHow are you?”; $headers = “From: sender@example.com\r\n” . “Cc: ccsender@example.com\r\n” . “X-Mailer: php”; if (mail($to, $subject, $body)) { echo(“<p>Message successfully sent!</p>”); } else { [...]

Comments Off

Dos commands to find a username or computername

To get user name in DOS batch use NET CONFIG command Example #1 C:\net config Computer name                        \\COMPUTER735 Full Computer name                   HomePC_Desktop User name                            kris Workstation active on NetbiosSmb (000000000000) NetBT_Tcpip_{CC09707A-A099-457D-BD4F-15F9F783C4C1} (00319B7A4864) Software version                     Windows 2002 Workstation domain                   DSE Workstation Domain DNS Name          domain.co.uk Logon domain                         DSE COM Open Timeout (sec)               0 COM Send Count [...]

Tags: , , ,

Comments Off