1

I need your help on my current project with Symfony... When you click in a button, the function must send an email to other user with a link confirmation. This email must be send every seven days during one month. How can I create a confirmation link? How can I do the part of sending emails?

Thank you very much for your help :)

1 Answers1

3

For the sending the emails part you can create a cron-job that runs every 7 days to call a command which sends the emails.

You can check here how to send emails and here how to create a command.

You can check this to see how to create a cron-job.

Community
  • 1
  • 1
Alex
  • 418
  • 1
  • 5
  • 17
  • Hi Alex! First of all, thank you for your reply. I have a little question, How can I activate the cron-job when I click in a button? – Oliver Blanco Lozano Jul 22 '16 at 10:06
  • When clicking the button the first time, you can call the sending of email function from within your controller. The cron-job can call the same function to send the emails based on your logic. – Alex Jul 22 '16 at 10:16