Hi ... I want to send a mail using php code, and i used sendto() function..But there is a problem occur.. that is...
I using a one free webhosting for this service.. but it didnt support the smtp server.. Please tell me what are all the steps of doing this.. with code and example... help me friends..

Hello Sritina
Use mail function as folows:
mail($email_to, $email_subject, $email_message, $headers);
For sending email you need HostingServer to send email to anybody.
You can not send using localhost even if you are connected to the internet.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.