Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional 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 September 28th, 2007, 07:50 AM
Authorized User
 
Join Date: Apr 2007
Posts: 61
Thanks: 0
Thanked 0 Times in 0 Posts
Default Email in ASP.NET

Hello Everyone,

I want to send the email through my ASP.NET project. And it's working at localhost when i'm taking the SMTP Server as "127.0.0.1" but when i'm uploading this project on server it's throwing me an error "could not access cdo.Message object" . still i've taken my SMTPServer not as "127.0.01" but still it's throwing an error

Here is my coding


MailMessage mail1=new MailMessage();

mail1.To=txtEmail.Text;

mail1.From="[email protected]";

mail1.Subject="Auto Responder";

mail1.Priority=MailPriority.High;

mail1.BodyFormat=MailFormat.Html;

mail1.Body="Thanks for the Enquiry "+"
"+"We'll get you soon"+"
"+"------------------"+"
"+"Thanks & Regards"+"
"+"Priveejets Team";


SmtpMail.SmtpServer="[email protected]"

//SmtpMail.SmtpServer="127.0.01";

SmtpMail.Send(mail1);


 
Old September 28th, 2007, 07:57 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

I dont believe this is a valid smtp server address: "[email protected]" it is probably something like mail.saamstesting.com.

hth.

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
Technical Editor for:
Professional Search Engine Optimization with ASP.NET
Professional IIS 7 and ASP.NET Integrated Programming
Wrox Blox: Introduction to Google Gears
Wrox Blox: Create Amazing Custom User Interfaces with WPF and .NET 3.0
================================================== =========





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Sending an email in asp.net 2.0 using C# Bashu C# 2005 4 August 14th, 2007 03:29 AM
Email in asp.net asif_sharif ASP.NET 1.0 and 1.1 Professional 4 September 21st, 2006 07:31 AM
Email in asp.net asif_sharif ASP.NET 1.0 and 1.1 Basics 0 January 3rd, 2006 11:48 AM
the email of asp.net calvinpost ASP.NET 1.x and 2.0 Application Design 3 March 28th, 2004 09:53 AM





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