Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> RN Installer/Setup Issues
Author Message
resin1980
New Member
New Member



Joined: Sep 22, 2007
Posts: 2

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

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
Site Admin



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

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

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







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

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

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

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







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

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
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> RN Installer/Setup Issues

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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©