How to install smtp/email server to work with php script?
- by jiexi
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...