Send email through php?

Reply

Join Date: Aug 2005
Posts: 5,266
Reputation: iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold 
Solved Threads: 377
Featured Poster
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Posting Expert

Send email through php?

 
0
  #1
Jan 26th, 2008
How do I send an email...

I have WAMP (windows xp apache, mysql and php).

But what do I do now. Explain...
*Voted best profile in the world*
Reply With Quote Quick reply to this message  
Join Date: Feb 2007
Posts: 23
Reputation: inzomniac is an unknown quantity at this point 
Solved Threads: 1
inzomniac inzomniac is offline Offline
Newbie Poster

Re: Send email through php?

 
0
  #2
Jan 26th, 2008
PHP has a function made for this exact purpose.

Mail($to, $subject, $body)

Do some research on it, it's not hard to use.
Never. Stop. Creating.
__
qBit
Technology. Creativity. Innovation.
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 5,266
Reputation: iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold 
Solved Threads: 377
Featured Poster
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Posting Expert

Re: Send email through php?

 
0
  #3
Jan 26th, 2008
I'm afraid that didn't work, anyone else?
*Voted best profile in the world*
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 57
Reputation: Walkere is an unknown quantity at this point 
Solved Threads: 5
Walkere Walkere is offline Offline
Junior Poster in Training

Re: Send email through php?

 
1
  #4
Jan 26th, 2008
Originally Posted by iamthwee View Post
I'm afraid that didn't work, anyone else?
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
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 5,266
Reputation: iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold 
Solved Threads: 377
Featured Poster
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Posting Expert

Re: Send email through php?

 
0
  #5
Jan 26th, 2008
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)
Last edited by iamthwee; Jan 26th, 2008 at 11:16 am.
*Voted best profile in the world*
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 57
Reputation: Walkere is an unknown quantity at this point 
Solved Threads: 5
Walkere Walkere is offline Offline
Junior Poster in Training

Re: Send email through php?

 
0
  #6
Jan 26th, 2008
Originally Posted by iamthwee View Post
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
I've never set one up on a windows server, but I would assume you would use your ISP's SMTP server. This is usually "smtp.isp.com" or "mail.isp.com" or some such thing. For example, mine is "mail.optonline.net" for Optimum Online.

This would be the same server you'd use to set up an e-mail client... if you used one =)

- Walkere
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 5,266
Reputation: iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold 
Solved Threads: 377
Featured Poster
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Posting Expert

Re: Send email through php?

 
0
  #7
Jan 26th, 2008
Crap, is this a lot simpler to set up using linux then?
*Voted best profile in the world*
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 5,266
Reputation: iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold 
Solved Threads: 377
Featured Poster
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Posting Expert

Re: Send email through php?

 
0
  #8
Jan 26th, 2008
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)
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*
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 5,266
Reputation: iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold 
Solved Threads: 377
Featured Poster
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Posting Expert

Re: Send email through php?

 
0
  #9
Jan 27th, 2008
OK if I use a linux server, which is feasible, although my mom is gonna screw at me for wiping off windows LOL, does this avoid the problems regarding SMTP setting etc?

Thanx in advance.
*Voted best profile in the world*
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC