How To Send E-mail From Server With Android?
Consider me,I am new in server side programming. Suppose, I have a number of registered user information in my server (like Name, E-Mail Id etc). I want to send data to server fro
Solution 1:
After creating http connection you have to pass required data from device to server like from address , to address etc.. To pass the data you can use either JSON Parsing or XML parsing. I recommend you to use JSON Parsing.
And then on the server side you can use Send Mail functionality from PHP to send mails to anybody.
And yes there is a way to send mails from local server. See this post.
Solution 2:
You can send emails with PHP if you can connect to an outgoing mail server. Most hosting solutions will come with this by default (although most of them will have restrictions). I'd recommend using SwiftMailer. You can send emails via your Gmail account if you're looking to run a few tests.
Post a Comment for "How To Send E-mail From Server With Android?"