Wrox Programmer Forums
|
ASP CDO As of Oct 5, 2005, this forum is now locked. No posts have been deleted. Please use "Classic ASP Professional" at: http://p2p.wrox.com/forum.asp?FORUM_ID=56 for discussions similar to the old ASP Pro Code Clinic or one of the other many remaining ASP and ASP.NET forums here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP CDO section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 9th, 2004, 05:16 AM
Friend of Wrox
 
Join Date: May 2004
Posts: 105
Thanks: 0
Thanked 0 Times in 0 Posts
Default Sending e-mail with ASP

Hello guyz...

I`d like to know how easy is to send e-mail with ASP.

Also I`d like to know if I should install some apps on my pc in order to do that. If so... which apps do I have to install?

The pc I`m using is working in a LAN network and I`m using a server in order to browse internet. So... my last question is... is it possible for me to make an ASP page that will send e-mails without configure settings to the server of my network????

!Thank you in advance!
 
Old September 9th, 2004, 05:35 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

You can use CDONTS or CDOSYS. Make sure that you install SMTP service on your web server(that runs IIS).

Check these links for samples and instructions

Send Mail
ASP Sending e-mail with CDO

Hope that helps.
Cheers!

_________________________
- Vijay G
Strive for Perfection
 
Old September 9th, 2004, 05:41 AM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 331
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to qazi_nomi
Default

You can also use the aspemail from

www.aspemail.com


(*_*)




Numan
--------------------------------------------------
Love is the most precious thing of this world. So find and grab it!
 
Old September 9th, 2004, 05:55 AM
Friend of Wrox
 
Join Date: May 2004
Posts: 105
Thanks: 0
Thanked 0 Times in 0 Posts
Default

<%
Set myMail=CreateObject("CDO.Message")
myMail.Subject="Sending email with CDO"
myMail.From="[email protected]"
myMail.To="[email protected]"
myMail.TextBody="This is a message."
myMail.Send
%>

ok... this is something very simple which I`ve already tried but it doesn`t work.
I`ve already installed "Default SMTP Virtual Server" on my machine. But should I change some settings??

I remind you again that there is a server which I use in order to get connected to the internet.
 
Old September 9th, 2004, 07:40 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
Default

It's not something I've done very often, but I access the "Default SMTP Virtual Server Properties" dialog and set the options on the Advanced button of the Delivery tab.
What *you* set them to depends on your LAN mail set-up. Try setting the "fully-qualified domain name" to your company's domain, and the "smart host" to your mail server - that's what I do!

hth
Phil
 
Old September 9th, 2004, 07:57 AM
Friend of Wrox
 
Join Date: May 2004
Posts: 105
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you for your reply...

I`m sure that my problem will be solved if I `ll change this settings. But i`m not able to know the "fully-qualified domain name" amd the "smart host" of my mail server.
So if I use a pc with a dial-up connection should I do something with these settings? If so... what should I do?
 
Old September 9th, 2004, 09:14 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
Default

To be honest I don't really know what you should do for dial-up.

I would guess you should use the same settings as your e-mail client (Outlook Express or whatever you use - check the settings under the account you usually use to get your e-mails). For example:
"fully-qualified domain name" = yourISP.com
"smart host" = your_ISP_Outgoing_SMTP_Server





Similar Threads
Thread Thread Starter Forum Replies Last Post
Sending Mail Using CDOSYS in ASP artarasan Classic ASP Basics 1 May 12th, 2008 06:11 PM
sending mail in asp.net2.0 sen22 ASP.NET 2.0 Basics 2 March 3rd, 2007 07:14 AM
Sending mail using asp.net 2.0 Roinka ASP.NET 2.0 Basics 0 May 15th, 2006 08:22 AM
Sending E-mail with ASP Varg_88 Classic ASP Basics 7 September 10th, 2004 09:24 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.