Wednesday, March 28, 2018

Executable/Tool to Send Email as HTML with Attachment & Embedded Picture

Today I am sharing a Tool/exe to send email from anywhere instantly!

always we so redundant task/ write code for the same like email sent, which is frequently used to automate a system and notify the progress... for what I have created an executable to send mail from everywhere.

Please click here to download the executable: Send_Email.zip
also, you can download the source code, click here!

Look at the below image for the options to use. YES, you can attach embedded an image with the mail!

you can get this help message by executing Send_Email.exe without any parameter

  • Send_Email.exe [no parameter]

Send Email Options
Let's see how do I use this tool to send a mail. it's very easy!

The first example is to send a simple mail with an attachment

  • Send_EMail.exe "m:SMTP_SERVER_ADDRESS" "to:saiful024@gmail.com" "s:testsubject" "b:Test Body" "fm:saiful.azam@bd.imshealth.com" "a:C:\TEST_ATTACHEMENT.txt"

you can write the body as HTML body


    • Send_EMail.exe "m:SMTP_SERVER_ADDRESS" "to:saiful024@gmail.com" "s:testsubject" "b:<b>Test Body</b>" "fm:saiful.azam@bd.imshealth.com" "a:C:\TEST_ATTACHEMENT.txt"
    also you can add pic to the mail
    • Send_EMail.exe "m:MAIL_SERVER_ADDRESS" "to:saiful024@gmail.com" "s:testsubject" "b:Test <b>Body</b><br><img src=cid:IQVIA >" "fm:saiful.azam@bd.imshealth.com" "a:C:\TEST_ATTACHEMENT.txt" "p:C:\IQVIA.jpg"
    NOTE: you can use "user:USER_NAME" & "pass:PASSWORD" options to provide the SMTP authentication.
    • Send Mail with Embedded Pic and Attachment
    Send Email Command

    No comments:

    Post a Comment