Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 189567
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T16:11:00+00:00 2026-05-11T16:11:00+00:00

How to get user mails in my free gmail inbox through contact us form

  • 0

How to get user mails in my free gmail inbox through contact us form on my website. I do not use email with my website name . i use free gmail. I tried many script but the all need email account on domain.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T16:11:01+00:00Added an answer on May 11, 2026 at 4:11 pm

    Does this question have something to do with This One?

    Well, so you have a form on your site, your users fill it up and you need an email with that data, right?

    Simple example:

    <form action="sendMail.php" method="post">
        Name: <input type="text" name="name" id="name" /><br />
        Email: <input type="text" name="email" id="email" /><br />
        Text: <textarea name="text"></textarea><br />
        <input type="submit" value="Send" />
    </form>
    

    then, the php page wich send the mail:

    //php sendThis.php page
    <?php
    require("class.phpmailer.php");
    $name = $_POST['name'];
    $email = $_POST['email'];
    $text = $name . ', ' . $email . ' has filled the form with the text:<br />' . $_POST['text'];
    
    $from = 'your.email@gmail.com';
    $to = 'your.email@gmail.com';
    $gmailPass = 'your gmail password';
    
    $mail = new PHPMailer();
    $mail->IsSMTP();
    // enable SMTP authentication
    $mail->SMTPAuth = true;
    // sets the prefix to the server
    $mail->SMTPSecure = "ssl";
    // sets GMAIL as the SMTP server
    $mail->Host = 'smtp.gmail.com';
    // set the SMTP port
    $mail->Port = '465';
    // GMAIL username
    $mail->Username = $from;
    // GMAIL password
    $mail->Password = $gmailPass;
    $mail->From = $from;
    $mail->FromName = $from;
    $mail->AddReplyTo($from, $from);
    $mail->Subject = 'This is a test!';
    $mail->Body = $text;
    $mail->MsgHTML($text);
    $mail->IsHTML(true);
    $mail->AddAddress($to, $to);
    
    if(!$mail->Send()){
        echo $mail->ErrorInfo;
    }else{
        echo 'sent!';
        $mail->ClearAddresses();
        $mail->ClearAttachments();
    }
    ?>
    

    EDIT: just tested and works fine. Make sure that the 3 files (class.phpmailer.php, class.pop3.php and class.smtp.php) are in the correct include path

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i'm trying to get user's public information (name, photo, gender, profile link). as i
In my forum, users can reply through email. I am handling mails from their
This is the code that counts the number of mails in the gmail inbox.
I am trying to get no. of recent unread mails from a gmail account.For
I want to get emails from all folders from gmail. From inbox, sent and
I am trying to get user selected points (to get a polygon) from an
I want to get user input for my OpenGL ES 2.0 application, but there
I want to get user input in one page, store that in a php
I'm trying to get user GUID from Active Directory. My code: DirectoryEntry entry =
How to get user roles from Membership provider? Suppose I have a username and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.