Jump to content

narjis

Members
  • Posts

    107
  • Joined

  • Last visited

Everything posted by narjis

  1. Hi, I want to send an email to my registered users so that when they click on the URL given in the message hey should come back to my site as confirmetion of their registration. I am able to send the mail but the mail body is not coming as expected. Here's my code <?php public function email($id){ //get users info $this->userInfo = $this->model->listUser($id); $this->sendEmail($this->userInfo); } public function sendEmail($data){ $to =$data['email']; $this->msg ="<img src=\"ideas.kpjit.com/public/images/header-img.jpg\" /> <h1>KPJ Idea</h1> <p>Make a difference</p> <p>This is a Confirmation Mail.Please confirm your registration by clicking here <a href=\"http://ideas.kpjit.com\register\confirm\ <?php echo $this->data['id'];?></p>\" "; $subject = "Registration confirmation"; $message = $this->msg; $from ="[email protected]"; $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $headers .= 'From:[email protected]' . "\r\n"; if(mail($to,$subject,$headers)){ $this->render2("register/message"); exit; } } Also I am unable to insert my site banner in the mail. How can I do It.
  2. Sorry if I did'nt clear my self this part of the code <div class="login-btn"> <div class="login-btn"><a href="#">Login</a></div> </div> is tag but by I am unable to send form values so I replaced it with <input type="submit" value="Login" /> Is there any way I can applay this css on my submit button. Thanks for replying
  3. <form action="login/run" method="post"> <h2>Login to KPJ Idea</h2> <p>Don't have an IdeaStorm account?<br /> <a href="login/run">Register Now.</a> </p> <fieldset> <label>Email</label> <input type="text" name="email" class="txt-field-login" /> <label>Password</label> <input type="text" name="pass" class="txt-field-login" /> <div class="login-btn"> <div class="login-btn"><a href="#">Login</a></div> </div> </fieldset> </form> I am unable to pass the values using Login css image but can only pass it through <input type ="submit" /> How is it possible to use a css effecty on a button.
×
×
  • 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.