Hi,
I’ve had a lot of success with my first week of using Dreamfactory, but have now stumbled upon an issue that I cannot seem to overcome.
I am trying to get SMTP mail working.
I upgraded to the latest DSP (1.8.2) as I read there were potential issues with the previous version.
I have setup the SMTP options using the GMAIL SSL SMTP settings (and tried TLS port/security)
Host: smtp.gmail.com
Port: 465
Security: SSL
Username: my_gmail_account@gmail.com
Password: my_gmail_password
When I use swagger to test, I enter the data as follows:
{“to”:
[ {
“name”: “Andy”,
“email”: "mytest@myemail.com"
}
],
“subject”: “The Subject”,
“from_name”: “Me”,
“from_email”: "mygmailaccount@gmail.com"
}
the response body I get is [code 200]:
{
“count”: 1
}
the response headers I get are:
{
“Date”: “Tue, 02 Dec 2014 14:34:24 GMT”,
“X-Powered-By”: “PHP/5.4.32”,
“X-Dreamfactory-Origin-Whitelisted”: “1”,
“P3p”: “CP=“IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT””,
“Access-Control-Max-Age”: “900”,
“Connection”: “Keep-Alive”,
“Content-Length”: “11”,
“Keep-Alive”: “timeout=5, max=99”,
“Pragma”: “no-cache”,
“X-Dreamfactory-Source”: “http://myserverdetails:88”,
“Server”: “Apache”,
“X-Frame-Options”: “SAMEORIGIN”,
“Access-Control-Allow-Methods”: “GET, POST, PUT, DELETE, PATCH, MERGE, COPY, OPTIONS”,
“Content-Type”: “application/json; charset=utf-8”,
“Access-Control-Allow-Origin”: “http://myserverdetails”,
“Cache-Control”: “no-store, no-cache, must-revalidate, post-check=0, pre-check=0”,
“Access-Control-Allow-Credentials”: “true”,
“Access-Control-Allow-Headers”: “Content-Type, X-Requested-With, X-DreamFactory-Application-Name, X-Application-Name, X-DreamFactory-Session-Token”,
“Expires”: “Thu, 19 Nov 1981 08:52:00 GMT”
}
But, I never ever get an email sent, can you help please?
regards
Andy