Anyone can help PLEASE in the code of PHP send e-mail i have tried everything but when don´t receive any e-mail i believ |
[eluser]IronAngel[/eluser]
Thank you to all who help me Make Code& Love Code, CroNiX, InsiteFX and aquary. The problem i have is find a solution in the language i want, using SMTP authentication. I have found this: <?php require("smtp.php"); require("sasl.php"); //SASL authentication $from="[email protected]"; $smtp=new smtp_class; $smtp->host_name="www.website.com"; // Or IP address $smtp->host_port=25; $smtp->ssl=0; $smtp->start_tls=0; $smtp->localhost="localhost"; $smtp->direct_delivery=0; $smtp->timeout=10; $smtp->data_timeout=0; $smtp->debug=1; $smtp->html_debug=1; $smtp->pop3_auth_host=""; $smtp->user="support@website.com"; // SMTP Username $smtp->realm=""; $smtp->password="password"; // SMTP Password $smtp->workstation=""; $smtp->authentication_mechanism=""; if($smtp->SendMessage( $from, array( $to ), array( "From: $from", "To: $to", "Subject: $subject", "Date: ".strftime("%a, %d %b %Y %H:%M:%S %Z") ), "$message")) { echo "Message sent to $to OK."; } else echo "Cound not seend the message to $to.\nError: ".$smtp->error; ?> I believe it´s good. |
Welcome Guest, Not a member yet? Register Sign In |