I’m embarrassed I’m having issues configuring email…
I got the gmail settings from here: http://email.about.com/od/accessinggmail/f/Gmail_SMTP_Settings.htm
I plugged them into the Email Service’s Configuration…
Provider: SMTP
Host: smtp.gmail.com
Port: 587
Security: TLS
Username: myusername@gmail.com
Password: mygmailaccountpassword
And for parameters…
from_name: Me
from_email: myusername@gmail.com
reply_to_name: Me
reply_to_email: myusername@gmail.com
I look for the “Test” button.
I then run this…
echo "{ \
\"to\": [
{
\"name\": \"A Name\",
\"email\": \"email@example.com\"
}
],
\"subject\": \"The Subject\", \
\"from_name\": \"Me\", \
\"from_email\": \"*myusername*@gmail.com\" \
}" | curl --insecure -X POST -d @- https://ec2-*yada-yada*.us-west-1.compute.amazonaws.com/rest/email/ -H 'X-DreamFactory-Application-Name: spma'
And then this is what I get…
{"error":[{"context":null,"message":"Failed to send to the following addresses:Array\n(\n [0] => email@example.com\n)\n","code":500}]}
In the above paste-onto-the-Internet, I’ve substituted out the actual email addresses. I don’t think I have a problem with the address. I substituted with a malformed email address and it gives me an “Invalid email” message. The error message I get hints that the problem is with the address, not with the server config, connectivity, SMTP authentication, etc.
I’m curious what that greater-than is in the error message. Doesn’t look too symmetric and I have no idea where it came from or what it means.
Yes, “failed to send” but why?
In Config, I’ve allowed Guest Users and I assign them to my guest role and the guest role is set up as having permission to POST to the Email Service, plus I don’t get any sort of HTTP permissions-related response code. I don’t think it’s DSP security as such.
And I changed the Email Service’s configuration to try port 80 on smtp.gmail.com. It produces the same ambiguous error message.
Is there caching going on of config that it’s not running the current config after I update it?
I’m running on AWS. Is there a network routing issue where it can’t get to smtp.gmail.com?
I feel like a noob asking this question.
But I’m stuck with the indescript error message and DSP’s hiding of the cause.
Help!