[ACCEPTED]-Send emails from AWS EC2 instance (SES mandatory?)-amazon-ses
Sending emails from EC2 instances is limited 14 by Amazon and strictly throttled at network 13 level. This is to prevent spamming and 12 other abuses.
If you have a large amount 11 of emails to send to your customers, the 10 recommended way is to use Amazon Simple Email Service. With Amazon 9 SES, you can send transactional email, marketing 8 messages, or any other type of high-quality 7 content and you only pay for what you use.
If 6 you really need to send emails from an EC2 5 instance, you must use an Elastic IP Adress 4 and ask Amazon's support to remove limitations 3 on SMTP traffic from that EIP. The form 2 to contact us is available at https://portal.aws.amazon.com/gp/aws/html-forms-controller/contactus/ec2-email-limit-rdns-request (authentication 1 is required)
Seb
As sebasto wrote, sending emails is limited.
https://aws.amazon.com/ec2/faqs/ => Q: Are 6 there any limitations in sending email from 5 EC2 instances?
Of course it's working, you 4 need to check if you have SMTP installed 3 and it might depends when do you send your's 2 emails
Try this code:
[ec2-user@ip ~]$ irb
irb(main):001:0> require 'net/smtp'
=> true
irb(main):002:0> Net::SMTP.start('localhost') do |smtp|
irb(main):003:1* smtp.send_message 'test from ruby', 'your-email, 'your-email'
irb(main):004:1> end
For mine (@gmail) it's 1 working
More Related questions
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.