|
|
|
Valued Member
      
Group: General Forum Members
Last Login: Tuesday, May 14, 2013 12:14 AM
Points: 62,
Visits: 358
|
|
Hi Guys,
I am working on SSIS packge where I want to save mail files(.msg) coming from Mail Server along with attachment using SSIS 2005 Kindly provide links if its possible...
Thanks & Regards, Bhushan
|
|
|
|
|
SSChampion
        
Group: General Forum Members
Last Login: Yesterday @ 4:59 PM
Points: 11,792,
Visits: 28,078
|
|
I've done this in code in vb.net/c#.net, where you pull messages from an SMTP server, and then you can do what you want with them: delete them off the mail server, save the messages, save the attachments, etc.
I would reckon in SSIS you'll have to put the same code in place; i don't remember seeing a component to read email directly.
you could also create some CLR methods to do the same work as well, since it's the same code.
Lowell
--There is no spoon, and there's no default ORDER BY in sql server either. Actually, Common Sense is so rare, it should be considered a Superpower. --my son
|
|
|
|
|
Valued Member
      
Group: General Forum Members
Last Login: Tuesday, May 14, 2013 12:14 AM
Points: 62,
Visits: 358
|
|
SSIS have "Script Task Component" where scripting language used is "Microsoft Visual Basic .NET" 2005 Could you please fwd me code link so to check in SSIS package ??
|
|
|
|
|
SSChampion
        
Group: General Forum Members
Last Login: Yesterday @ 4:59 PM
Points: 11,792,
Visits: 28,078
|
|
i googled "vb.net read pop3 mail" and got lots of hits for code examples; switch it around if you are more comfortable with C#, but the code is pretty basic. I'm not familiar enough with SSIS to give you a copy-paste example yet that I know you could use.
Lowell
--There is no spoon, and there's no default ORDER BY in sql server either. Actually, Common Sense is so rare, it should be considered a Superpower. --my son
|
|
|
|
|
Valued Member
      
Group: General Forum Members
Last Login: Tuesday, May 14, 2013 12:14 AM
Points: 62,
Visits: 358
|
|
| I don't want SSIS code what I want is Visual basic ASP.net 2005 code where save mail files (.msg) along with attachment is handled. Rest i will do in SSIS package.. Can you help me in this...??
|
|
|
|
|
SSCarpal Tunnel
       
Group: General Forum Members
Last Login: Today @ 1:39 AM
Points: 4,328,
Visits: 9,667
|
|
bhushan_juare (9/5/2012) I don't want SSIS code what I want is Visual basic ASP.net 2005 code where save mail files (.msg) along with attachment is handled. Rest i will do in SSIS package.. Can you help me in this...??
This is an SSIS forum. You should look for this type of help elsewhere.
____________________________________________________________________________________________
Help us to help you. For better, quicker and more focused answers to your questions, consider following the advice in this link:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
If you are asking for help and your post does not contain a question, you should expect responses which do not contain any answers. Put a question mark in there somewhere - it's not rocket science.
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Sunday, June 09, 2013 7:39 AM
Points: 1,106,
Visits: 2,120
|
|
bhushan_juare (9/5/2012) Hi Guys,
I am working on SSIS packge where I want to save mail files(.msg) coming from Mail Server along with attachment using SSIS 2005 Kindly provide links if its possible...
Thanks & Regards, Bhushan
If you can use third-party solutions, check the commercial COZYROC Receive Mail Task. It allows you to download message from email server using one of these protocols: IMAP, Exchange and POP3 and also extract the attachments from the message. No programming skills are required.
--- SSIS Tasks Components Scripts Services | http://www.cozyroc.com/
|
|
|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: 2 days ago @ 2:10 PM
Points: 35,
Visits: 84
|
|
If you have the .msg already somewhere and want to save it else......should be simple in ssis using FST.
But , lets say, if you want to extract .msg from outlook server, yes, then you will have to write code in a script task and then save the file manually in your script task.
|
|
|
|