Sender
Sender
TAGS:
---------------------------------------
---------------------------------------
These Tags will work in Subject , From name , From email , Letter and Attachment
----------------------------------------
#BASE64EMAIL :To convert the email value to Base64 exampe ([email protected] => YWJjQHh5eC5jb20=)
==================================================================================================
1. "fromName":
fromName contain the name of sender, this filed also support tags e.g #DOMAIN
2. "subject":
Email subject will added against this field.
3. "attachment":
This filed can have 0 or 1. if value set to 0 email will be sent with out attachment
and attachment will be skipped from folder.
If attachment value set to 1 the sender automatically grab any single file from
attachment folder.
Note:
i. Attachment folder can only contain one file if there is more then one file it
will cause error or unusual behavior of sender.
ii. Attachment file cannot be a image e.g jpg, png etc. these files can be
corrupt after sending.
4. "attachmentName":
This filed contains the name for attachment file that we attach to our email. E.g (
if attachment file name is abc.txt and we want its name xyz.txt in email, we have
to write “xyx.txt” against attachmentName filed.
The default value for this filed is: “default”
i. if value is “default” then the file we are sending will be sent with it original
name.
5. "delaySec":
This filed contains time is seconds, this filed indicates the delay time between
each email sent by mailer.
Default value is 1 and sender send each mail with one second delay.
o Recommendations:
Please not try to decrease value from 1 because it will increase the
threshold on SMTP server and can cause SMTP Dead error.
6. "headerPriority":
This field indicates the Header Priority its value can be set 1, 2, and 3.
1=>low, 2=>normal, 3=>high
1 => if value set to 1 it is the lowest priority setting and email priority will set to
low in inbox.
2 => if value set to 2 it is the normal setting for each inbox and email will be sent
with default configuration.
3=> if value set to 3 it is the Highest priority setting and email priority will set to
highest in inbox.
7. "letterType":
There are 3 type of letter types in mailer
o 0 => letter.txt
o 1=> letter.html
o 2=> embedded.html
8. "SMTP":
Its value can be 0 or 1
If 1 the mailer use SMPT to send email.
Note: mailGun ,SMTP and Sendin Blue value cannot be set to 1 at the same time it
will stop mailer and you have specify only SMTP value to 1 to use SMTP and 0 for
mailGun to disable mailGun function.
9. "mailGun":
Its value can be 0 or 1
If 1 the mailer use mailGun to send email.
Note: mailGun ,SMTP and Sendin Blue value cannot be set to 1 at the same time it
will stop mailer and you have specify only mailGun value to 1 to use mainGun and
0 for SMTP to disable SMTP function.
Important Note:
Mail gun does not support embedded image functionaly. Only letter type 0
and 1 will work using mailGun.
10."sendInBlue":
Its value can be 0 or 1
If 1 the mailer use Send In Blue Api_key to send email.
Note: mailGun ,SMTP and Sendin Blue cannot be set to 1 at the same time it will
stop mailer and you have specify only mailGun value to 1 to use mainGun and 0
for SMTP to disable SMTP function.
Important Note:
Mail gun does not support embedded image functionaly. Only letter type 0
and 1 will work using mailGun.
SMTP Configration
smtp_config.json
smtp_config file contains smtp data that we use for sending emails
we can add more than one smtp in smtp_config file. As sample picture attached above Mailer
will check smtp one by one and use which is active and working.
1. "fromEmail":
This filed contain the email address that is used to send email provided by SMTP,
MailGun or Sendin Blue
2. Secure:
Secure value can only be true if we use port 465 otherwise it will remain false.