Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics 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, 07:42 AM
Friend of Wrox
Points: 486, Level: 7
Points: 486, Level: 7 Points: 486, Level: 7 Points: 486, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2004
Location: Athens, , Greece.
Posts: 105
Thanks: 0
Thanked 0 Times in 0 Posts
Default Sending E-mail with ASP

Hello Guyz...

I have used the following code:

<%
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
%>

But something is not working because the e-mail is not sent. I`ve already installed to my machine "Default SMTP Virtual Server". Should I change some settings to it?
Note, that I`m using a "proxy server" in order to connect to the internet. Is this a problem??? Should I also change some settings to that "proxy server"?

Thank you in advance!!!
 
Old September 9th, 2004, 07:52 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: , , USA.
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Make sure the correct ports are open. Also, make sure SMTP is running.

 
Old September 9th, 2004, 08:15 AM
Friend of Wrox
Points: 486, Level: 7
Points: 486, Level: 7 Points: 486, Level: 7 Points: 486, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2004
Location: Athens, , Greece.
Posts: 105
Thanks: 0
Thanked 0 Times in 0 Posts
Default

SMTP is running.

But I don`t know which is the correct ports. :(
Also I don`t know which "web server`s mail address" to set and which "SMTP mail server"??? Or should I leave them blank.
Also... when I`ll be using my dial-up connection from my pc what settings should I have in order to be able to send e-mails?

Thank you for your reply!
 
Old September 9th, 2004, 08:29 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: , , USA.
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Your internet connection shouldn't have anything to do with SMTP running or sending emails from the SMTP server.

If you have a firewall you need to open port 25.

You can use the IP address of the SMTP server.

 
Old September 9th, 2004, 08:37 AM
Friend of Wrox
Points: 486, Level: 7
Points: 486, Level: 7 Points: 486, Level: 7 Points: 486, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2004
Location: Athens, , Greece.
Posts: 105
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ok... I know that my internet connection has nothing to do with the SMTP. I just wanted to mention that right now I`m using a proxy server. And I think that some ports are closed from the proxy server. :( So I think that this is why I`m not able to send mails.
 
Old September 9th, 2004, 08:41 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: , , USA.
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Do you have access to the proxy server?

 
Old September 9th, 2004, 09:02 AM
Friend of Wrox
Points: 486, Level: 7
Points: 486, Level: 7 Points: 486, Level: 7 Points: 486, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2004
Location: Athens, , Greece.
Posts: 105
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes... but limited... I can only use the Internet Explorer.
(i.e. I cannot listen to online radios)

The problem is only the ports I`m using or there are some other settings for the SMTP?
 
Old September 10th, 2004, 09:24 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: Bangalore, KA, India.
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Cross post at - Sending e-mail with ASP

_________________________
- Vijay G
Strive for Perfection




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





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