diff --git a/smtp.php b/smtp.php
index <HASH>..<HASH> 100644
--- a/smtp.php
+++ b/smtp.php
@@ -290,7 +290,7 @@ class SMTP extends Magic {
 	*	@param $user string
 	*	@param $pw string
 	**/
-	function __construct($host,$port,$scheme,$user,$pw) {
+	function __construct($host='localhost',$port=25,$scheme=null,$user=null,$pw=null) {
 		$this->headers=array(
 			'MIME-Version'=>'1.0',
 			'Content-Type'=>'text/plain; '.
Set default paramaters for smtp class

Allows using the smtp class with local mailserver by just using "new \SMTP()" instead of having to define all parameters.