Click to See Complete Forum and Search --> : send email
arshesander
Feb 3rd, 2010, 08:55 AM
how to send email using PHP Code?
Hack
Feb 3rd, 2010, 08:57 AM
Moved From The CodeBank
SambaNeko
Feb 3rd, 2010, 09:29 AM
This is well-detailed on PHP.net's mail() page (http://us2.php.net/manual/en/function.mail.php).
Justa Lol
Feb 3rd, 2010, 10:10 AM
you need a smtp server, you could use an email client like mozilla thunderbird and use hotmail for example for your email sender... i gave up in this project because i couldn't get it working so i just bought a http host and used the mail function...
visualAd
Feb 4th, 2010, 08:45 AM
Thunderbird alone is not an SMTP server (mail transfer agent / MTA), it is a mail user agent (MUA).
MTA's can be downloaded for both Windows (via IIS) and Linux (via Sendmail). The purpose of the MTA is to resolve the mail transfer (MX) record in the domain part of each recipients address and relay the mail to recipients MTA.
Justa Lol
Feb 4th, 2010, 12:56 PM
true but it can be used to send mails and i couldn't get the smtp connection configured...
Nightwalker83
Feb 4th, 2010, 04:50 PM
you need a smtp server, you could use an email client like mozilla thunderbird and use hotmail for example for your email sender... i gave up in this project because i couldn't get it working so i just bought a http host and used the mail function...
I don't know what that has to do with the original question but the original poster asked for code to send mail using php not via an email client.
Edit:
The only code you need to use is the code SambaNeko linked to as well as a hosting services which can run php.
I_Love_My_Vans
Feb 8th, 2010, 04:25 AM
@Justa
I think what you're referring to is setting up a HTML form to use the users default email client in which to mail the form fields, am I right?
If I am right you seriously need to reconsider how you email forms.
Like VisualAd said, an email client is not an SMTP server.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.