This time I have a more substantial and complicated question.
We have set up AWS SES to use as SMTP provider.
In the AWS console we have:
Verified identities using the same email as the PhPVMS install.
Verified Domain.
Created SMTP user with credentials.
Removed the sandbox and went into production.
We went through all the AWS configuration steps properly and sent test emails from within the console successfully.
The PhPVMS config states that to use SES, this is what is needed:
SES Configuration
To use SES, set your .env like:
MAIL_MAILER=postmark
AWS_ACCESS_KEY_ID=‘key id’
AWS_SECRET_ACCESS_KEY=‘access key’
AWS_DEFAULT_REGION=‘the region if not us-east-1’ (We are currently in region us-east-2)
We set it up exactly like the above with our valid & active Access Key & Secret Access Key.
When we try to send an email PhPVMS throws a 500 internal error which points to misconfiguration or missing parameters in the .env file
The LOG also shows a configuration issue.
Are we missing some parameters in the .ENV file that aren’t stated in the docs?
What am I failing to understand?
What is the error after changing mailer to “ses” ? It should be something different compared to using postmark driver. If you’ve shared your logs with Nabeel it is ok, if not how he can help ?
I checked phpvms config for ses, it looks ok though.
Technically the " MAIL_FROM_ADDRESS" and " MAIL_FROM_NAME" are already defined and can be controlled from .env itself, no need to modify mail.php for them, as it will revert back to defaults during an update.
We can add that additional AWS SES Enpoint to phpVMS itself, so future updates will have it and you will not worry about updates