Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
PHP help (send mail)
I recently had some help developing a “signup” for my site.
The php that – I think – sends the email to the person who signs up is below. I would like to add for the script to email me also.
How would I go about doing this? I know next to nothing about php, but hey, ya gotta start somewhere :)
Thanks,
Matthew
ps. If I’m cuckoo and this is not the right snippet of code then check here for the full code.
<code>
function ext_signup_email($login, $name, $pass, $email)
{
global $sitename;
$message = “Greetings $name,”.
“\r\n\r\n”.“You have been registered at”.
“\r\n\r\n”.”$sitename”. “\r\n”.hu.
“\r\n\r\n”.“Login: $login”. “\r\n”.“Password: $pass”.
“\r\n”.”\r\n”.“You may now login at “.hu.‘textpattern/index.php’;
return txpMail($email, “[$sitename] Your login info”, $message);
}
</code>
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline
#2 2005-11-13 03:26:58
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: PHP help (send mail)
Calling txpMail() twice hasn’t occurred to you?
Alex
Offline
Re: PHP help (send mail)
Zem,
I wish it had, but you see, I don’t understand enough about how this works :(
This is the beginning of the learning curve for me :)
If you have a suggestion about how I could do that, it would be great!
I am hoping to have the completed “application” that this script develops sent to either ALL Administrators or me (one in the same:)
I am really clueless where to begin.
I don’t want to bog the author down with too many questions, and thought this would be a good place to start learning.
Thanks,
Matthew
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline
Pages: 1