Ask a Question related to PHP Development, Design and Development.
-
Xerxes #1
php scripts for email authentication
Hi,
is there any script to authenticate an email address entered in a form
field?
I used the php mail() function, using the following (where my email
field on the form is called "email"):
$email = explode('@',$email);
$mailhost = $email[1];
$mailhost=$mailhost.".";
$to = [email]myname@here.com[/email];
$subject = "this is the email subject";
/* message */
$message = 'text of the message';
$headers = "From: ".$email."\r\n";
/* and now mail it */
mail($to, $subject, $message, $headers);
I do get the an email when I press submit, but the "From: " field is
nothing like what I entered in the form field.
It prints something like "From: [email]Array@preteus.net[/email]"
This is basically for someone who is downloading a utility and I need to
send him the activation key (and verify the email entered.)
TIA.
Xerxes Guest
-
User Authentication Scripts
Okay i have a page where it captures a user name and password, and once i type in the correct user name and password, i want the user details to... -
Email Scripts, CDOSYS, and Security
I am a newbie with Dreamweaver and with ASP.NET. I created a form where the data is submitted to a SQL database and an email is sent notifying the... -
CS: Scripts do not appear in Scripts menu
I have several utility AppleScripts that I created for Illustrator 10. I'd like to use these in CS, and they work correctly when I choose "Browse"... -
Forms authentication then redirection to a secure web with NT authentication?
Hi, I want to allow access to particular secured intranet web sites. These intranet are stored in sharepoint (2003 version) Actually I've... -
scripts that control other scripts
Is there any behaviour script that when attached to a sprite can control the functionality of any other scripts attached to that sprite? I want to... -
P'tit Marcel #2
Re: php scripts for email authentication
Xerxes écrivit:
here you are converting the string $email to an array of two items.> I used the php mail() function, using the following (where my email
> field on the form is called "email"):
>
> $email = explode('@',$email);
here you try to convert an array into a string. the result is the word> $headers = "From: ".$email."\r\n";
"Array" (which is probably not what you are expecting ...)
--
P'tit Marcel
P'tit Marcel Guest
-
R. Rajesh Jeba Anbiah #3
Re: php scripts for email authentication
"Xerxes" <ashkaan57@hotmail.com> wrote in message news:<ac269f8e50395ef6f4b4c4cbee8a64ce@TeraNews>.. .
The code is quite common. Almost, all books have that script esp> Hi,
> is there any script to authenticate an email address entered in a form
> field?
the one by Rasmus. If you search the net, you can get that one.
Anyway, the best idea is to send the activation code & ask the user
to activate. If the user doesn't activate the account within 1 or 2
weeks then delete the user.
---
"We live to die; we die to live"
Email: rrjanbiah-at-Y!com
R. Rajesh Jeba Anbiah Guest



Reply With Quote

