• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

Modify config.xml via a php files

Scheduled Pinned Locked Moved Development
5 Posts 3 Posters 5.0k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J
    jithurbide
    last edited by Aug 21, 2008, 7:30 AM Aug 20, 2008, 2:47 PM

    Hello,

    I totally newbie of dev for pfsense. I try the developed a page that modify automaticly the local user's password of capitveportal.

    I try to use the simplexml_load_file() command without success. Is a function integrated of pfsense to modify the xml config file?

    Thanks in advance

    Julien

    Ok I found the solution.

    Now I have just a small problem : How I can send an email via pfsense?

    1 Reply Last reply Reply Quote 0
    • P
      Perry
      last edited by Aug 21, 2008, 8:41 PM

      I've recently tried to figure out how to send a email from pfSense.
      So fare I can send using nullmailer's sendmail from a php page
      http://www.phpclasses.org/browse/package/9.html#download
      As a side note nullmailer does not support gmail smtp. ssmtp and esmtp does but they don't have a there own sendmail.

      /Perry
      doc.pfsense.org

      1 Reply Last reply Reply Quote 0
      • C
        cybrsrfr
        last edited by Aug 22, 2008, 4:18 AM

        I use PHPMailer to send email in PHP. It is a native PHP class. It can either send email directly or send the email to an email server to do the delivery. It even has a alternate mail server option in case one of the external mail servers is down. It is the tool that can do anything you need with email from PHP. I is license under the LGPL.

        1 Reply Last reply Reply Quote 0
        • C
          cybrsrfr
          last edited by Aug 26, 2008, 4:19 AM

          It might help to provide a link:
          http://phpmailer.codeworxtech.com/

          1 Reply Last reply Reply Quote 0
          • C
            cybrsrfr
            last edited by Aug 31, 2008, 12:19 AM

            PHPMailer works great but I've read that it is no longer in active development.

            I found another alternative.
            http://www.swiftmailer.org
            The license is lgpl.

            Features are:
                * Persistent connectivity improves performance
                * Connection types selected by user - extendable
                * Complete header control with RFC 2822 requirements handled
                * Internationalization support (i18n)
                * Connection redundancy support
                * Load balancing and/or throttling support
                * SSL & TLS Support - for Gmail servers
                * Embedded images or other file types
                * Full MIME 1.0 library included (create multipart messages, attachments etc)
                * Batch mail processing
                * Smart runtime caching (in small, self-maintained packets)
                * Send attachments of any size even with PHP's 8MB Memory Limit
                * Support for multiple attachments
                * Lossless protection against header injection (encode, don't strip)
                * Set message priority
                * Request read receipts
                * Pluggable SMTP authentication (LOGIN, PLAIN, MD5-CRAM, POP Before SMTP)
                * Anti-flooding support for servers with limits on emails-per-connection
                * Bandwidth monitor included
                * Extensive event-driven plugin support (easy to write)

            1 Reply Last reply Reply Quote 0
            5 out of 5
            • First post
              5/5
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
              This community forum collects and processes your personal information.
              consent.not_received