How can I install and configure an SMTP server?

390

I'd recommend you look into something like Postfix as your email server. This will allow you to send email.

Just be sure that, if you want to run a full email server (with inbound traffic), you setup your DNS zone file to handle inbound mail traffic.

For the PHP script you're referring to... do you mean that you want to send email from something like a form, with form data as part of the email and perhaps some other default info?

Share:
390

Related videos on Youtube

JunM
Author by

JunM

Updated on September 18, 2022

Comments

  • JunM
    JunM over 1 year

    I am learning framework7 and I wonder if it is possible to create an input type="text" outside UL tag. On the code below, the css is not rendering on my textfield. Please see code comments.

    And here is the fiddle.

    <!-- THIS WILL WORK -->
    <div class="list-block">
      <ul>
        <li>
          <div class="item-content">
            <div class="item-inner">
              <div class="item-input">
                  <input type="text" name="name">
              </div>
            </div>
          </div>
        </li>
      </ul>
    </div>   
    
    <!-- NOW, WHAT IF WE WON'T SHOW TEXTFIELD IN INSIDE UL? -->
    <!-- THE CSS WON'T WORK ANYMORE, IDK WHAT IS THE CORRECT CSS CLASS EITHER TO WRAP THE ELEMENT -->
    <div class="content-block">
      <input type="text" />
    </div>
    
  • HaVoK
    HaVoK over 10 years
    I've been reading about postfix and it sounds like what i need. and the php script i'm refering to is on my website there is a contact us form that the user fills out and the php script will grab all that info and send it to my email address.
  • douggro
    douggro over 10 years
    @HaVoK You can install Postfix through Webmin - it offers full configuration and control of Postfix. Just look in the 'Un-used Modules' section of the main Webmin page.
  • HaVoK
    HaVoK over 10 years
    yeah i have post fix installed that was easy but the set up is kinda difficult. i want it to use the php script i wrote to snatch the data entered on this form havoksecurity.com/contacts.html and send it in an email to me. I hope that clears it up some.
  • douggro
    douggro over 10 years
    Would need to see your PHP mail script to determine how the email will be routed.