Jump to content

Adding Two Strings In Oop


Pain

Recommended Posts

Hello. I've built a mailer class specifically for account activation.

 

<?php
class Mail {
public $unique;
public $subject = "You must activate your account";
public $message = "Please click on the link below to activate your account ";
public $headers = "This is automatically generated email, please do not respond to it.";
public function sendActivationMail($to) {
$this->unique = md5(uniqid(rand()));
if (!mail($to, $this->subject, $this->message, $this->headers)) {
return false;
}
else
{
return true;
}
}
}

?>

 

However i am unable to add property $unique to my message (in this case it is $message). How can i do this? Thanks:]

Link to comment
https://forums.phpfreaks.com/topic/269814-adding-two-strings-in-oop/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.