Reputation: 868
I just installed the FOSUserbundle and I want to have the e-mail confirmation enabled. Meaning if someone registers the user should get an email with an activation link.
I always get the following message:
FatalErrorException: Error: Maximum execution time of 30 seconds exceeded in \app\cache\dev\classes.php line 420
Here is the config.yml file:
#FOS User Bundle
fos_user:
db_driver: orm # other valid values are 'mongodb', 'couchdb' and 'propel'
firewall_name: main
user_class: Dbe\DdddBundle\Entity\User
from_email:
address: [email protected]
sender_name: Donaci
registration:
confirmation:
enabled: true # change to true for required email confirmation
What might be the problem? The error occures on the app_dev.php/register/check-email page.
Thanks in advance for your help!
EDIT: The problem exists with other functions like resetting too. I guess the problem is with the email? where and how exactly do i link it? i'm using swift mailer.
# Swiftmailer Configuration
swiftmailer:
transport: "%mailer_transport%"
host: "%mailer_host%"
username: "%mailer_user%"
password: "%mailer_password%"
port: "587"
spool: { type: memory }
Upvotes: 0
Views: 4801
Reputation: 416
if you work on localhost try to change the transport setting to gmail and set the username and password to the Google credential
# app/config/config_dev.yml
# Swiftmailer Configuration
swiftmailer:
transport: "%mailer_transport%"
host: "%mailer_host%"
spool: { type: memory }
encryption: ssl
auth_mode: login
host: smtp.gmail.com
username: [email protected]
password: password_gmail
Upvotes: 1