| | |
Send email through php?
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Feb 2007
Posts: 23
Reputation:
Solved Threads: 1
PHP has a function made for this exact purpose.
Mail($to, $subject, $body)
Do some research on it, it's not hard to use.
Mail($to, $subject, $body)
Do some research on it, it's not hard to use.
•
•
Join Date: Jan 2008
Posts: 57
Reputation:
Solved Threads: 5
If you didn't set up the smtp settings in your php.ini file, it won't work. Check the SMTP and smtp_port settings.
If you're determined not to use the mail function or need something more advanced, try phpMailer.
Good luck,
- Walkere
If you're determined not to use the mail function or need something more advanced, try phpMailer.
Good luck,
- Walkere
Thank you for your reply, but what do I put for the smtp settings. Would it have something to do with my Internet service provider, would it be localhost? I'm confused 
btw (I don't have an email client on windows)

btw (I don't have an email client on windows)
Last edited by iamthwee; Jan 26th, 2008 at 11:16 am.
*Voted best profile in the world*
•
•
Join Date: Jan 2008
Posts: 57
Reputation:
Solved Threads: 5
•
•
•
•
Thank you for your reply, but what do I put for the smtp settings. Would it have something to do with my Internet service provider, would it be localhost? I'm confused
This would be the same server you'd use to set up an e-mail client... if you used one =)
- Walkere
No I'm not getting anywhere with this.
I think my mail SMTP is mail.btinternet.com
It returned successful when I did a telnet on port 25.
Start > run > (type in cmd)
I changed my php.ini file to match this, restarted the services yet I still get an authentication problem. I think it is because I don't have an email client....
I think my mail SMTP is mail.btinternet.com
It returned successful when I did a telnet on port 25.
Start > run > (type in cmd)
telent mail.btinternet.com 25 I changed my php.ini file to match this, restarted the services yet I still get an authentication problem. I think it is because I don't have an email client....
Last edited by iamthwee; Jan 26th, 2008 at 5:51 pm.
*Voted best profile in the world*
![]() |
Similar Threads
- send email with attachment (PHP)
- Need Help Making a Form send to an email using PHP (PHP)
- PHP Mail Error (PHP)
- Sending HTML email via PHP mail function (PHP)
- PHP Sendmail Tutorial (PHP)
- Using HTML tags in PHP code (PHP)
- Using PHP to Send Email to a single DB list member every 24 hrs. (PHP)
- PHP Email (PHP)
Other Threads in the PHP Forum
- Previous Thread: get the value from derived table
- Next Thread: multi-file Class in PHP
| Thread Tools | Search this Thread |
ajax apache api array arrays beginner binary broken cache cakephp checkbox class cms code confirm cron curl customizableitems database date display dynamic echo email error external file files folder form forms forum function functions google header headmethod howtowriteathesis href htaccess html iframe image include insert integration ip java javascript joomla limit link login loop mail malfunction menu method mlm multiple mysql neutrality oop paypal pdf php phpmysql play problem query question radio random recursion regex remote root script search select server sessions sms soap source space sql syntax system table tutorial update upload url validator variable video web xml youtube






