Author |
Message |
resin1980
New Member


Joined: Sep 22, 2007
Posts: 2
|
Posted:
Thu Sep 27, 2007 2:18 pm |
|
when people Registration it not sending the email to them can some one help pls running RavenNuke_v2.10.01 |
|
|
|
 |
jakec
Site Admin

Joined: Feb 06, 2006
Posts: 3048
Location: United Kingdom
|
Posted:
Thu Sep 27, 2007 2:27 pm |
|
You need to check that your host supports php_mail.
If you do a search in the forums you should find some other discussions on this matter as well. |
|
|
|
 |
resin1980

|
Posted:
Sat Sep 29, 2007 11:23 am |
|
i need to put this in my php some where to get the registration towork and i am useing fasthost can some help
EXAMPLE: 'Form to mail' script using PHP
Important: You are responsible for the misuse of any scripts on your website. See our article Securing your web scripts for further details.
Summary
This article gives an example of how to use a PHP script to take input from a feedback form and send it to you in an email message.
Note: PHP pages will not work if placed in cgi-bin. They need to be in the htdocs directory.
Example
The following example uses a PHP script to take input from a feedback form and send it to you in an email message.
First of all, you need a form to receive the data, e.g. feedback.html:
feedback.html
The form asks the visitor for his/her email address (via the email field above) and message (via the message field above), and invites the visitor to click a button to submit the contents of the form. When the form is submitted, it is 'posted' to a script named sendmail.php. Next, you need to create the sendmail.php script, using the facilities available in PHP, e.g.
mail( "yourname@yourdomain.com", "Feedback Form
results",$_POST['message'], "From: $_POST['email']", "-fuser@yourdomain.com" );
header( "Location: http://www.yourdomain.com/thankyou.html" );
Quick tip: If you are using PHP on a Windows server use the PHP mail function and set the mail from using the following line of code - replacing email@mydomain with the correct domain name. This line of code should be placed immediately before the line containing the mail command.
ini_set("sendmail_from", " email@mydomain ");
When the form is submitted to sendmail.php, the contents of the email field in the form are inserted into a PHP variable called $email, and the contents of the message field are inserted into the variable $message. The script calls a special function called mail, which takes care of the actual dispatch. The first parameter to mail is the address to which you want the form contents sent, in this case your own email address. The second parameter is the subject of the email message, the third is the content of the message, and the fourth is the "From" header so that you know who the sender is, and can reply.
In order for the script to work, you need to specify, via a fifth -f parameter, the domain from which the mail is being sent. The PHP component uses SMTP, and all Fasthosts' SMTP servers have filters which ensure that the data returned by either the first or fifth mail parameter relates to one of your domains hosted by Fasthosts. The final part of the script thanks the visitor for the message. This is done by sending an HTTP header back to the visitor's browser telling it to load a file called thankyou.html from your domain. The /header/function allows you to send any HTTP header back to the browser.
Note: The script has to be enclosed within the “<?” and “?>” tags because the PHP processor treats all input as HTML code unless otherwise specified. On some systems, you may need to use “<?php” and “?>” as the opening and closing tags to get the script to work. |
|
|
|
 |
montego
Site Admin

Joined: Aug 29, 2004
Posts: 9457
Location: Arizona
|
Posted:
Wed Oct 31, 2007 6:28 am |
|
resin1980, sorry that this has sat so long. What we have done is initiated a project on the RavenNuke side to incorporate SMTP capability directly INTO RN. So the next release should help out tremendously.
In the meantime, though, you could use my Approve Membership Lite hack from my site and just set it to auto-activate (no mail). I know this doesn't solve your overall problem, but it might get you by for a short period of time until 2.20.00 of RN is released (before the end of the year). |
_________________ Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! |
|
|
 |
montego

|
Posted:
Mon Dec 31, 2007 8:27 am |
|
BTW, TegoNuke(tm) Mailer has been "born" and it is included in the upcoming RN 2.20.00 release (due out in early January) which will give you the option to use authenticated SMTP!
 |
|
|
|
 |
|