Yii Framework Forum: yii contact form - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

yii contact form Rate Topic: -----

#1 User is offline   dtufano 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 16-April 09

Posted 16 April 2009 - 01:00 AM

Going through the default install of a new webapp.  Everything appears to be functional, but the contact form doesn't send emails. 

I've also modified the admin email setting in config/main.php

Am I missing something?  The extended controller is using some form of sendmail, correct?
0

#2 User is offline   qiang 

  • Yii Project Lead
  • Yii
  • Group: Yii Dev Team
  • Posts: 5,880
  • Joined: 04-October 08
  • Location:DC, USA

Posted 16 April 2009 - 06:28 AM

Please check SiteController.php: actionContact(). It's using PHP mail() function. If that doesn't work for you, you may need to check you PHP configuration or use some other mail functions/packages.
0

#3 User is offline   dtufano 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 16-April 09

Posted 16 April 2009 - 01:53 PM

Thanks Qiang!  The form works, looks like my issue was sleep deprivation.  I had two setups a remote and local. The issue on the remote server was I'd forgotten to set the admin email in the config/main.php.  The issue on the local server was the mail server was setup incorrectly.

FYI if you're running a local dev server on a linux box, you need to relay through a public mail sever that you have SMTP credentials for, as it turns out most dynamically assigned ip's are on the Spamhaus Policy Block List (PBL).
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users