Solved

ASP CDO.Message

Posted on 2009-05-13
6
437 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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 31

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 31

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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
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…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

630 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