Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Feb 2009
    Posts
    89
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Php Emailer with or without flash fourm

    I need a php emailer set up I was going to make a flash forum and email it with a php script but im not quite sure how to go about it. If its too hard to do it that way I can just use the below that i grabbed from trapped 17 but im unsure of how it works and how does It know the password of the email account its using to send me the email? Im looking for the simplest way possible to do this, Ive already spent enough time getting acquainted with flash



    Code:
    config.php file
    CODE
    <?php
    $email="admin@fascript.com";  
    // Type Your email address here
    $thxemial="Thank Your for Sending Email to Us";
    //Your thanks Note
    ?>
    
    
    mail.php file
    
    CODE
    <?php
    include ("config.php");
    $sub = $_POST['sub'];
    $text = $_POST['text'];
    $memail = $_POST['memail'];
    mail($email, $sub, $text ,"From: $memail \nReply-To: $memail");
    mail($memail, $sub, $thxemial,"From: $email \nReply-To: $email");
    ?>
    
    
    Send.htm file
    CODE
    <html>
    
    <head>
    <meta http-equiv="Content-Language" content="en-us">
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>Your Email Address</title>
    </head>
    
    <body>
    
    <form method="POST" name="mail" action="mail.php">
        <p><font face="Verdana" style="font-size: 8pt">Your Email Address </font></p>
        <p><input type="text" name="memail" size="20"></p>
        <p><font face="Verdana"><span style="font-size: 8pt">Your Mail Subject</span></font></p>
        <p><input type="text" name="sub" size="20"></p>
        <p><font face="Verdana" style="font-size: 8pt">Your Mail Body</font></p>
        <p><textarea rows="2" name="text" cols="20"></textarea></p>
        <p><input type="submit" value="Send Email" name="Submit"></p>
    </form>
    
    </body>
    
    </html>

  • #2
    Regular Coder sea4me's Avatar
    Join Date
    Jan 2009
    Location
    Damn, I don't know...
    Posts
    390
    Thanks
    11
    Thanked 28 Times in 27 Posts
    With the PHP mail function, it is not necessary to have a password.

    Open your send.htm and you can just put in the infos it need and press Send Mail.

  • #3
    New Coder
    Join Date
    Feb 2009
    Posts
    89
    Thanks
    3
    Thanked 0 Times in 0 Posts
    Alright i guess ill try it out once I get the site up. What would i need todo to add php emailer to a flash forum


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •