Current location: Hot Scripts Forums » Programming Languages » PHP » Contact Us form


Contact Us form

Reply
  #1 (permalink)  
Old 08-09-09, 10:27 PM
divGirl divGirl is offline
Newbie Coder
 
Join Date: Jun 2009
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Contact Us form

I am having trouble sending mail with php

mail("email@gmail.com","Subject","helloworld");

I want to send potential contact information to an email address - however, it is not working..
I am using visual studio and vista - does that have anything to do with it?

Is there another way using php?
Reply With Quote
  #2 (permalink)  
Old 08-10-09, 05:34 AM
wirehopper's Avatar
wirehopper wirehopper is offline
-
 
Join Date: Feb 2006
Posts: 2,515
Thanks: 20
Thanked 109 Times in 106 Posts
From: PHP: mail - Manual (Mail function descriptive text)

Quote:
Note: The Windows implementation of mail() differs in many ways from the Unix implementation. First, it doesn't use a local binary for composing messages but only operates on direct sockets which means a MTA is needed listening on a network socket (which can either on the localhost or a remote machine).
Second, the custom headers like From:, Cc:, Bcc: and Date: are not interpreted by the MTA in the first place, but are parsed by PHP.
As such, the to parameter should not be an address in the form of "Something <someone@example.com>". The mail command may not parse this properly while talking with the MTA.
PHP: Runtime Configuration - Manual (Mail configuration notes)

PHP: Runtime Configuration - Manual (SMTP configuration settings)

I would try using mail.domain.com as the SMTP setting, restart Apache, and see if that works.
Reply With Quote
  #3 (permalink)  
Old 08-10-09, 08:13 PM
ruteckycs's Avatar
ruteckycs ruteckycs is offline
Coding Addict
 
Join Date: Jul 2009
Posts: 377
Thanks: 6
Thanked 10 Times in 10 Posts
You can get a free contact form here:
Spam Free Contact Form

I wrote it some time ago and used to sell it, but now I give it away for free:
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with Contact Form Script makaiman Script Requests 2 07-27-09 12:56 AM
Space Above Form xavier039 CSS 1 07-13-09 10:52 PM
ajax checking and onsubmit issue follower JavaScript 4 10-12-08 03:45 PM
Tute: Create Email based Contact Form Grabber PHP 3 05-31-06 03:11 AM


All times are GMT -5. The time now is 07:56 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.