website development---> PHP mail scripting

Thread Tools
 
Search this Thread
 
Old Dec 4, 2010 | 11:20 PM
  #1  
blackjack8900's Avatar
Thread Starter
|
Technical Article Contributor
Joined: Nov 2005
Posts: 889
Likes: 0
From: Land of 10,000 Lakes
website development---> PHP mail scripting

So I am almost done with a website for my business....last part is to finish up the PHP mail script for my submit box.

For the life of me I can't get this thing to work....I am getting it down with pretty good now with general coding but I can not figure this PHP scripting out for the life of me.


Anybody know this stuff?

Any help would be awesome!!!


-Josh
 

Last edited by blackjack8900; Dec 4, 2010 at 11:51 PM.
Reply
Old Dec 5, 2010 | 02:58 AM
  #2  
06bluemeaniexl's Avatar
Senior Member
Joined: Apr 2010
Posts: 1,106
Likes: 0
From: Milwaukee
do you have an SMTP server set up to relay your emails?

if you try to send an email without an SMTP relay, nothing is going to happen.

typically, if you're hosting on a site like godaddy or 1and1, they provide you with an available email server and smtp relay to use.
 
Reply
Old Dec 5, 2010 | 09:49 AM
  #3  
jmmec's Avatar
Member
Joined: Nov 2010
Posts: 72
Likes: 0
It's not clear what your problem is, but you might want to take a look at PhpMailer -- it's very simple to use:

http://sourceforge.net/projects/phpmailer/

As already mentioned, you also need to know various details about your server in order to send email - your hosting provider should give you that information.
 
Reply
Old Dec 5, 2010 | 02:44 PM
  #4  
blackjack8900's Avatar
Thread Starter
|
Technical Article Contributor
Joined: Nov 2005
Posts: 889
Likes: 0
From: Land of 10,000 Lakes
Originally Posted by 06bluemeaniexl
do you have an SMTP server set up to relay your emails?

if you try to send an email without an SMTP relay, nothing is going to happen.

typically, if you're hosting on a site like godaddy or 1and1, they provide you with an available email server and smtp relay to use.

Yea, im hosting with godaddy.

I had it working before, found one php code online and copied it in, everything worked great. Only thing was I need to add fields to it, more info lines, check boxes and a number imput. I just repeated want was already done, exactly but it just does not want to work now
Originally Posted by jmmec
It's not clear what your problem is, but you might want to take a look at PhpMailer -- it's very simple to use:

http://sourceforge.net/projects/phpmailer/

As already mentioned, you also need to know various details about your server in order to send email - your hosting provider should give you that information.

That looks close to what I am doing, but how would I go about adding all the info that I need send with it? Like check boxes, and other info that i need sent?
 
Reply
Old Dec 5, 2010 | 04:21 PM
  #5  
Watson91's Avatar
Technical Article Contributor
Joined: May 2007
Posts: 1,221
Likes: 0
From: St. Louis, MO
Do you have your site online. If so send me a link or better yet pm me source code for what you have now and I will see about setting you up with some code.
 
Reply
Old Dec 5, 2010 | 04:57 PM
  #6  
blackjack8900's Avatar
Thread Starter
|
Technical Article Contributor
Joined: Nov 2005
Posts: 889
Likes: 0
From: Land of 10,000 Lakes
Watson91, PM sent
 
Reply




All times are GMT -4. The time now is 10:39 AM.