Solved

ASP CDO.Message

Posted on 2009-05-13
6
434 Views
Last Modified: 2012-05-06
Dear Experts

I need to create CDO.Message for my web site.
I use ASP

I need a very good example for it?
could you please provide me one?
thank you
0
Comment
Question by:Braveheartli
  • 3
  • 2
6 Comments
 
LVL 12

Assisted Solution

by:GuitarRich
GuitarRich earned 350 total points
ID: 24373293
asp.net or asp classic?
this is classic:
<%
Set myMail=CreateObject("CDO.Message")
myMail.Subject="Sending email with CDO"
myMail.From="mymail@mydomain.com"
myMail.To="someone@somedomain.com"
myMail.TextBody="This is a message."
myMail.Send
set myMail=nothing
%>
 
and .net
 MailMessage mail = new MailMessage();

mail.To = "receivers@email.address";
mail.From = "senders@email.address";
mail.BodyFormat = MailFormat.Text;
mail.Subject = "Subject of this Email";
mail.Body = "Body of this message.";

SmtpMail.Send(mail);
0
 
LVL 12

Assisted Solution

by:GuitarRich
GuitarRich earned 350 total points
ID: 24373295
0
 
LVL 1

Author Comment

by:Braveheartli
ID: 24373342
I use classic one,
but where is the section for username and password?
where is the SMTP address?
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
LVL 12

Accepted Solution

by:
GuitarRich earned 350 total points
ID: 24373356
have a look at this page - there are a number of examples here http://www.w3schools.com/asp/asp_send_email.asp
 
0
 
LVL 30

Assisted Solution

by:Wayne Barron
Wayne Barron earned 150 total points
ID: 24373389
check out #3

http://www.powerasp.com/content/new/sending_email_cdosys.asp

Have a good one.
Carrzkiss
0
 
LVL 30

Expert Comment

by:Wayne Barron
ID: 24373905
@Braveheartli: >> but where is the section for username and password?

If you was wanting the Username and Password sections.
The don't you think that mine should have been the Accepted?
Considering that it was the only one that had the information provided?

Anyway, no big deal. We all pitched it right? Right.
For anyone that comes in here and wants the code that uses the
"Username & Password" Please view my post here: http:Q_24404170.html?cid=235#24373389

Have a good one all.
Carrzkiss
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Expression Evaluater 3 38
Correct and Effective way to generate pdf files online via JavaScript or ASP.Net? 6 61
ASP.NET (VB) return a record 2 40
ASP exit 10 20
I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question