Hi....


I am using XAMPP for localdevelopment.And I am using the mail() function for sending the mail. But unfortunately it wont sent the mail.I am not using any SMTP server in local host.If I need to sent mail what can I do?

Thanks in advance.

Member Avatar for iamthwee

You can't send mail without a SMTP in local development!

Please can u help me to achieve this task... How to send mail in local development system in XAMPP.

Member Avatar for iamthwee

1. Purchase a domain and use that to send your mail.
2. I hear, for example, if you have a gmail, you can use their smpt to send an email but it is not something I've done per se.

Two options:
1. Install a mail server. I think some people here mentioned Mercury for Windows.
2. Use PHPMailer (or a similar tool) and a GMail account for example. And yes, it requires recoding.

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.