Alfa9 Posted June 28, 2011 Share Posted June 28, 2011 Hey guys I googled for it and I found some cool stuff(it's because I need to autentificate with username and password to my SMTP server !) But the problem is evry time I find An Article about that, with some code suplied too : For example I found this on some website : function mymail($username, $user_email, $subject, $message, $from, $host, $port, $username, $user_password) { // This is the Mail.php file from PEAR. include("Mail.php"); $recipients = $username; $headers["From"] = $from; $headers["To"] = $user_email; $headers["Subject"] = $subject; $body = $message; $params["host"] = $host; $params["port"] = $port; $params["auth"] = true; $params["username"] = $username; $params["password"] = $user_password; // Create the mail object using the Mail::factory method $mail_object =& Mail::factory("smtp", $params); $mail_object->send($recipients, $headers, $body); } I need to know where do they get the php.net from PEAR ?? I really need some help here Link to comment https://forums.phpfreaks.com/topic/240651-problem-with-smtp-mailer/ Share on other sites More sharing options...
carlito.way00 Posted June 28, 2011 Share Posted June 28, 2011 I hope this is what you were asking for. http://pear.php.net/packages.php Link to comment https://forums.phpfreaks.com/topic/240651-problem-with-smtp-mailer/#findComment-1236017 Share on other sites More sharing options...
Alfa9 Posted June 28, 2011 Author Share Posted June 28, 2011 Yes, thank's alot But I have another question : How can I install them ?? Link to comment https://forums.phpfreaks.com/topic/240651-problem-with-smtp-mailer/#findComment-1236020 Share on other sites More sharing options...
carlito.way00 Posted June 28, 2011 Share Posted June 28, 2011 if you ask me I will suggest you using a WAMP server (Windows Apache MySQL PHPMyAdmin) which you can google and download, guess they have included pear as a package, all you need to do is just how to install the wamp server and voila.. Link to comment https://forums.phpfreaks.com/topic/240651-problem-with-smtp-mailer/#findComment-1236033 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.