# Send Invoice copies in PDF format while Sale Bill Printing

**YouTube:** [How to send invoice copies in PDF format from Sale Bill printing?](https://youtu.be/8RKp_bA43dQ)

## How to send Invoice copies in PDF format from Sale Bill Printing?

In this tutorial, we’ll learn how to **automatically send a PDF copy of the customer’s bill to their email** as soon as the bill is printed.

***

### Access to Designer Printing Format

* Go to **Continuous Printing**.
* Open **Sales Bill Print Designer & Printing**.
* From the **Search List**, select the required **configuration and sales bill**.
* Click **Refresh** to load the design window.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FOYkHym829rdPeWkSVU1y%2FDesign.png?alt=media&#x26;token=a5fc482c-d909-4425-9500-2d0929477147" alt=""><figcaption></figcaption></figure>

***

### Configure Mail Settings

* From the **Menu Bar**, go to **Options → Mail Settings**.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FwblUBesINCUrriTl2YXC%2FMail%20Settings.png?alt=media&#x26;token=6e7d0f60-6846-4228-9c06-6c9c10592a19" alt=""><figcaption></figcaption></figure>

* Under **Mail To**, you need to add the customer’s email field:
  * In the **Event Resources Panel** (bottom-left), expand **Sales Bill Details → Bill Header Details Table**.
  * Locate the **Email ID** field.
  * **Right-click** and add it to the **Mail To** section.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FWuFK8fQfYk1b9XUU1ehY%2FInsert%20Email.png?alt=media&#x26;token=a28df286-60b6-49cb-a835-6058f4d4b672" alt=""><figcaption></figcaption></figure>

* Specify the **Subject** and **Body** of the email.
* Choose the **File Format** as **PDF**.
* Under **Sending Options**, select either:
  * **Review and Send** (to preview before sending), or
  * **Send Directly** (to send automatically).

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2F9JJlYFPcyw7e5Ms6FrdZ%2FNew.png?alt=media&#x26;token=08c64179-9807-461b-8a0f-ba47ecdef1fd" alt=""><figcaption></figcaption></figure>

***

### Set Up Global Mail Account

* From the **Menu Bar**, open **Global Mail Account Settings**.
* Under **Account Details**, define:
  * **Account Name**
  * **Description**
* In **Mail Server Settings**:
  * Select **Gmail**.
  * Enter the **Display Name** and the **Email ID** that will send invoices.
  * Ensure the **Account Type** is set to **POP3**.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2F2PcrgukiBJRRs1zzqD6q%2Fglobal%20mail%20settings.png?alt=media&#x26;token=725e070f-c22d-4d63-821b-b4a1fc2edd77" alt=""><figcaption></figcaption></figure>

***

### Configure Login Information

* For **Username**, enter the same email ID.
* For **Password**, you’ll need to generate a **Gmail App Password**:
* Log into your Gmail account.
* Go to **Settings → Security → Enable 2-Step Verification**.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2F3DkDXXhl7kausik4piqd%2F2%20Step%20Verification%20enabled.png?alt=media&#x26;token=ba8e0273-1d77-4f29-a487-9563af385152" alt=""><figcaption></figcaption></figure>

* Search for **App Passwords** in the security settings.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FoMhimgdOi7lJpMYtPaW9%2FApp%20Password%20Directory.png?alt=media&#x26;token=417f083f-4c03-4ffb-8e11-c72048d06650" alt=""><figcaption></figcaption></figure>

* Enter your Gmail account password.
* Create a new App Password by providing an **App Name**.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FhlnzCxoTMxWgiPWj2lms%2FApp%20Password.png?alt=media&#x26;token=e95c353c-9eba-4a12-800a-2146eae14e8b" alt=""><figcaption></figcaption></figure>

* Click **Create** to generate your unique password.
* Copy the App Password provided.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FttUKV6AtfA1rB8qTPtbZ%2FApp%20Password%20generated.png?alt=media&#x26;token=0fc6daed-fae6-4189-bb3e-dc3d22bbb4fc" alt=""><figcaption></figcaption></figure>

* Return to the configuration window in Logic ERP and **paste the App Password** into the **Password** field.
* Click **Test Connection** to verify the setup.
* Upon successful verification, you’ll receive a **confirmation email**.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2F5aVDIoy2xitzjeopYXZV%2FEmail%20-%20prompt.png?alt=media&#x26;token=c3b64c94-284e-4e8a-973f-5aec2c684be1" alt=""><figcaption></figcaption></figure>

* Save the **Mail Account Settings** and the **Printing Configuration**.

***

### Link Mail Settings to Printing Configuration

* Open **Sales Multiple Printing Configuration**.
* Select the **Printing Configuration** attached to the desired series.
* Under **Print Options →.NET Printing Configuration**, choose the configuration in which you set up the mail settings.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FsNBsmwi2nEOb3PIzwLS9%2FDot%20net%20print.png?alt=media&#x26;token=083a4c53-af7f-4716-a62d-bba7cc0d570e" alt=""><figcaption></figcaption></figure>

***

### Implement the Setup

* Modify or create new a bill and click **Print**.
* Since we selected **Preview and Send**, the **Preview Window** opens.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FPsPIHlZGwJTpfS4gRNiN%2FPrint%20Preview.png?alt=media&#x26;token=5e31937a-86fe-4b3f-b8a9-50fc4237fecd" alt=""><figcaption></figcaption></figure>

* Simultaneously, the **Invoice PDF** is sent to the customer’s email.
* Check the customer’s mailbox — the invoice should be delivered successfully.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2F0MyLjv6fVJsmHiEoZaHu%2FEmail%20ID.jpg?alt=media&#x26;token=06a7a970-3ba1-44f5-a33a-783568fe89f2" alt=""><figcaption></figcaption></figure>

This ensures that every time a customer’s bill is generated, it is **printed and simultaneously emailed**.

***

### Bulk Emailing (Optional)

If your printing format is already designed in the **Sales Bill Print Designer**:

* Go to **Sales Bill Print Designer & Printing Window**.
* Select the desired configuration.
* From the **Search List**, choose the required bills.
* Lastly, Click on preview button.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FKk5Uv1Q3VMbyMVcCrJ2F%2FPre.png?alt=media&#x26;token=cece4cda-78dc-403c-9059-b11bbec942cd" alt=""><figcaption></figcaption></figure>

* You can even select **multiple bills at once**, and the system will automatically send PDF copies of all invoices to the respective customer emails in a single batch.

***

### Key Benefits

* Eliminates manual effort in emailing invoices.
* Ensures timely and consistent delivery of bills to customers.
* Supports both single-bill and bulk invoice emailing.
