|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
||||
|
||||
|
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:
|
|
#3
|
|||
|
|||
|
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" ); |
|
#4
|
||||
|
||||
|
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. |
|
#5
|
|||
|
|||
|
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 |
|
#6
|
||||
|
||||
|
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!! |
|
#7
|
|||
|
|||
|
Thanks I will look it up
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > Need Help |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|