jkkenzie Posted June 25, 2010 Share Posted June 25, 2010 How can i use php mail function from XAMPP to send emails over the internet. i.e i create a php script that sends emails like outlook does from the local machine. Thanks in advance Quote Link to comment https://forums.phpfreaks.com/topic/205833-html-email-from-localhost-or-local-machine/ Share on other sites More sharing options...
Wolphie Posted June 25, 2010 Share Posted June 25, 2010 You will need to install a mail server on the local machine in order to send e-mails. Quote Link to comment https://forums.phpfreaks.com/topic/205833-html-email-from-localhost-or-local-machine/#findComment-1077082 Share on other sites More sharing options...
jkkenzie Posted June 25, 2010 Author Share Posted June 25, 2010 guide me to a mail server that php can use, what does outlook use?? Quote Link to comment https://forums.phpfreaks.com/topic/205833-html-email-from-localhost-or-local-machine/#findComment-1077090 Share on other sites More sharing options...
PFMaBiSmAd Posted June 25, 2010 Share Posted June 25, 2010 Are you expecting to send emails to yourself at your email address at an ISP or are you expecting to send emails to any arbitrary email address? To send emails to yourself at your email address at an ISP, you can use one of the phpmailer classes that support SMTP Authentication. You authenticate against your email account (provide your email username and password) and you can send emails to your email address and you can also send emails through your email account to other email addresses. To send emails to any arbitrary email address, you must set up a PUBLIC mail server. A public mail server has a domain name associated with it, a public DNS server that points to it, and all the necessary DNS zone records that would allow other email servers to authenticate it is a valid public mail server so that they would accept emails sent by it. Quote Link to comment https://forums.phpfreaks.com/topic/205833-html-email-from-localhost-or-local-machine/#findComment-1077092 Share on other sites More sharing options...
jkkenzie Posted June 26, 2010 Author Share Posted June 26, 2010 I would like to use my registered domain name e.g safaricom.com , and use user accounts in it to send emails from a local machine just like Outlook does, BUt i want to use php so that i can use html emails(newsletter) Thanks Quote Link to comment https://forums.phpfreaks.com/topic/205833-html-email-from-localhost-or-local-machine/#findComment-1077515 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.