General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old October 16th, 2003, 11:28 AM
t4feb t4feb is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: Michigan
Posts: 4 t4feb User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Need Help

I sure hope some one can help! I have tryed setting up Order Processing with php and ASP. First I receive an error

on php that says this

Warning: mail(): "sendmail_from" not set in php.ini or custom "From:" header missing in C:\My
WebSite\htdocs\Cart\process.php on line 131

I have set the php.ini every way I can think of and still get the same error. I am running my own server on XP it is
WebSite by DeerField and everything else dealing with php works fine. I am also running a mail server Any Ideas?

Next I tryed the ASP and it seemed to process just fine without any errors but did not send the order. Again any
Ideas of what to do?
Thanks for any help
_________________
Terry

Reply With Quote
  #2  
Old October 16th, 2003, 01:36 PM
dhouston's Avatar
dhouston dhouston is offline
Contributing User
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: May 2003
Location: Tennessee
Posts: 1,355 dhouston User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to dhouston
In your call to mail() in the PHP version, just add a "From" line to the headers parameter (the fourth parameter), like so:

PHP Code:
 $headers="From: [email]blah@blah.com[/email]\n";

mail($to,$subj,$msg,$headers); 

Reply With Quote
  #3  
Old October 16th, 2003, 03:32 PM
t4feb t4feb is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: Michigan
Posts: 4 t4feb User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
This is the code I still get the same error

This is the error
Warning: mail(): "sendmail_from" not set in php.ini or custom "From:" header missing in C:\My WebSite\htdocs\Cart\process.php on line 95
I marked line 95 with a 95


95
mail("t4feb@comcast.net","Order","$my_body", "$MailFrom" );


Reply With Quote
  #4  
Old October 17th, 2003, 07:35 AM
dhouston's Avatar
dhouston dhouston is offline
Contributing User
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: May 2003
Location: Tennessee
Posts: 1,355 dhouston User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to dhouston
I doubt it'll matter (it really shouldn't), but try removing the quotes from around your $MailFrom variable in the call to mail(). Failing that, I don't know what to tell you short of looking for a mailer class that handles sending mail through sockets (there's one out there called smpt_class, but I'm not sure where it can be found; it's just on one of the servers I work with).

Incidentally, I hope you're encrypting credit card numbers before sending them in plain text over email.

Reply With Quote
  #5  
Old October 17th, 2003, 08:12 AM
t4feb t4feb is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: Michigan
Posts: 4 t4feb User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I will try it without the quotes anything is worth a try at this time.
I am not takeing any orders at this time, this is just the stage of setting the shopping cart up. All credit card orders will be sent with encrypting. Thanks for your help and one other question I have about the ASP and sending mail. I heard that XP done away with CDonts dll can it be put into xp and run sending mail that way. Thanks again

Reply With Quote
  #6  
Old October 17th, 2003, 08:52 AM
stumpy's Avatar
stumpy stumpy is offline
May contain nuts.
Dev Articles Regular (2000 - 2499 posts)
 
Join Date: Aug 2002
Location: Sydney, AU
Posts: 2,058 stumpy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 8 m 57 sec
Reputation Power: 9
Send a message via ICQ to stumpy Send a message via MSN to stumpy
Correct - CDONTS has been replaced by the more powerful, but just as simple to use CDOSYS on XP and 2003 Server - there's tutorials everywhere on making the conversion. Google it up!

PS - Mailing credit card details is BAD!!

Reply With Quote
  #7  
Old October 17th, 2003, 09:32 AM
t4feb t4feb is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: Michigan
Posts: 4 t4feb User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks I will look it up

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > Need Help


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway