Current location: Hot Scripts Forums » Programming Languages » PHP » mail function causes server error


mail function causes server error

Reply
  #1 (permalink)  
Old 11-13-03, 01:52 PM
thewhiteshadow thewhiteshadow is offline
New Member
 
Join Date: Nov 2003
Location: kansas city
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
mail function causes server error

sending mail using the mail function causes this error.

Warning: Server Error in c:\inetpub\wwwroot\sommersco\processfeedback.php on line 34

line 34 is the mail function call. but i likely have a server setting misconfigured.

any help is appreciated. i'm somewhat new to php but not to programming.
Reply With Quote
  #2 (permalink)  
Old 11-13-03, 03:40 PM
evo4ever evo4ever is offline
Software Developer Guru
 
Join Date: Aug 2003
Posts: 64
Thanks: 0
Thanked 0 Times in 0 Posts
Hi. Is the server located locally? as in your computer? If so it may be trying to send mail using the localhost SMTP server and the default address (which is something like "admin@localhost"), if this is so then you might not have SMTP software installed. There is a way round this however, by making two calls to the "ini_set()" function:

1. ini_set("SMTP", "your ISP's SMTP server");
2. ini_set("sendmail_from", "your ISP email address");

This function returns the old value of success or false on failure.

However.... if the server isn't yours then your best contacting your server admin about it. Good luck.
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
how do i work with PHP mail() function darkcarnival PHP 5 08-31-09 05:11 PM
help finding a mail list server mikestreb PHP 0 09-16-03 11:35 PM
Help trim code down TheLaughingBandit JavaScript 0 09-02-03 09:50 AM
mail() function SmartBiz PHP 8 08-03-03 10:01 PM
An error in searching function obie Hot Scripts Forum Questions, Suggestions and Feedback 0 06-12-03 10:23 AM


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