Click here to Skip to main content
15,887,267 members
Please Sign up or sign in to vote.
1.00/5 (5 votes)
See more:
VB
Set myMail=CreateObject("CDO.Message")
myMail.Subject="Sending email with CDO"
myMail.From="mymail@mydomain.com"
myMail.To="someone@somedomain.com"
myMail.HTMLBody = "<h1>This is a message.</h1>"
myMail.Send
set myMail=nothing
Posted
Updated 28-Jun-12 9:43am
v2
Comments
Sergey Alexandrovich Kryukov 28-Jun-12 15:31pm    
Who needs to pleh asase what?

Here is what I think, my friend: Get a big fat vote of "1" and a report for abuse from me. And think about a bit more respectful behavior. You are the one who is interested in that the most. Who will take you seriously if you post such stuff so carelessly? How anyone can hope that you can use some help, after reading a post like this one?

--SA
Sergey Alexandrovich Kryukov 28-Jun-12 15:34pm    
One more thing: I noticed that you answered your own questions couple of time. But that were not even answered: you just commented your question this way. This is not acceptable (marked as "not an answer", removed), but even more wonderful thing is this: you even formally accepted those "answers" with a green button. Why?! No good, you see?
--SA
R. Giskard Reventlov 28-Jun-12 15:44pm    
Does it work for you? Do you have an actual problem or error you need help with?

1 solution

It looks like you are trying to use the old ASP method of sending email in your code. It looks very similar to something like this:

http://www.w3schools.com/asp/asp_send_email.asp[^]

Instead, since you are using the .NET framework, you can take advantage of the updated libraries. Here are a couple examples of doing so:

http://www.4guysfromrolla.com/articles/072606-1.aspx[^]
Send Email in ASP.Net 2.0 - Feed back Form[^]
 
Share this answer
 
Comments
Gbenbam 4-Jul-12 12:06pm    
I know that that is the old approach. What I wish to know is whether it will work in asp.net code or not.
Tim Corey 4-Jul-12 12:43pm    
Have you tried it? What error did you get?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900