Jump to content

SMTP Settings: Difference between revisions

From Logistack
 
Line 27: Line 27:
== Install Updates ==
== Install Updates ==


Once modified, save and upload <code>invoice_send.php</code> to your server using the system updater script found at Update <i class="bi bi-arrow-right-short"></i> Update, and use the Upload PHP File script.
Once modified, save and upload <code>invoice_send.php</code> to your server using the system updater script found at Update <i class="bi bi-arrow-right-short"></i> Update, in the sidebar, and use the Upload PHP File script.


Create a demo job, assign to a Driver, mark the job as delivered, and then complete.
Create a demo job, assign to a Driver, mark the job as delivered, and then complete.


Next, create an invoice, and then send, to an email you have access to.
Next, create an invoice, and then send, to an email you have access to.

Latest revision as of 17:08, 11 October 2025

Overview

SMTP stands for Simple Mail Transfer Protocol — the standard protocol used to send email between servers (and from apps like PHPMailer to your mail server). PHPMailer is already installed on Logistack, and works out of the box with minimal modification.

Logistack uses PHPMailer to send invoices.

Update your Settings

Open the file called invoice_send.php and scroll to line 149 and modify as shown below, I've left some of my info in-place to make it easier.

Only change the info shown below, any other edits will break the program, and lead to php errors.

    $mail->Host       = 'smtp.hostinger.com';       // <-- change to your SMTP server
    $mail->SMTPAuth   = true;                       // <-- keep as is
    $mail->Username   = 'info@logistack.co.uk';     // <-- your SMTP username, normally your email
    $mail->Password   = '';                         // <-- your SMTP password
    $mail->SMTPSecure = 'ssl';                      // <-- keep as is
    $mail->Port       = 465;                        // <-- keep as is

External emails

  • Gmail: supports 465 & 587
  • Office 365/Exchange Online: 587 only

Install Updates

Once modified, save and upload invoice_send.php to your server using the system updater script found at Update Update, in the sidebar, and use the Upload PHP File script.

Create a demo job, assign to a Driver, mark the job as delivered, and then complete.

Next, create an invoice, and then send, to an email you have access to.