General discussion

Locked

Sending e-mail via ASP.NET

By MaryWeilage Editor ·
This week's .NET e-newsletter describes how to send e-mail via ASP.NET. Does your site allow visitors to e-mail your company? If not, do you think you'll use the tips described in this e-newsletter to configure your server properly to send e-mail via ASP.NET?

If you aren't subscribed to the free .NET e-newsletter, you can automatically subscribe to it by pasting the following URL into your browser:
http://nl.com.com/MiniFormHandler?brand=builder &subs_channel=bldr_front_door&list_id=e605&tag=fb

* Please delete any extra spaces that appear when you paste this URL into your browser.

This conversation is currently closed to new comments.

4 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Parser Error

by WebGuyBob In reply to Sending e-mail via ASP.NE ...

As with many other new developers, I learn by example. I'm eager to learn about emailing form data as part of my quest. I was trying to put together and test the code from the email, using the appropriately named codebehind file Email.aspx.cs.

I received the following error (Line 1 was highlighted as the error in my browser):

***** Start Error Message *****
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Could not load type 'BuilderExamples.Email'.

Source Error:

Line 1: <%@ Page language="c#" Codebehind="Email.aspx.cs" AutoEventWireup="false" Inherits="BuilderExamples.Email" %>
Line 2: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
Line 3: <HTML><HEAD>


Source File: c:\inetpub\wwwroot\sz8x2l\EmailWebForm.aspx Line: 1


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573
***** End Error Message *****

At this point, I am not familiar with "Inherits", but it seems like I need a "BuilderExamples.Email" file of some sort. Any help, pointer or URLs for .NET web form email tutorials would be greatly appreciated.

TIA,

Bob

Collapse -

mailto: can lead to email harvesting

by organicglenn In reply to Sending e-mail via ASP.NE ...

From what I understand, email harvesters(spammers) scour web pages looking for email addresses. If it finds an <a href="mailto:" it's probably gonna be able to harvest that email address. I saw an interesting technique that replaces some characters with their ASCII character codes so that "mailto:" is not in the HTML. Spammers are smart, this may not work, but it seems like a good idea over the normal "mailto:"

"<a href="mailto:emailaddy@domainname.com">Send an Email</a>"

Collapse -

Harvesting

by WebGuyBob In reply to mailto: can lead to email ...

Glenn,

The discussion that this article was trying generate was how to avoid such harvesting by using ASP.NET. Here again, I was hoping that the TR community would step up and share some of their experiences, best practices, and hopefully full code/file examples. :-)

Rgds,

Bob

Collapse -

What about scenario where you don't want Smtp on iis box

by jharm In reply to Harvesting

Hi,
In article 3 setup scenarios are documented . I would very much have liked to see setup explained where you don't want to put smtp onto iis machine but want to sent all mails from iis through a machine which has smtp installed.
Also code showing how to do.

John

Back to Web Development Forum
4 total posts (Page 1 of 1)  

Related Discussions

Related Forums