Comments (9)
Hi @apuntovanini, thanks for opening this issue. In order to use custom verification templates the AWS SES account needs to be out of the AWS sandbox, which can be confirmed in the documentation here. Could you please confirm that your SES account is out of the sandbox?, and if so, are you using the send-custom-verification-email request where you should be specifying the custom template?
Please let me know.
Thanks!
from aws-sdk-ruby.
Hi @yenfryherrerafeliz, thanks for the quick reply. I confirm the account is out of the sandbox and that we're using the API as of documentation:
template_name = SecureRandom.hex(10)
client.create_custom_verification_email_template({
template_name:,
from_email_address: '[email protected]',
template_subject: 'Email Address Verification Request',
template_content: "<html><body><h3>Inizia ad inviare email da #{recipient}</h3><div>Dear partner for #{context[:current_workspace].name},</div><br><div></div></body></html>",
success_redirection_url: 'https://me.uidu.org/ses/confirmed',
failure_redirection_url: 'https://me.uidu.org/ses/failed',
})
response = client.send_custom_verification_email({
email_address: recipient,
template_name:
})
from aws-sdk-ruby.
@apuntovanini, thanks for letting me know. I will get back to you with some updates soon.
Thanks!
from aws-sdk-ruby.
Opened internal ticket: V1024158693
from aws-sdk-ruby.
Hi @apuntovanini, I reached to the service team regarding this issue, but when they tried to reproduce it they did not have any issues. Would it be possible for you to try with the following code below?, which will also create a new template:
# Create template:
require 'aws-sdk-ses'
ses = Aws::SES::Client.new(
region: 'us-east-1'
)
begin
response = ses.create_custom_verification_email_template({
template_name:'ruby',
from_email_address: '[email protected]',
template_subject: 'Email Address Verification Request',
template_content: "manoj",
success_redirection_url: 'https://me.uidu.org/ses/confirmed',
failure_redirection_url: 'https://me.uidu.org/ses/failed',
})
puts "Success"
rescue Aws::SES::Errors::ServiceException => e
puts "Error"
end
Sending custom verification email:
==========================
require 'aws-sdk-ses'
ses = Aws::SES::Client.new(
region: 'us-east-1'
)
begin
response = ses.send_custom_verification_email({
email_address: "[[email protected]](mailto:[email protected])", # required
template_name: "ruby", # required
})
puts "Sucess"
rescue Aws::SES::Errors::ServiceException => e
puts "Error"
end
Please let me know the results.
Thanks!
from aws-sdk-ruby.
This issue has not received a response in 1 week. If you still think there is a problem, please leave a comment to avoid the issue from automatically closing.
from aws-sdk-ruby.
Ok, now it seems to work, changed nothing...
May this be because I delete the very same template name right after sending it?
template_name = SecureRandom.hex(10)
response = client.send_custom_verification_email({
email_address: recipient,
template_name:
})
puts response.inspect
client.delete_custom_verification_email_template({
template_name:
})
In this case, I should probably keep track of template names I use, and then remove them (I need to customize them for each activation)
Thanks!
from aws-sdk-ruby.
Yep, seems exactly the case! Ok, I'll rework my implementation using a custom link to confirm the address and after that remove the custom template, thanks for your support!
from aws-sdk-ruby.
⚠️ COMMENT VISIBILITY WARNING⚠️
Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.
from aws-sdk-ruby.
Related Issues (20)
- aws-eventstream not available in Ruby 3.2 lambda runtime HOT 6
- presigned_url always adds content-type to signed headers HOT 3
- Aws::EC2::Resources raises `InvalidParameterCombination` when some parameters are specified HOT 2
- aws-sdk-core >= 3.192.0 may be not compatible with AWS SQS APIs in XML format HOT 8
- In Ruby, S3 get_object_attributes() breaks in aws-sdk-core v3.192.0 and newer. HOT 5
- Content Type error in BedrockRuntime client on latest aws-sdk-core version HOT 5
- CloudFront KeyValueStore can't work HOT 3
- stub_responses function in Dynamodb, how can I pass query when stub? HOT 4
- aws-sdk-s3: intermittent SignatureDoesNotMatch errors HOT 7
- get_bucket_policy in 1.52.1 results in Seahorse::Client::NetworkingError Empty or incomplete response body HOT 5
- ECS capacity errors have inconsistent behavior. HOT 2
- Access to the credit_notes? HOT 3
- SImpleDB stopped working after upgrade HOT 9
- Fix INI parsing of whitespace preceding config key HOT 7
- AWS SDK Core 3.192.0 broke older SQS gem ability to receive messages HOT 5
- Breaking Change from Minor Release in `aws-sdk-core` from 3.198.0 to latest HOT 6
- "Passing a single string to Aws::ProcessCredentials.new is insecure" now appearing when using credential_process option in an aws config HOT 4
- Client-side encryption with presigned URLs HOT 11
- Aws::Xml::Parser::ParsingError: xmlParseCharRef: invalid xmlChar value 8 HOT 12
- Getting an intermittent access denied error when running get_object HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-sdk-ruby.