Solved

RE : SSIS mail task

Posted on 2011-03-11
4
497 Views
Last Modified: 2013-11-10
Hi,

Please help to let me know how can i send the attachments through Mail task in SSIS.

Attachment is placed under one folder in my disk and file name is dynamic so Mail task should pick up attachment path from my variable.

Thanks
0
Comment
Question by:rajneesh1978
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 6

Expert Comment

by:jonaska
ID: 35107912
You need to use Expressions. Look at the attached screencast.
jonaska-423645.flv
0
 
LVL 21

Accepted Solution

by:
Alpesh Patel earned 500 total points
ID: 35108380
Hi,

Save file path in Variable and assign it to FileAttachment in expression. Screen shot
0
 
LVL 21

Expert Comment

by:Jason Yousef, MS
ID: 35108760
Hello,
You can use the file watcher task to look for a specific EXTENSION and populate a variable with the file name and use that variable in the attachment expression as Patel Mentioned.

Please let me know if you need more info.
Thanks
Jason

file watcher task:  http://www.sqlis.com/post/file-watcher-task.aspx
0
 

Author Closing Comment

by:rajneesh1978
ID: 35178165
Thanks
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question