WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

View Poll Results: What is your C# programming level?
What is C# anyways? 20 20.41%
I can just about figure it all out. 34 34.69%
I'm pretty good, actually. 42 42.86%
There's nothing I don't know about C#... 2 2.04%
Programmers worship me - I'm like a god to them! 0 0%
Voters: 98. You may not vote on this poll

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-05-2003, 03:37 PM
WebProWorld New Member
 

Join Date: Nov 2003
Location: United Kingdom
Posts: 7
ed.quinn RepRank 0
Default ASP.NET C# e-mail form code

I use ASP.NET and C# with a project I am working on at the moment. The .NET Framework has an SmtpMail class built into it which works really well.

I wrote some code to send an e-mail when I get a PayPal IPN response and it took less than an hour to implement.

Code:
            MailMessage message = new MailMessage();
            message.From = from;
            message.To = to;
            message.Subject = subject;
            message.Body = body;
            message.BodyFormat = bodyFormat;
        
        
            SmtpMail.SmtpServer = smtpServer;
            SmtpMail.Send(message);
All you need to do is add your own information to the variables.

If anyone would like any further information about this or any other C# question, I'll try and answer it for you!

Cheers,
Ed
__________________
e-centrix Limited
-----------------
http://www.e-centrix.com
Reply With Quote
  #2 (permalink)  
Old 11-09-2003, 09:08 AM
Nargule's Avatar
WebProWorld Member
 

Join Date: Nov 2003
Location: Gainesville, FL, USA, Earth, MilkyWay
Posts: 84
Nargule RepRank 0
Default Poll

There is a big gap in your poll. I know what c# is but I am far from "I can just about figure it all out".
__________________
Tom Corwine

Please review my site at http://www.santaslane.com?source=WebPro
and be sure to check out http://www.corwine.tv <--- It's fixed now.
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Tags: , , ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Search Engine Optimization by vBSEO 3.2.0