Creating a forgot password page and sending a mail to that user

hi,
I need to create a forgot password page in which there will be two text box named user name and email id and user will provide his usename and email id in those text box. so apex will check that the provided name and email id are there in the data base and if email id corresponds to right user name then a mail will be send to that email Id containing auto generated password.
pls help
thanks

1003090 wrote:
hi,
I need to create a forgot password page in which there will be two text box named user name and email id and user will provide his usename and email id in those text box. so apex will check that the provided name and email id are there in the data base and if email id corresponds to right user name then a mail will be send to that email Id containing auto generated password.
pls help
thanksHello,
Welcome to Forum!
That's a too big question for anyone to explain in forum unless they have any link to documentation or blog entry or some books.
Have you already tried something for this? If so, please post the code here..
Algorithm for this would be..
<li> Compare username and email with values from DB, go to next step if they are correct, otherwise return error message
<li> Generate random password using combination of username and/or some random strings. You may use DBMS_RANDOM.STRING to generate this password
<li> Update your table with new password. If you store password as hash value (the way it should be stored), then hash password before updating it to table
<li> Send e-mail to use using APEX_MAIL.SEND
Regards,
Hari

Similar Messages

  • How do I extract email from a form and send the PDF to that user?

    How do I extract email from a form and send the PDF to that user?

    here you can add email to send to, CC, Subject, and body message
    var oDoc = event.target;
                        oDoc.mailDoc({
                                                                bUI: false,
                                                                cTo: "Agency Contact Email",
                                                                cCC: "",
                                                                cSubject: "Write your title here,
                                                                cMsg: "Dear" + AgencyContact + "(" + AgencyContactEmail + ")\nThe student, " + FirstName + " " + LastName + " has applied to work at your agency. Please confirm they can work here blah blah blah.......\n\nThanks.\n\nrespectuflly,\n\nme"

  • Creating a newsletter in pages and send email

    I want to be able to send directly from pages a newsletter that I created in pages via mail.  Is that possible?

    Pages > Share > Send via Email > PDF  is one way.

  • ME23N Script convert to PDF and send thru mail to the user created by

    Hi,
    I have created a custom PO SAP scirpt for the tcode ME23N and configured the same in tcode NACE Application 'EF' , output type 'NEU'
    But the client requirement is to send  this SAP Scipt PO converted to pdf & then send thru email to the user who created PO (ME23N)?
    How do u get this functionality please let me know?
    Regards,
    Anil

    Hello,
    that is easy, you only need to keep the steps to do in mind:
    1) find a suitable point to place in your code to do all this for you
    2) create a FM that will convert your form into PDF (search a little, this has been done like zillion times here)
    3) create a FM that will send the PDF stream (hex data which is accepted by the BCS class as the attachment data)
    4) check the email customizing in your system
    5) run and enjoy
    All the parts has been done here many times, shouldn´t be a problem.
    Otto

  • HT4798 i created my apple id account, verified but know i m unable to log on, it says incorrect password, i tried to reset via forgot password option but it does not send reset password page to my e- mail address, how can i get this sorted or delete my pr

    User created apple id account, verified but know she is unable to log on, it says incorrect password, she tried to reset via forgot password option but it does not send reset password page to here e- mail address, how can i get this sorted? or how can i get her whole apple account deleted and created new one using same e - mail address?

    The idea to jumpstart by change was not the smartest one, but gives you an opportunity to use that "temporary" account as permanent. You do not have a choice cause obviously despite you thinking that old account is no more -it does exist on Apple servers. And if you are unwilling to share your [email protected] with friend, just create one extra [email protected] for your friend. One suggestion - do not use gmail.

  • How do I create a "forgot password" and "forgot username" Form?

    Good Day,
    I am in need of assistance in learning how to create a "forgot password" and "forgot username" form in DW CS4.  I have researched Adobe and the Internet and I am coming somewhat empty on tutorials or step-by-step instructions.
    I would appreciate any step-by-step instructions, a link to a good online tutorial, or any other related source that can help me get from beginning to end.
    Thank you.

    Hope this work for you...
    What kind of web programming do you use for? If you use PHP MySQL, you can do it easily.
    For example I use a MySQL Table called "admin":
    CREATE TABLE IF NOT EXISTS `admin` (
      `id` int(10) NOT NULL AUTO_INCREMENT,
      `name` varchar(64) NOT NULL,
      `email` varchar(64) NOT NULL,
      `username` varchar(64) NOT NULL,
      `password` varchar(64) NOT NULL,
      `activation` varchar(64) NOT NULL,
      `level` int(2) NOT NULL DEFAULT '0',
      `date_registered` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
      PRIMARY KEY (`id`)
    ) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
    INSERT INTO `admin` (`id`, `name`, `email`, `username`, `password`, `activation`, `level`, `date_registered`) VALUES
    (1, 'Andoyo', '[email protected]', 'andoyo', 'andoyo', '8e67d638c0d130a4d66b2888ffc8335b', 0, '2011-09-21 10:32:16');
    Make two files, they are:
    forgot_password.php, contain form and php mail function
    error.php, a redirect page if the mail function doesn't work.
    And then, use your Dreamweaver to make a recordset, called: rsForgotPassword
    Click Insert > Data Objects > Recordset
    Name: rsForgotPassword
    Connection: adobe_cookbooks
    Table: admin
    Columns: All
    Filter: email, Form variable, =, email. Use form variable to pass the value from the form.
    Click OK
    Use if function to make the forgot function work perfectly, for example:
    If the email is entered correctly, the mail script will run
    If the email doesn't exist in the database, the notification will come out
    If they open the page directly, they have to type any keyword
    Final example:
    forgot_password.php
    <?php require_once('Connections/adobe_cookbooks.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;  
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    $colname_rsForgotPassword = "-1";
    if (isset($_POST['email'])) {
      $colname_rsForgotPassword = $_POST['email'];
    mysql_select_db($database_adobe_cookbooks, $adobe_cookbooks);
    $query_rsForgotPassword = sprintf("SELECT * FROM `admin` WHERE email = %s", GetSQLValueString($colname_rsForgotPassword, "text"));
    $rsForgotPassword = mysql_query($query_rsForgotPassword, $adobe_cookbooks) or die(mysql_error());
    $row_rsForgotPassword = mysql_fetch_assoc($rsForgotPassword);
    $totalRows_rsForgotPassword = mysql_num_rows($rsForgotPassword);
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    </head>
    <body>
    <p>Forgot your password:</p>
    <?php if (isset($_POST['email']) && ($row_rsForgotPassword['email']=="")) {
      $colname_rsForgotPassword = $_POST['email']; ?>
    <p>Email doesn't exist in our database</p>
      <?php }elseif (isset($_POST['email'])) {
      $colname_rsForgotPassword = $_POST['email'];
      $username = $row_rsForgotPassword['username'];
    $password =$row_rsForgotPassword['password'];
    $to = $row_rsForgotPassword['email'];
    // Mai function
    $subject = "Your username dan password: ".$row_rsForgotPassword['name'];
    $body = "<html><body>" .
                        "<h2>Thank you...</h2>" .
                        "<p>This is your username and password:</p>".
                        "<ul><li>Username=".$username."</li>".
                        "<li>Password= ".$password."".
                        "From: Webmaster www.javawebmedia.com";
    $headers =           "From: Webmaster www.javawebmedia.com <[email protected]>\r\n" .
                                  "MIME-Version: 1.0\r\n" .
                                  "Content-type: text/html; charset=UTF-8";
    if (!mail($to, $subject, $body, $headers)) {
              $redirect_error= "error.php"; // Redirect if there is an error.
      header( "Location: ".$redirect_error ) ;
      ?>
      <p>Thank you, your username and password has been sent to your email.</p>
      <?php }else{ ?>
      <p>Please type any keyword.</p>
      <?php } ?>
    <form id="form1" name="form1" method="post" action="">
      <p>
        <label for="email">Your email:</label>
        <input type="text" name="email" id="email" />
        <input type="submit" name="Submit" id="submit" value="Submit" />
        <input type="reset" name="Reset" id="submit2" value="Reset" />
      </p>
      <p>The username and password will be sent to your email.</p>
    </form>
    <p></p>
    </body>
    </html>
    <?php
    mysql_free_result($rsForgotPassword);
    ?>
    error.php
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    </head>
    <body>
    Oops, error page.
    </body>
    </html>

  • Somebody has created an apple id using my gmail id. So I gave forgot password option and reset the password of the id. But for resetting the security questions, link is going to some other email id which is created by the other guy.How can I resolve this?

    When I tried to create and apple id using my gmail account i found that somebody has already created an apple id using my gmail id. So I gave forgot password option and reset the password of the id. But for resetting the security questions, link is going to some other email id which is created by the other guy. Now the problem is that the other guy also can reset my password and access my account.
    I contacted apple customer care and they are not ready to help me saying that I need to give information about the last device I logged in using this id. How can I give it when I did not create it?:) Also they are saying this account has been verified and that could happen only if someone has hacked my gmail account and verified the id using the link sent by apple.
    Later I did some experiments and found that this is a security flaw from apple. Somebody has created the id and never used it(I tried to loggin to icloud and it was saying this account was not used it any apple device). The account became verified when I reset the password.(This is a bug, account should be verified only when we click on the verification link sent by apple).
    The other mistake apple did is that they allotted my gmail account to someone before it's verified eventhough it cannot be used unless verified. Actually apple should allot the account id only after verifying the email address.
    Apple customer care is not ready to help and I am tired of fighting with them. Can any of you guys suggest any means of getting back my gmail id to use it as apple id?

    I don't think you're going to be able to. I would guess the other person used your address by accident, and when he found he couldn't access the account (because you'd changed the password) he abandoned it. Your GMail address is now locked to that account and even if it was changed you can't use it to create another.
    You already have an Apple ID, which you use to log in here; you can use that to create an iCloud account if that's what you are trying to do. If you want to create a different Apple ID just get another free address such as a Yahoo one.

  • HT201263 i forgot password of icloud and i did restore with itunes and again it wants password, so now i cant do anything, i forgot e-mail password which is sending e-mail address. so i cant use my ipad, what can i do? how can i change i cloud address wit

    i forgot password of icloud and i did restore with itunes and again it wants password, so now i cant do anything, i forgot e-mail password which is sending e-mail address. so i cant use my ipad, what can i do? how can i change i cloud address without old

    Is your phone still signed in with your old iTues ID for iCloud (in Settings>iCloud)?

  • Forgot my apple ID , and need a hint on my associated email so i can sent a reset password , and the worst thing in apple ID forgot password page that if you typed any apple id even if its wrong it gives you that email has been sent !! how come !

    forgot my apple ID , and need a hint on my associated email so i can sent a reset password , and the worst thing in apple ID forgot password page that if you typed any apple id even if its wrong it gives you that email has been sent !! how come !!
    so please if anyone got any idea of how to get the hint on the mail ( i used to remember there is a hint )

    If all you did was rename your ID, you can go to Settings>iCloud, tap Delete Account, choose Delete from My iPhone when prompted, then sign back in with your renamed ID.  Deleting the account only deletes the account and any data you are syncing with iCloud from your phone, not from iCloud.  Provided you are signing back into the same account and not changing accounts, your data will be synced back to your phone when you sign back in.
    If, however, you are changing to a new account with a new ID, choose Keep on My iPhone when prompted.  Then choose Merge when you sign into the new account and turn your iCloud syncing back on to upload your data to the new account.
    Before deleting the account, save you photo stream photos to your camera roll (tap Edit, tap all the photos, tap Share, tap Save to Camera Roll).

  • I can create documents in Mavericks Pages and Keynote. When I attach them to an email and send to others also using Mavericks, they can't open the attachments. Why might this be?

    I can create documents in Mavericks Pages and Keynote. When I attach them to an email and send to others also using Mavericks, they can't open the attachments. Why might this be?

    The new Pages v5 (Mavericks) uses a new file format with the same extension name (.pages). Older versions of Pages cannot open these documents unless you first export them as Word (.docx) and send these as Mail attachments. The same is true if you originate an IOS Pages v2.01 .pages document.
    You may be sending to people who chose not to install Pages v5 on Mavericks and continue to use Pages ’09 v4.3 instead — especially for the superset of features that are presently not in Pages v5.

  • Is there a way to create multiple New Tabs pages and name them?

    This feature is great but I would like to be able to create multiple new tabs pages and label them. This would be more useful than tabs groups that all load at once.

    No that is (currently) not possible.
    It will be possible in future Firefox version to specify the number of rows and columns.
    *[https://bugzilla.mozilla.org/show_bug.cgi?id=752841 bug 752841] - [New Tab Page] make the number of tabs adjustable
    <i>([https://bugzilla.mozilla.org/page.cgi?id=etiquette.html please do not comment in bug reports])</i>

  • SharePoint 2013 and IE 11 issue - While creating a Web Part Page and Editing Web Part Properties

    I tried to edit a Web Part in SharePoint 2013 using IE 11 but I did not see the Edit Eeb Part dropdown menu at the top-right corner of the web part. Then I tried to create a Web Part page and I get the following error.
    Cannot create a Web Part Page with the current browser. Browsers that support the creation of Web Part Pages include Microsoft Internet Explorer 7.0 or later, Mozilla Firefox 3.0 or later, and Apple Safari 3.0 or later
    Strange !!! My web browser is IE 11.
    I tried the above two tasks in Google Chrome and worked fine.
    Solution:
    I added the site url to local intranet zone in IE 11 and I am now able to add Web Part Page and Edit Web Part in IE 11.
    imd.net

    Hi - One more solution is to add SharePoint site to compatibility group:
    http://blog.fpweb.net/sharepoint-internet-explorer-compatibility-issues-with-video/#.VAaZSPmSyy4
    -prs

  • How to create xml file from Oracle and sending the same xml file to an url

    How to create xml file from Oracle and sending the same xml file to an url

    SQL/XML (XMLElement, XMLForest, XMLAgg, etc) and UTL_HTTP.
    Whether that works for you with the version of Oracle you have, your requirements, and needs is another story. A little detail goes a long way.

  • I created a brochure in pages and exported it to a pdf format. The pdf looks and opens perfectly using preview but when opened in adobe reader (which my printer uses), fonts look odd, transparencies don't display...etc. Tells me error exists on page?

    I created a brochure in pages and exported it to a pdf format. The pdf looks and opens perfectly using preview but when opened in adobe reader (which my printer uses), fonts look odd, transparencies don't display...etc. Tells me error exists on page?

    Does this essentially mean there is no way to fix this problem on my end? It's a pity because the design and branding of my brochure will suffer if I remove transparencies and use different fonts. It also concerns me moving forward because it means the quality of print on my pieces will be significantly lower because most commercial printers use Adobe products.

  • Is it possible to create a virtual TCP port and send data to it?

    Is it possible to create a virtual TCP port and send data to it?
    My application is this:   I am reading a constant stream of waveform data from a device via a LabVIEW VI set and I need to get that streaming data to a .NET application.  I can poll a TCP port in .NET easily so is there a way I can create a virtual TCP port in LabVIEW and send the data there?

    Have a look at the example called simple data server and simple data client and see what you can get from that. I'm not really familiar with TCP myself.
    Joe.
    "NOTHING IS EVER EASY"

Maybe you are looking for