How to install smtp/email server to work with php script?
Posted
by jiexi
on Server Fault
See other posts from Server Fault
or by jiexi
Published on 2010-01-25T04:50:30Z
Indexed on
2010/04/15
22:03 UTC
Read the original article
Hit count: 368
I have this code
$mail->IsSMTP();
$mail->SMTPAuth = true;
$mail->SMTPSecure = "ssl";
$mail->Host = "mail.craze.cc";
$mail->Port = 465;
$mail->Username = "username";
$mail->Password = "pass";
$mail->SetFrom("[email protected]", "craze.cc");
$mail->AddReplyTo("[email protected]", "craze.cc");
$mail->AddAddress($this->email, $this->username);
$mail->IsHTML(false);
$mail->Subject = "Activate Your Craze.cc Account";
$mail->Body = $message;`enter code here`
How i configure my postfix/sendmail or whatever server to actually work and send the mail?
This has been driving me insane! I've tried numerous times to configure these servers.
I just want to be able to send emails via my php script...
Can someone please link me to a guide to get this all going? or just provide help themselves?
Maybe there is an alternative way i can use to send my email in the php script?
Basically, i need help just getting the emails to send...
© Server Fault or respective owner