TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Roopesh mk
NA
21
0
Transport failed to connect the server
Oct 21 2009 2:22 AM
I am using ASP.NET Application to send email from application. I specified SMTP Address. But still it shows transport failed to connect to the server.
Here is my code:
MailMessage
objMail
=
new
MailMessage
();
//mail message object to send email
objMail
.
From
=
fromeID
;
//geting from id
objMail
.
To
=
toAddress
;
objMail
.
Cc
=
""
;
//cc=null
objMail
.
Bcc
=
""
;
//Bcc=null
objMail
.
Subject
=
subject
;
//subject
objMail
.
Body
=
contents
;
//assigning body of the message
objMail
.
BodyFormat
=
MailFormat
.
Text
;
//mail format is a text
objMail
.
Priority
=
MailPriority
.
High
;
//seting the priority is high
SmtpMail
.
SmtpServer
=
ConfigurationSettings
.
AppSettings
[
"Mailserver_IP"
].
ToString
()
;
//geting mail server ip from web.config file
SmtpMail
.
Send
(
objMail
);
//sending the mail
please Replay ASAP
Reply
Answers (
1
)
How To Check The DropDown list
convertion of files