Read SMTP email using ASP.NET and IIS

P

peter smith

Hi all.

We already use the SMTP features in .NET for sending SMTP email, but how can
you receive SMTP email using the .NET framework. Basically we need to catch
email from a given address and then invoke our business processes. Any help
or a direction to the right article would be great. We need to work with the
SMTP service installed with IIS.

Thanks :)
 
A

Aidy

SMTP is for sending email and pop3 for receiving it. You could use a .net
pop3 component someone else has already written or write your own.
 
A

Angel

<script type ="text/javascript">
var win=null;

function NewWindow(mypage,myname,w,h,scroll,pos){

if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}

if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}

else if((pos!="center" && pos!="random") ||
pos==null){LeftPosition=0;TopPosition=20}

settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
win=window.open(mypage,myname,settings);}
// Put this in your onclick event

function PopUpWnd()
{
var pg = document.getElementById("id")

NewWindow("CurrencyPage.aspx","abc", 350, 360, "No", "center")
}

</script>


You wire it something like this

<input id="btnChgCurrency" runat="server" type="button" value="Change
Currency" onclick="PopUpWnd()" name="btnChgCurrency" />
 
P

peter smith

Thanks Aidy.

I knew i was being a dope!!! Okay now by brain is back on track.

Thanks
Paul
 
C

Cowboy \(Gregory A. Beamer\)

You can read from a server using Pop3. Here is one example:
http://www.developerfusion.co.uk/show/4071/

I am certain there are some pre-made, third party components, as well.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

*************************************************
| Think outside the box!
|
*************************************************
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top