Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I installed WordPress 3.5.2 on an Amazon EC2 micro instance. After installing and activating the Contact Form 7 plugin, I configured this plugin by putting my gmail address in the Mail To settings of the plugin, then tested the form by pasting [contact-form-7 id="17" title="Contact form 1"] in my page and submitting my comment, but I got the following error:

Failed to send your message. Please try later or contact the administrator by another method.

Is this error caused by my EC2 security group? (please see below)

Ports           Protocol    Source
20-21           tcp         0.0.0.0/0   
22              tcp         0.0.0.0/0   
80              tcp         0.0.0.0/0   
13000-13050     tcp         0.0.0.0/0

Or is this error related to this default restriction on sending email from an instance? I read that one possible solution is to install WP-Mail-SMTP. I was looking at the WP-Mail-SMTP plugin screenshot and it appears to require a port number. I did not initially configure a port for this during the setup of my EC2 instance and I'm thinking this plugin would not work unless I create another instance with a new security policy (since I cannot edit my current security policy). My Akismet is disabled.

Any assistance with helping me understand the cause of this error will be greatly appreciated. Thanks in advance.

share|improve this question

closed as off-topic by toscho Jul 26 at 9:52

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

1  
what version of Linux are your running on this EC2 instance? Is mail actually configured? You could use the WP-Mail-SMTP to setup to use an external mail provider like gmail. –  Mark Davidson Jul 29 '13 at 11:41
    
+1 I'm running Amazon Linux AMI x86_64 PV EBS. I only configured the Contact Form 7 plugin settings Mail To: field. Regarding WP-Mail-SMTP, are there any things I should be aware of before I configure it? I'm new to WordPress. –  Anthony Jul 29 '13 at 12:18
    
Hi anthony how did u solve ur issue?? –  vini Jan 22 at 16:24