Solved

ASP CDO.Message

Posted on 2009-05-13
6
432 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
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 Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

895 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now