We're a community of 1.1M IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,080,703 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

the team behind php mail function-behind the scenes

I tried real hard to practice that elusive php mail function but i couldn't manage to successfully send email from my php form to any of the mailbox addresses that i specified as recipient in my php form. It has been three days and i am still clueless. So all that can really help me now is a clear understanding of what actually happens when we trigger the mail function right from our form through the smtp server to the target mailbox.I am using xampp with mercury mail.

2
Contributors
1
Reply
1 Hour
Discussion Span
3 Years Ago
Last Updated
2
Views
silursh
Newbie Poster
1 post since May 2009
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

When you invoke the mail() function, it tries to connect to the smtp server, as specified in the php.ini

I don't know where you are trying to connect to, but not all mail servers allow this. If you are trying to connect to localhost, then you need a local smtp server, which I doubt is installed.

pritaeas
Posting Prodigy
Moderator
9,534 posts since Jul 2006
Reputation Points: 1,194
Solved Threads: 1,494
Skill Endorsements: 98

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page generated in 0.0526 seconds using 2.66MB