Skip to content

Issue with installation #14

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
marvoh opened this issue Jul 26, 2018 · 5 comments
Closed

Issue with installation #14

marvoh opened this issue Jul 26, 2018 · 5 comments

Comments

@marvoh
Copy link

marvoh commented Jul 26, 2018

I'm getting error below after installation. What could be the issue

Unable to replace alias "swiftmailer.mailer.default.transport.real" with actual definition "expertcoder_swift_mailer.send_grid".

@marvoh
Copy link
Author

marvoh commented Jul 27, 2018

I edited the service id at vendor/expertcoder/swiftmailer-send-grid-bundle/src/Resources/Services.xml from swiftmailer.mailer.default.transport.expertcoder_swift_mailer.send_grid to expertcoder_swift_mailer.send_grid. Let me know how to solve this permanently

@moux2003
Copy link
Collaborator

moux2003 commented Jul 27, 2018

@marvoh can you give us more details please.
What is your symfony version/distribution ?
Are you using v1 or v2 of this bundle ?

Can you also check that you have set the right configuration like so:

swiftmailer:
    transport: expertcoder_swift_mailer.send_grid

@marvoh
Copy link
Author

marvoh commented Jul 27, 2018

Sorry for the scant information. I am using symfony verion 3.4.13 and v2 of the bundle.

I have also encountered another issue when trying to send an email.

Uncaught PHP Exception Symfony\Component\Debug\Exception\ClassNotFoundException: "Attempted to load class "Mail" from namespace "SendGrid". Did you forget a "use" statement for e.g. "SendGrid\Mail\Mail" or "SendGrid\mail\Mail"?" at /vendor/expertcoder/swiftmailer-send-grid-bundle/src/Services/SendGridTransport.php line 100

@moux2003
Copy link
Collaborator

moux2003 commented Jul 27, 2018

Can you give your configuration from config_dev.yml and config.yml ?

@ventuc
Copy link

ventuc commented Aug 8, 2018

Same problem here with Symfony 3.4 and bundle 2.1. Actually the name of the transport service appears to be different, in fact it is swiftmailer.mailer.transport.expertcoder_swift_mailer.send_grid and not simply expertcoder_swift_mailer.send_grid.

So change the configuration as follows:

swiftmailer:
    transport: 'swiftmailer.mailer.transport.expertcoder_swift_mailer.send_grid'

Hope this can help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants