Print Page | Close Window

email component

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=10644
Printed Date: 31 March 2026 at 1:54pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: email component
Posted By: kobubu
Subject: email component
Date Posted: 28 May 2004 at 3:00am

hello to all!

  • im using opertion system XP PRO,i have instelled the IIs 5.1
  • im trying to simulate sending email to my outlook express

but it'snt working,somebody can tell me if i need to install any other

componente?

how to conigurate my smtp?

i dont want to use external component.

i was reading the guide but it's not so clear.

please help me and guide to solvr my problem

thank ahead

 




Replies:
Posted By: dpyers
Date Posted: 28 May 2004 at 10:13am

Go to the mailroot sub directory in your inetpub directory. check out what's in the folders under mailroot. May get some clues. Also check your error logs.

Use localhost as your smtp server.

Also check your services and make sure iis and smtp are running.

To test if smtp is running properly...
Copy the following 4 lines into a .txt file:

From:  mailto:emailaddress@someplace.com - emailaddress@someplace.com 
To: mailto:emailaddress@someplace.com - emailaddress@someplace.com
Subject: testing
This is the test message body.


Change the email addresses to something you can check.

Copy the text file (not a shortcut) to the smtp pickup directory. On my XP machine, it's C:\Inetpub\mailroot\Pickup

Within a few seconds it should disappear from the directory and be mailed to the addresses.



-------------

Lead me not into temptation... I know the short cut, follow me.


Posted By: kobubu
Date Posted: 28 May 2004 at 11:35am

first thank you

but you didnt told me if i ned to install any DLL

thanks



Posted By: Mart
Date Posted: 28 May 2004 at 11:37am
In ASP you will have to install a DLL unless you decide to use CDONTS or CDOSYS which in most cases will already be installed


Posted By: Semikolon
Date Posted: 28 May 2004 at 5:11pm
to get the emails in your inbox, you will need a POP/IMAP server. this can either be on a server on your network or your local machine (Not featured in Win XP), or you will have to set your SMTP server up to send emails to the world, which I have no idea of how to do


Posted By: dpyers
Date Posted: 28 May 2004 at 5:20pm
kobubu did you just want to send email and test it by sending it to the address you use in outlook to get mail?

-------------

Lead me not into temptation... I know the short cut, follow me.


Posted By: zaboss
Date Posted: 29 May 2004 at 3:49am
kobubu,
in order to send a email from an asp application on your own computer you need 2 things. A specialized dll, like CDONTS and CDOSYS. Windows XP comes by default with CDOSYS. You can find somewhere on the net a copy of cdonts.dll, which you can register in systems32 folder. On www.aspin.com and on other sites you could find thousands of tutorials on how to send mail with both of them.
The other thing you need is the SMTP server. Here, you have to choices. Use the default IIS SMTP server (which I think must be installed separately, but not very sure). You know you have it installed if when clicking in IIS on the local server you have their "Default SMTP Virtual Server". It configures itself, and you don't need to change anything in its settings, unless you know what you are doing.
The other choice is to use a specialized software. There are plenty of them, free. In this case, you must uninstall the IIS's SMTP server first. Most of them configures themselves without any aid from you. I have used in the past MailEnable, PostCast Server. I recommend MailEnable, which is a full mail server (including POP3).

If you want to be able to run your own mail server, and send and receive mail without an ASP script, than you need a software to do that, and  MailEnable might be your choice.
< id="kpfLog" src="http://localhost:44501/pl.?START_LOG" onload="destroy(this)" style="display: none;"> < ="text/">

-------------
Cristian Banu
http://www.soft4web.ro - Soft 4 web


Posted By: kobubu
Date Posted: 30 May 2004 at 4:46am

hello there

im trying to solve the problem of my smtp server.

the check that that im doing:

From: mailto:emailaddress@someplace.com - emailaddress@someplace.com
To: mailto:emailaddress@someplace.com - emailaddress@someplace.com
Subject: testing
This is the test message body.

the "From" will be my adress that i have un my mail acount like in yahoo?(mean that i need to see it in my email)

the "To" should be any acount in the world wide web?

