I've implemented this code into my VB.Net 2005 application. I intend to deploy my app to many workstations on my network so that they may email me by clicking a button on my application. How do I set the From address to be dynamic, ie. to automatically pickup
the current user's email address (from Outlook?)?
I hope that you can help me, cos I have looked everywhere and tried everything I could think of so I got this link from Microsoft South Africa...
Application background:
I am righting (in C#) a electronic filing system that works via a windows service and checks a POP3 server every 60 seconds for mail and then by reading the subject line it either stores or retrieves documentation. EG. File policy (1234) or Retrieve Policy
(1234)... All works great, but when they retrieve documentation I must wrap the saved email body with its attachments as one attachment (Content-Type: message/rfc822) to my outgoing email for there can be one or many emails that was saved to that reference
number, and when one adds all the bodies and attachments as attachments it is very confusing for the end users..(this is Africa you know...)
So I want to be able to add children to my parent email and the children must be attachments...
Even if you have some source code that builds the raw email in mime it will help me because I studied the raw Mime up and know how it works by now but can not get it to work as I only get a empty mail on the other side when I build it up as raw Mime... (I
can send you my code if you need to look at it)
I thank you in advance for taking the time to look at my request!
JDMils5
Member
2 Points
1 Post
Re: HOW TO: Send email using System.Net.Mail
Jul 23, 2007 07:36 AM|LINK
I've implemented this code into my VB.Net 2005 application. I intend to deploy my app to many workstations on my network so that they may email me by clicking a button on my application. How do I set the From address to be dynamic, ie. to automatically pickup the current user's email address (from Outlook?)?
Johnny be go...
Member
2 Points
1 Post
Re: HOW TO: Send email using System.Net.Mail
Aug 01, 2007 12:01 PM|LINK
Hallo all
I hope that you can help me, cos I have looked everywhere and tried everything I could think of so I got this link from Microsoft South Africa...
Application background:
I am righting (in C#) a electronic filing system that works via a windows service and checks a POP3 server every 60 seconds for mail and then by reading the subject line it either stores or retrieves documentation. EG. File policy (1234) or Retrieve Policy (1234)... All works great, but when they retrieve documentation I must wrap the saved email body with its attachments as one attachment (Content-Type: message/rfc822) to my outgoing email for there can be one or many emails that was saved to that reference number, and when one adds all the bodies and attachments as attachments it is very confusing for the end users..(this is Africa you know...)
So I want to be able to add children to my parent email and the children must be attachments...
Even if you have some source code that builds the raw email in mime it will help me because I studied the raw Mime up and know how it works by now but can not get it to work as I only get a empty mail on the other side when I build it up as raw Mime... (I can send you my code if you need to look at it)
I thank you in advance for taking the time to look at my request!
Kind regards