User | Post |
DarkSlaya
Posts: 1307/4249 |
No problem, I discovered that helping people was fun. And I'm now used to it, since I'm helping a few people on a board dedicated to PHP. |
Mercury
Posts: 30/88 |
Sorry, it works now . It was probably just a syntax error, thanks again . |
ErkDog
Posts: 702/982 |
I would suggesting finding a simple PHP E-Mail form script... getting that to work properly, then use the code from that |
Mercury
Posts: 29/88 |
As far as I can see, it seems enabled. But haven't got any mail, I'll study it . |
DarkSlaya
Posts: 1264/4249 |
Originally posted by Mercury
Can I check myself if it's enabled (some .ini file or so)?
I belive that phpinfo() will tell you. |
Mercury
Posts: 28/88 |
I host it with a company. Can I check myself if it's enabled (some .ini file or so)? |
Sokarhacd
Posts: 354/1757 |
the mail function has to be enabled, if you have hosting with some company, then its usually enabled, if you run a web server on your own pc, and its windows, then it doesnt work by default, I think you need a smtp server and such.... |
Mercury
Posts: 27/88 |
Ah, didn't know there exists a mail function . Thanks, I'll try it out .
Edit: Hmmm, I tried it (with my own mail address), but still haven't received a mail. Could it be that it takes longer than a few hours? |
DarkSlaya
Posts: 1253/4249 |
Use the mail() function:
Something like that should work (not sure thought):
if ($action == register) { mail("$mail", "$Title of the Mail", "$Account Info"); echo "An E-Mail with your account informations have been sent!"; }
For more about the mail() function: Click here |
Mercury
Posts: 26/88 |
In PHP, how do you send an automatic email? The registering with an Acmlmboard is too easy, so what I want to do is the following:
when a person registers an account, an email will be send to his/her address with a password. With that password he/she can login and activate the account.
Thanks . |