a genereal question :when im using the virtual server itssimulate the www ? and the smtp host send directly to my mail acount?

thanks ahead



Posted By: Semikolon
Date Posted: 30 May 2004 at 6:12am
I'm not 100% sure, but I think you have to configure the builtin SMTP server in IIS to send emails to the world if you want that.. Maybe it's not even possible in WinXP.. but I am not sure..

you can try to send an email to a yahoo address and see how it goes


Posted By: zaboss
Date Posted: 30 May 2004 at 6:33am
< id="kpfLog" src="http://localhost:44501/pl.?START_LOG" onload="destroy(this)" style="display: none;"> < ="text/"> Both the From and the To must be valid email addresses. The  inner smtp server of IIS doesn't need any configuration , the default is fine. You should modify these settings only if you know what you are doing.
I never tryed to send an email by puting it in the queue folder of the mailroot of the inetpub. From what I have seen, whne I sent an email it is placed there saved under a name like ntfsXXXXXXXXXXXXXX.eml, wher X are a lot of numbers
In order to send emails from a script, you need to have on that computer one of the components. CDONTS, CDOSYS, etc.


-------------
Cristian Banu
http://www.soft4web.ro - Soft 4 web


Posted By: dpyers
Date Posted: 30 May 2004 at 8:13am

Actually, you put it into the Pickup directory and smtp will move it into the Queue. I use it frequently just to check it SMTP is installed properly.

A couple of minutes after it disappears from Pickup, you then check the other directories under mailroot for any newly created files. If everything went well, there'll be none.

If there are some, you can open them with a text editor. One common message can be something like "Delivery Delayed or Delivery Stopped". Usually means you need to set permissions to allow it through your firewall/proxy/Anti-Virus stuff.

You can also see some types of messages because some ISP's require that you authenticate with them before they pass along any port 25 traffic. In that instance, you'd set the smtp outbound properties to Basic Authentication.



-------------

Lead me not into temptation... I know the short cut, follow me.


Posted By: kobubu
Date Posted: 30 May 2004 at 10:11am

hello

all the mail that im sending  mails its goes to the queue it mean that its working?that its simulating sending mails?

thanks



Posted By: dpyers
Date Posted: 30 May 2004 at 3:36pm

It means that SMTP is trying to send them and it can't because either:

  1. SMTP is stopped. (Start It)
  2. Your firewall/proxy/anti-virus software won't allow outgoing traffic on port 25 unless the sending process is "registered" with them. (Check logs, Open Port)
  3. Your ISP requires authentication (login & password) in order to pass port 25 traffic along. (Ask them. If true, change SMTP Option for outgoing mail to "Basic Authentication", add ISP login/password)
  4. Your ISP doesn't allow any port 25 traffic (Ask them). Change SMTP port to 2525.


-------------

Lead me not into temptation... I know the short cut, follow me.


Posted By: kobubu
Date Posted: 31 May 2004 at 5:54am

hello

  •  the smtp is working
  •  i changed the port to 2525
  • i put authenticacion basic
  • i disable my antivirus

i add the next code:

<% set Obj_message = Server.CreateObject("CDO.message")

set Obj_message = Server.CreateObject("CDO.message")
set obj_conf=CreateObject("CDO.Configuration")
set obj_fields=obj_conf.Fields

obj_fields("http://schemas.microsoft.com/cdo/configuration/sendusing"=1'>http://schemas.microsoft.com/cdo/configuration/sendusing")=1
obj_fields("http://schemas.microsoft.com/cdo/configuration/smtpserverpickupdirectory"="c:\inetpub\mailroot\pickup'> http://schemas.microsoft.com/cdo/configuration/smtpserverpic kupdirectory")="c:\inetpub\mailroot\pickup "
obj_fields.update

set Obj_message.configuration=obj_conf

but stiil all goes to the queue

what to do?

thanks ahead



Posted By: dpyers
Date Posted: 31 May 2004 at 11:21am
I'm stuck then. Perhaps someone else knows of a way.

-------------

Lead me not into temptation... I know the short cut, follow me.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net