Jump to content

How to send Email from Localhost to Gmail, Yahoo, Hotmail using PHP mail()?


waseemkayani

Recommended Posts

OS [Windows XP Professional]

Web Server [Apache2Triad]

Email Client [ThunderBird]

Email Server [ArGoSoft Mail]

----------------------------

Q. How to send email directly from localhost to Gmail, Yahoo or Hotmail account? Do I really need email client and email server? Do I need to configure "Server.tab" file or "PHP.ini" or both?

 

Scenario is; I do not want to upload the WebApplication, I want it to be locally hosted (Of course Internet connectivity is there for sending/receiving emails etc)

 

Is it something like >> LocalHost will send text body, email header etc to Email Server and Email Server will use an existing email account (say [email protected] etc) for sending mails to any other account ??

 

Is there anyone to help me out?... Thanks in advance.

You can download "Free SMTP Server"s, they are like messengers, you ust click and install the server, and make sure ur php.ini smtp.path or w/e it is, is set to localhost.

 

Most free smtp server software is buggy and unreliable.

 

 

The other option would be to use a Mailer class library like PHPMailer to use authentication, you can use googles smtp server to send data to other emails then.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.