11-27-2012 11:32 PM - edited 11-27-2012 11:34 PM
can anyone tell me how can i send mail from my app?
var variables:URLVariables = new URLVariables();
variables.to = emailTxt.text;
variables.subject = emailsubTxt.text;
variables.message = msgtext.text;
// the request object containing URL and parameters
var request:URLRequest = new URLRequest("http://www.gmail.com/mail.php");
request.method = URLRequestMethod.POST;
request.data = variables;
// now send a request to the PHP script with those parameters
var urlLoader:URLLoader = new URLLoader();
i am using above code ,but its not working..
one more question,is it possible to send that mail from simulator as well?
reply me plz..........
thanks n advance.
Solved! Go to Solution.
11-28-2012 07:46 AM
12-02-2012 11:23 PM
can i get any idea how to setup some services on my server to send mail via my SMTP server?does it require PHP script or anything like that?
12-03-2012 07:51 AM
12-03-2012 07:59 AM
I had an app like that. All you need is a php script on your server side. You have to parce some data via POST request. All information should be included in that request. You may set ANY senders email
Please click the Thumbs Up icon if this comment has helped you! If your issue is resolved, please click the solution button on the resolution!