473,395 Members | 1,639 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

SMTP isn't working from aspx page

I'm trying to send email from an aspx page. Here is my code. It gives me an
error message
"Could not access 'CDO.Message' object."

What do I need to do? This is on my local machine and I installed SMTP
server and it is running. Operating system is Windows XP Professional

Private objMailMessage As New MailMessage
objMailMessage.From = "xx**@xxx.com"
objMailMessage.To = dvDataView(0)("Email")
objMailMessage.Subject = "Please take this survey."
objMailMessage.Body = "Dear " & sFirstName & " " & _
sLastName & "," & vbCrLf & _
"Please take this survey. Follow the link below. " & vbCrLf & " " & _
LinkToPage & _
"?ProjectNumber=" & sProjSeq & _
"&ProjectName=" & sProjName & _
"&Description=" & sDescription & _
"&Scorer=" & sScorer

SmtpMail.Send(objMailMessage)

--
Chris Davoli

Nov 19 '05 #1
3 1107
Hi Chris,

I don't see where you are identifying the smtp server.

Wouldn't it be something like

mail.SmtpMail.SmtpServer = "127.0.0.1"

BTW, there are a bunch of suggestions here for that error:

http://www.systemwebmail.com/faq/4.2.3.aspx#4.2.3

Ken
Microsoft MVP [ASP.NET]
"Chris Davoli" <Ch*********@discussions.microsoft.com> wrote in message
news:BC**********************************@microsof t.com...
I'm trying to send email from an aspx page. Here is my code. It gives me
an
error message
"Could not access 'CDO.Message' object."

What do I need to do? This is on my local machine and I installed SMTP
server and it is running. Operating system is Windows XP Professional

Private objMailMessage As New MailMessage
objMailMessage.From = "xx**@xxx.com"
objMailMessage.To = dvDataView(0)("Email")
objMailMessage.Subject = "Please take this survey."
objMailMessage.Body = "Dear " & sFirstName & " " & _
sLastName & "," & vbCrLf & _
"Please take this survey. Follow the link below. " & vbCrLf & " " &
_
LinkToPage & _
"?ProjectNumber=" & sProjSeq & _
"&ProjectName=" & sProjName & _
"&Description=" & sDescription & _
"&Scorer=" & sScorer

SmtpMail.Send(objMailMessage)

--
Chris Davoli

Nov 19 '05 #2
After specifying the Mail.SmtpMail.SmtpServer = "127.0.0.1"
I get the following error in the inner.inner exception:

"The message could not be sent to the SMTP server. The transport error code
was 0x800ccc15. The server response was not available

What can I do next?

--
Chris Davoli

"Ken Cox [Microsoft MVP]" wrote:
Hi Chris,

I don't see where you are identifying the smtp server.

Wouldn't it be something like

mail.SmtpMail.SmtpServer = "127.0.0.1"

BTW, there are a bunch of suggestions here for that error:

http://www.systemwebmail.com/faq/4.2.3.aspx#4.2.3

Ken
Microsoft MVP [ASP.NET]
"Chris Davoli" <Ch*********@discussions.microsoft.com> wrote in message
news:BC**********************************@microsof t.com...
I'm trying to send email from an aspx page. Here is my code. It gives me
an
error message
"Could not access 'CDO.Message' object."

What do I need to do? This is on my local machine and I installed SMTP
server and it is running. Operating system is Windows XP Professional

Private objMailMessage As New MailMessage
objMailMessage.From = "xx**@xxx.com"
objMailMessage.To = dvDataView(0)("Email")
objMailMessage.Subject = "Please take this survey."
objMailMessage.Body = "Dear " & sFirstName & " " & _
sLastName & "," & vbCrLf & _
"Please take this survey. Follow the link below. " & vbCrLf & " " &
_
LinkToPage & _
"?ProjectNumber=" & sProjSeq & _
"&ProjectName=" & sProjName & _
"&Description=" & sDescription & _
"&Scorer=" & sScorer

SmtpMail.Send(objMailMessage)

--
Chris Davoli


Nov 19 '05 #3
Check out the following KB article:

http://support.microsoft.com/default...b;en-us;186272

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Ambiguity has a certain quality to it.

"Chris Davoli" <Ch*********@discussions.microsoft.com> wrote in message
news:79**********************************@microsof t.com...
After specifying the Mail.SmtpMail.SmtpServer = "127.0.0.1"
I get the following error in the inner.inner exception:

"The message could not be sent to the SMTP server. The transport error
code
was 0x800ccc15. The server response was not available

What can I do next?

--
Chris Davoli

"Ken Cox [Microsoft MVP]" wrote:
Hi Chris,

I don't see where you are identifying the smtp server.

Wouldn't it be something like

mail.SmtpMail.SmtpServer = "127.0.0.1"

BTW, there are a bunch of suggestions here for that error:

http://www.systemwebmail.com/faq/4.2.3.aspx#4.2.3

Ken
Microsoft MVP [ASP.NET]
"Chris Davoli" <Ch*********@discussions.microsoft.com> wrote in message
news:BC**********************************@microsof t.com...
> I'm trying to send email from an aspx page. Here is my code. It gives
> me
> an
> error message
> "Could not access 'CDO.Message' object."
>
> What do I need to do? This is on my local machine and I installed SMTP
> server and it is running. Operating system is Windows XP Professional
>
> Private objMailMessage As New MailMessage
> objMailMessage.From = "xx**@xxx.com"
> objMailMessage.To = dvDataView(0)("Email")
> objMailMessage.Subject = "Please take this survey."
> objMailMessage.Body = "Dear " & sFirstName & " " & _
> sLastName & "," & vbCrLf & _
> "Please take this survey. Follow the link below. " & vbCrLf & "
> " &
> _
> LinkToPage & _
> "?ProjectNumber=" & sProjSeq & _
> "&ProjectName=" & sProjName & _
> "&Description=" & sDescription & _
> "&Scorer=" & sScorer
>
> SmtpMail.Send(objMailMessage)
>
> --
> Chris Davoli
>


Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Fernando M. | last post by:
Hi, i made a test with smtplib module a few days ago, for sending mails, and i was wondering if there's another module for running an SMTP server, so i could make a standalone script for sending...
2
by: Janna Deegan | last post by:
Hello all, First off, if there is a better place to post for an answer to this question, please feel free to point me there. I have some very strange behavior happening with my System.web.mail...
1
by: bivin | last post by:
hai i am requesting your technical support. please help me. i have been working with this for five days. the problem is relating with the smtp. i am trying to send an email from the asp.net...
9
by: Bob Jones | last post by:
We have developed a commercial ASP.net application (personal nutrition management and tracking); we want to send smtp email from within it. For our development box, we use WinXP Pro, IIS 5.5,...
34
by: antonyliu2002 | last post by:
I've set up the virtual smtp server on my IIS 5.1 like so: 1. Assign IP address to "All Unassigned", and listen to port 25. 2. Access Connection granted to "127.0.0.1". 3. Relay only allow...
4
by: =?Utf-8?B?dHBhcmtzNjk=?= | last post by:
I have a web page that at the click of a button must send a bunch (1000+) emails. Each email is sent individually. I have the code working fine, using Mail Message classes and smtp and all that. ...
5
by: =?Utf-8?B?TWlrZQ==?= | last post by:
Hi, I'm using this code for sending emails and its working fine because I had configured SMTP in my machine in IIS. now I'm using machine as a server for this application. but when running the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.