Sending email (ASP.NET 2.0)

Sending email (ASP.NET 2.0)

am 30.12.2007 20:36:34 von Fabri

Hi,

I am still new to .NET so, i'm sorry if my question is a bit too simple :-)

I would like to know what is the "best-practice-way" of sending email from
asp.net (VbScript). I want to make a "contact us" page for my website.

Tnx.

Re: Sending email (ASP.NET 2.0)

am 30.12.2007 20:46:42 von Fabri

PS:
I alreay have configured in web.config. I would like to use
these settings to send mail instead of defining smtp server and credentials
in aspx or source page:



userName="username" />



"Jack" wrote in message
news:eTDCPtxSIHA.4476@TK2MSFTNGP06.phx.gbl...
> Hi,
>
> I am still new to .NET so, i'm sorry if my question is a bit too simple
> :-)
>
> I would like to know what is the "best-practice-way" of sending email from
> asp.net (VbScript). I want to make a "contact us" page for my website.
>
> Tnx.
>

Re: Sending email (ASP.NET 2.0)

am 30.12.2007 21:16:22 von mark

"Jack" wrote in message
news:eTDCPtxSIHA.4476@TK2MSFTNGP06.phx.gbl...

> I would like to know what is the "best-practice-way" of sending email from
> asp.net (VbScript).

http://www.systemnetmail.com/


--
Mark Rae
ASP.NET MVP
http://www.markrae.net

RE: Sending email (ASP.NET 2.0)

am 31.12.2007 00:45:00 von pbromberg

You must mean VB.NET, not "VbScript" -- correct?
--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
MetaFinder: http://www.blogmetafinder.com


"Jack" wrote:

> Hi,
>
> I am still new to .NET so, i'm sorry if my question is a bit too simple :-)
>
> I would like to know what is the "best-practice-way" of sending email from
> asp.net (VbScript). I want to make a "contact us" page for my website.
>
> Tnx.
>
>
>

Re: Sending email (ASP.NET 2.0)

am 31.12.2007 13:36:23 von Fabri

Hi Peter,

Yes, its correct. Sorry for the mistake, just trying to upgrade myself from
classic asp to .net :-)

I have found solution to my problem.

Rgds.

"Peter Bromberg [C# MVP]" wrote in message
news:73FB59AB-A909-4160-A035-046547B235AF@microsoft.com...
> You must mean VB.NET, not "VbScript" -- correct?
> --
> Site: http://www.eggheadcafe.com
> UnBlog: http://petesbloggerama.blogspot.com
> MetaFinder: http://www.blogmetafinder.com
>
>
> "Jack" wrote:
>
>> Hi,
>>
>> I am still new to .NET so, i'm sorry if my question is a bit too simple
>> :-)
>>
>> I would like to know what is the "best-practice-way" of sending email
>> from
>> asp.net (VbScript). I want to make a "contact us" page for my website.
>>
>> Tnx.
>>
>>
>>

Re: Sending email (ASP.NET 2.0)

am 31.12.2007 16:31:36 von NoSpamMgbworld

You are missing the deliveryMethod attribute on the smtp tag. This can be
set to network, pickupDirectoryFromIis and specifiedPickupDirectory (which
you would have to state). In general, you will use network here. I am not
completely sure this is mandatory, but I always include it in my config.

The next thing to check is to ensure your smtp server/service allows you to
use it from this server. Since you are not using the local SMTP server, you
could have restrictions on the server you are using that does not allow you
to send messages through here.

In fact, if you are literally using my@email.com as your address, it is
likely you are being restricted as most servers will automatically filter
out messages from other domains. I would assume you are just using this as a
marker, so I will not go into too much detail. Just make sure the SMTP
server and the address are the same domain or have a network admin allow
from the other domain.

I personally prefer sending directly through our corporate exchange server,
but this may not be an option you have. It is really no different than SMTP,
as far as setup, but I have more troubleshooting ability.

With your SMTP server, you can examine the dump box (bad email box) and see
if your messages are getting stuck in there. If so, you have a configuration
problem on the SMTP server end. If, instead, you are receiving an error in
your code, you should post it.

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

*************************************************
| Think outside the box!
|
*************************************************
"Jack" wrote in message
news:ev6V5yxSIHA.5524@TK2MSFTNGP05.phx.gbl...
> PS:
> I alreay have configured in web.config. I would like to use
> these settings to send mail instead of defining smtp server and
> credentials in aspx or source page:
>
>
>
> > userName="username" />
>

>

>
> "Jack" wrote in message
> news:eTDCPtxSIHA.4476@TK2MSFTNGP06.phx.gbl...
>> Hi,
>>
>> I am still new to .NET so, i'm sorry if my question is a bit too simple
>> :-)
>>
>> I would like to know what is the "best-practice-way" of sending email
>> from asp.net (VbScript). I want to make a "contact us" page for my
>> website.
>>
>> Tnx.
>>
>
>

Need to check if the propery of an object exits

am 31.12.2007 22:35:18 von Adrian

Hi All,

Need to check if the propery of an object exits.

oMyObject.Message

In some cases the Message property may not exists. I know the GetType() can
do it.
How would you check it?

Thanks,

Joe