3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_include_path("include_path", "C:\Program Files (x86)\Parallels\Plesk\Additional\PleskPHP5\PEAR"); include("Mail.php"); /* mail setup recipients, subject etc */ $recipients = "data.flame@gmail.com"; $headers["From"] = "info@chimpeon.com"; $headers["To"] = "data.flame@gmail.com"; $headers["Subject"] = "User feedback"; $mailmsg = "Hello, This is a test."; /* SMTP server name, port, user/passwd */ $smtpinfo["host"] = "localhost"; $smtpinfo["port"] = "25"; $smtpinfo["auth"] = true; $smtpinfo["username"] = "info@chimpeon.com"; $smtpinfo["password"] = "8eat5hitDown642"; /* Create the mail object using the Mail::factory method */ $mail_object =& Mail::factory("smtp", $smtpinfo); /* Ok send mail */ $mail_object->send($recipients, $headers, $mailmsg); ?>

preferences:
79.55 ms | 402 KiB | 5 Q