I am sending out a general welcome email, nothing fancy. If I remove the SMTP stuff it work fine. Am I missing something from the SMTP required setup? I verified the email account info and its correct what I have XXX'd out in the code here. When the SMTP is removed and I get the email as I signup as a new user using my regular email it says from: [email protected] How can I change that? I tried: //$this->set('server_name', $_SERVER['SERVER_NAME']); $this->set('server_name', 'myNewSite'); /* SMTP Options */ $this->Email->smtpOptions = array( 'port' => '25', 'timeout' => '30', 'host' => 'xxxxxx', 'username' => 'xxxxxx', 'password' => 'xxxxxxxxx'); /* Set delivery method */ $this->Email->delivery = 'smtp'; $this->Email->to = $this->data['User']['email']; $this->Email->subject = 'Welcome Message Test'; $this->Email->replyTo = '[email protected]'; $this->Email->from = 'dave' <[email protected] <mailto:[email protected]>'> >'; $this->Email->sendAs = 'html'; $this->Email->template = 'confirmation'; $this->set('name', $this->data['User']['username']); $this->set('server_name', $_SERVER['SERVER_NAME']); $this->set('id', $this->User->getLastInsertID()); $this->set('code', $this->data['User']['confirm_code']); /* Check for SMTP errors. */ $this->set('smtp-errors', $this->Email->smtpError); if ($this->Email->send()) { data for email here..... } Dave
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
