Skip to content

how to test that a mail was send? #1210

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
brikou opened this issue Apr 2, 2012 · 5 comments
Closed

how to test that a mail was send? #1210

brikou opened this issue Apr 2, 2012 · 5 comments
Labels
actionable Clear and specific issues ready for anyone to take them.

Comments

@brikou
Copy link
Contributor

brikou commented Apr 2, 2012

There is no cookbook on how to check that a mail was send (and get the content of the mail)...

@stof
Copy link
Member

stof commented Apr 2, 2012

This can be done by using the profiler in the tests, as the mailer profiler tracks mails: http://symfony.com/doc/current/cookbook/testing/profiling.html

@brikou
Copy link
Contributor Author

brikou commented Apr 2, 2012

@stof I know that this can be done I'm just emphasize the fact that there is no cookbook on how to check that a mail was send.

BTW it seems that the correct profiler is named swiftmailer (and not mailer)

@wouterj
Copy link
Member

wouterj commented Jan 22, 2013

@weaverryan should get a Doc request label

@ricardclau
Copy link
Contributor

I can take this one, is there still interest on it?

The thing is that the cookbook might be really short...
There is not much to say actually as it is pretty straight forward to check mails in profiler

@wouterj
Copy link
Member

wouterj commented Jan 30, 2013

@ricardclau, yes, it would be great if you document this! I don't think we shouldn't document things because the article will be to short. It usually begins short but ends as great cookbook article (thanks to the active symfony community).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
actionable Clear and specific issues ready for anyone to take them.
Projects
None yet
Development

No branches or pull requests

5 participants