Wrox Programmer Forums
|
.NET Framework 2.0 For discussion of the Microsoft .NET Framework 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Framework 2.0 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 13th, 2004, 03:53 AM
Authorized User
 
Join Date: Aug 2004
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default Not able to send a mail

When i'm sending my mail in .NET Webapplication i donot recieve any error but also i'm not recieving it where is it going.I have put the code in Try-catch and it is sucessfully executed.

 
Old October 13th, 2004, 03:58 PM
Authorized User
 
Join Date: Mar 2004
Posts: 61
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have just managed to get my email working using VB .NET from my web application. Show us the code you are using.

Regards

Kerry O'Carroll
 
Old October 13th, 2004, 04:27 PM
Authorized User
 
Join Date: Mar 2004
Posts: 61
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I forgot to mention, I use .NET Framework 1.1 but you are using 2.0

Here is a subset of the code I use and it works.

Dim email As New System.Web.Mail.MailMessage
email.To = "[email protected]"
email.From = "[email protected]"
email.Subject = "any subject"
email.Body = "Body of email"
email.BodyFormat = Web.Mail.MailFormat.Text
System.Web.Mail.SmtpMail.Send(email)


Kerry O'Carroll
 
Old October 18th, 2004, 06:10 AM
Authorized User
 
Join Date: Aug 2004
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'm also using the same code. see it is not giving error but i'm not recieving it on any mailID or any folder

 
Old October 20th, 2004, 12:21 AM
Authorized User
 
Join Date: Aug 2004
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default

ocaroll can u tell me why u have appendeed ".net.au " to ur mail id's i tried this also but it is not working.

 
Old November 16th, 2004, 03:56 AM
Registered User
 
Join Date: Nov 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Did you check your smtp service on your machine






Similar Threads
Thread Thread Starter Forum Replies Last Post
Send mail and attachments with PHP mail function Lofa Beginning PHP 1 June 2nd, 2008 03:24 PM
send mail chavakoti BOOK: Professional SQL Server 2005 Integration Services ISBN: 0-7645-8435-9 1 September 4th, 2007 05:03 AM
How to send mail Jolley_tolson PHP How-To 0 August 13th, 2007 03:38 AM
Cannot send mail rajanikrishna JSP Basics 3 March 17th, 2006 01:39 AM
The mail can't be send jabby General .NET 2 September 8th, 2004 05:14 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.