PHP Web Host - Quality Web Hosting For All PHP Applications Sign up for PayPal and start accepting credit card payments instantly
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
resin1980
New Member
New Member


Joined: Sep 22, 2007
Posts: 2

PostPosted: Thu Sep 27, 2007 2:18 pm Reply with quote Back to top

when people Registration it not sending the email to them can some one help pls running RavenNuke_v2.10.01
View user's profile Send private message
jakec
Moderator


Joined: Feb 06, 2006
Posts: 1839
Location: United Kingdom

PostPosted: Thu Sep 27, 2007 2:27 pm Reply with quote Back to top

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.
View user's profile Send private message
resin1980
New Member
New Member


Joined: Sep 22, 2007
Posts: 2

PostPosted: Sat Sep 29, 2007 11:23 am Reply with quote Back to top

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:
Only registered users can see links on this board!
Get registered or login to the forums!
" );

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.
View user's profile Send private message
montego
Site Admin


Joined: Aug 29, 2004
Posts: 7452
Location: Arizona

PostPosted: Wed Oct 31, 2007 6:28 am Reply with quote Back to top

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).
View user's profile Send private message Visit poster's website
montego
Site Admin


Joined: Aug 29, 2004
Posts: 7452
Location: Arizona

PostPosted: Mon Dec 31, 2007 8:27 am Reply with quote Back to top

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!

Dance-Y
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum