+ 1

How can I send data from html page to my email?

https://www.sololearn.com/discuss/1618295/?ref=app

12th Dec 2018, 7:55 PM
Ayman
Ayman - avatar
6 Answers
+ 2
You could use something called PHPMailer. This is the link, read the instructions : https://github.com/PHPMailer/PHPMailer Here is the example code : https://stackoverflow.com/questions/48128618/how-to-use-phpmailer-without-composer Please, don't spam with codes that are irrelevant to your question. Let's keep the Q&A section clean!
12th Dec 2018, 9:03 PM
dĪlĪ…Ņ•ĪlĪ…Ņ•
dĪlĪ…Ņ•ĪlĪ…Ņ• - avatar
+ 2
Thanks ... This is really useful link
12th Dec 2018, 9:12 PM
Ayman
Ayman - avatar
+ 2
That example link is the real code, just put your credentials. Download PHPMailer and require it in your file,paste the code above in your file and that's it.
12th Dec 2018, 9:20 PM
dĪlĪ…Ņ•ĪlĪ…Ņ•
dĪlĪ…Ņ•ĪlĪ…Ņ• - avatar
+ 1
No problem. It really works. I used it. 👍
12th Dec 2018, 9:13 PM
dĪlĪ…Ņ•ĪlĪ…Ņ•
dĪlĪ…Ņ•ĪlĪ…Ņ• - avatar
+ 1
But I need real code to send data to my email at this night .. I am so hurry up To that I can't reading and understanding all of this now. Can you help me?
12th Dec 2018, 9:16 PM
Ayman
Ayman - avatar
+ 1
There’s a full example in the documentation. Find out the smtp server host and port for your email provider. ”Username” and ”setFrom” properties has to be same.
13th Dec 2018, 10:04 AM
Toni Isotalo
Toni Isotalo - avatar