Bulk Mailer

This project contains API to use swing based interface to send bulk mails

License

License

GroupId

GroupId

com.arpitram
ArtifactId

ArtifactId

bulkmailer
Last Version

Last Version

1.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

Bulk Mailer
This project contains API to use swing based interface to send bulk mails
Project URL

Project URL

https://github.com/imarg3/bulk-mail-sender
Source Code Management

Source Code Management

http://github.com/imarg3/bulk-mail-sender

Download bulkmailer

How to add to project

<!-- https://jarcasting.com/artifacts/com.arpitram/bulkmailer/ -->
<dependency>
    <groupId>com.arpitram</groupId>
    <artifactId>bulkmailer</artifactId>
    <version>1.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/com.arpitram/bulkmailer/
implementation 'com.arpitram:bulkmailer:1.0.1'
// https://jarcasting.com/artifacts/com.arpitram/bulkmailer/
implementation ("com.arpitram:bulkmailer:1.0.1")
'com.arpitram:bulkmailer:jar:1.0.1'
<dependency org="com.arpitram" name="bulkmailer" rev="1.0.1">
  <artifact name="bulkmailer" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.arpitram', module='bulkmailer', version='1.0.1')
)
libraryDependencies += "com.arpitram" % "bulkmailer" % "1.0.1"
[com.arpitram/bulkmailer "1.0.1"]

Dependencies

compile (3)

Group / Artifact Type Version
javax.activation : activation jar 1.1.1
javax.mail : javax.mail-api jar 1.6.0
com.sun.mail : javax.mail jar 1.6.0

test (4)

Group / Artifact Type Version
org.junit.jupiter : junit-jupiter-engine jar 5.5.2
org.mockito : mockito-junit-jupiter jar 3.6.0
org.powermock : powermock-module-junit4 jar 2.0.2
org.powermock : powermock-api-mockito2 jar 2.0.2

Project Modules

There are no modules declared in this project.

Maven Central

Bulk Mail Sender Application

This software requires Java to be installed on your machine. So first check whether java is installed or not in your machine using command :

java -version

Requirements

You should have proper SMTP configuration in place in order to send emails. To test your SMTP server working, run command:

telnet smtp.host.in 25

Change your SMTP hostname instead of smtp.host.in & verify port 25 as well.

Now, create configuration setting file, eg., config.properties as per your mail server and provide proper details below:

  • fromMailID (From Email ID)
  • host (SMTP Server Host name)
  • port (SMTP Server Port)
  • delayTimeInSec (Delay Time after sending multiple emails as per sent mail count)
  • afterSentMailCount (Total sent mails after application should have to wait)
  • username (Valid email id / username for authentication purpose)
  • password (Valid password for authentication purpose)

You can set delayTimeInSec as per your mail server settings or leave it to 0, if you have no idea. Similarly, when you send bulk mails, it is often recommended defining mail counts after which application will wait. So you can define this mail count afterSentMailCount. If you do not have any idea, define 30 or 50 depending upon total mails you are going to send.

NOTE : You should contact your Mail administrator for these settings.

Usage :

Use the interface from your application :

public static void main(String[] args) {

    try {
        String mailConfigFile = "config.properties";
        java.awt.EventQueue.invokeLater(() -> new SendMailFrame(mailConfigFile).setVisible(true));
    }
    catch (Exception e) {
        e.printStackTrace();
    }
}

Execute application

When you run application on your machine, an interface will be popped out, and you need to provide following details :

  • TO (mandatory): select file containing valid email ids. All email ids should be comma separated or in new line.
  • CC (optional): select file containing valid email ids. All email ids should be comma separated or in new line.
  • Subject (mandatory): Email Subject Line
  • Content (mandatory): Email Content
  • Attachment (optional): Optional Attachment file

Supported File Type : Text file (.txt), Excel & CSV

Mail Status

When all the emails are sent, you will notify with "Mails Sent successfully" message. In case of any errors, kindly refer to output file.

After a successful message, you may either take backup of output.txt or empty the output.txt file content.

Versions

Version
1.0.1
1.0.0