Forums

ASP

This topic is locked

help sending e-mail!

Posted 22 May 2007 02:28:47
1
has voted
22 May 2007 02:28:47 Alvin Carrasquillo posted:
OK, this is the problem, when I use the IIS'(5.1) SMTP Virtual Server, grammatically it's correct, but instead of sending the e-mails it stores them in the "C:\Inetpub\mailroot\Queue", what can I do to, instead of storing it, they finally get sent?

Edited by - b_blender on 22 May 2007 02:35:43

Replies

Replied 22 May 2007 02:34:00
22 May 2007 02:34:00 Alvin Carrasquillo replied:
this it's the code:

<pre id=code><font face=courier size=2 id=code>
&lt;%
Dim myMail
Set myMail = CreateObject("CDO.Message"

myMail.Subject = "Here is your password."

' put an email address associated with your site here
myMail.From = " "

'make sure the password column below reflects the name of the db password column
myMail.To = Recordset1.Fields.Item("email".Value

myMail.TextBody = "Your password is: " & Recordset1.Fields.Item("password".Value

myMail.Configuration.Fields.Item("schemas.microsoft.com/cdo/configuration/sendusing") = 2
'Server port
myMail.Configuration.Fields.Item("schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
myMail.Configuration.Fields.Item("schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1
'Name or IP of remote SMTP server
myMail.Configuration.Fields.Item("schemas.microsoft.com/cdo/configuration/smtpserver") = "localhost"
myMail.Configuration.Fields.Item("schemas.microsoft.com/cdo/configuration/sendusername")= "username"
myMail.Configuration.Fields.Item("schemas.microsoft.com/cdo/configuration/sendpassword")= "password"
myMail.Configuration.Fields.Update
myMail.Send
set myMail=nothing
%&gt;

</font id=code></pre id=code>

Edited by - b_blender on 22 May 2007 02:34:57
Replied 22 May 2007 02:46:05
22 May 2007 02:46:05 Alvin Carrasquillo replied:
<img src="img411.imageshack.us/img411/8747/storedfilekw1.jpg" border=0>
here's the file that get stored <img src=../images/dmxzone/forum/icon_smile_dissapprove.gif border=0 align=middle><img src=../images/dmxzone/forum/icon_smile_sad.gif border=0 align=middle>

Reply to this topic