Author Topic: Email Notification  (Read 2433 times)

mimy

  • Newbie
  • *
  • Posts: 2
    • View Profile
Email Notification
« on: October 13, 2010, 06:42:30 am »
Good day

My Name is Mimi, Iam new in this Feng forum I hope I will get help.

Iam busy with an email notification. The script can send emails but only blank emails it cannot accept what ever Iam entering from the input. here is my script. Any help pls I dont know where is the problem
   $this->objMail = $this->getObject('email', 'mail');

      $this->objMail->from = 'no-reply@mysite.co.za;
        $this->objMail->fromName = 'no-reply';

        // Give the mail a subject and a body.
        $this->objMail->subject = 'Student Book Enquiry';
        $this->objMail->body ='';

          switch($action){
          case 'addeditform':


        return $this->objMail->body=
                  $surname = $this->getParam('surname');
            $initials = $this->getParam('$initials');
                 $title = $this->getParam('title');
         
      case 'addfeedbk':
        return $this->objMail->body=
                   $name = $this->getParam('name');
                         $email =$this->getParam('email');
                          $msg=$this->getParam('msg');
      }// end case

mimy

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Email Notification
« Reply #1 on: October 13, 2010, 07:36:01 am »
anyone willing to help me pls :-(

franponce87

  • Administrator
  • Hero Member
  • *****
  • Posts: 1819
    • View Profile
    • Email
Re: Email Notification
« Reply #2 on: November 01, 2010, 02:36:53 pm »
Is this a Feng Office related question? Because it doesn't seem to be..

Regarding programming in php, you may find more info in php.net
Would you like to install Feng Office Professional or Enterprise Edition in your servers? No problem! Read this article!