Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

ASP CDO.Message

Posted on 2009-05-13
6
Medium Priority
?
438 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 1400 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 1400 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 12

Accepted Solution

by:
GuitarRich earned 1400 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 600 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

Independent Software Vendors: 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!

Question has a verified solution.

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

Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

722 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