Requirement – Task scheduler to send any file as attachment.
Prerequisite – Should have SMTP details for any available email service
Resolution – Task scheduler has send email option, which is not helpful and people face many issues.
sendEmail is one utility, which can be used to fulfill the need. Download this executable file and save at system.
- Create a task in scheduler
- Select action- Run a program
- Start in (optional)=path of sendEmail.exe in your system
- Add arguments (Optional) – provide mailing details as mentioned below -
-f sandeep19rm@gmail.com -u Test Email -m Here is the Email Option! -a sandeep.txt -t sandeep@oalearning.com -cc learning@oalearning.com -s smtp.gmail.com:587 -xu username@gmail.com -xp password -o tls=yes
Options :
-f
|
From Email Address
|
-u
|
Mail Subject
|
-m
|
Mail Body
|
-a
|
Attachment file name
|
-t
|
To Email Address
|
-cc
|
CC Email Address
|
-bcc
|
BCC Email Address
|
-s
|
SMTP details (server:port)
|
-xu
|
Username
|
-xp
|
Password
|
-o
|
Mailing options
|
No comments:
Post a Comment