Microsoft IIS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsSystem AdministrationMicrosoft IIS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old February 24th, 2005, 02:08 AM
oobern oobern is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Posts: 4 oobern User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 20 m 58 sec
Reputation Power: 0
Exclamation Emails get stuck in the queue folder

I am having a problem sending email to a certain address, which gathers information from a web form(text, up to 2 attachments) . It seems to be having a doing the actual send. It creates the message but never does send it. I say that it creates the email because when check the mailroot\queue folder, all of my attempts are in there. I have no idea why it isn't sending as i am sending to and from the same email address!!! Below is the code I am using:

[HTML<%
SUB sendemail(fromwho, towho, subject, body)
dim objCDO
Dim objConf
Dim objFields
Const cdoSendusingPort=2
Set objCDO=server.CreateObject("CDO.Message")
Set objConf = Server.CreateObject("CDO.Configuration")
Set objFields = objConf.Fields
With objFields
.Item(cdoSendUsingMethod) = cdoSendUsingPort
.Item(cdoSMTPServer) = "localhost"
.Item(cdoSMTPServerPort) = 25
.Item(cdoSMTPConnectionTimeout) = 10
.Item(cdoSMTPAuthenticate) = cdoBasic
.Item(cdoSendUserName) = "username"
.Item(cdoSendPassword) = "password"
.Update
End With
objCDO.From=fromwho
objCDO.To=toWho
objCDO.Subject=subject
objCDO.TextBody=body
objCDO.Send
END SUB

fromwho="test@test.com"
toWho="test@test.com"
Subject="WEBSITE FEEDBACK"
Body=TRIM(Request.Form("txtComment"))

If body<>"" THEN
sendemail fromWho, toWho, Subject, Body
'REDIRECT OPAGE - response.redirect "blah.htm"
END IF
'cleanup
Set ObjCDO=Nothing
%>[HTML]

If someone can give me a hand on what is preventing the email from completely sending that would be great. Thanks in advance

oobern

Reply With Quote
  #2  
Old February 24th, 2005, 09:44 PM
Doug G Doug G is offline
Grumpier Old Moderator
ASP Free God 11th Plane (10000 - 10499 posts)
 
Join Date: Sep 2003
Posts: 10,143 Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 3 Weeks 4 Days 23 h 29 m 58 sec
Reputation Power: 181
I don't use CDO myself.

Are you getting any bounce messages back to the sender's email?

Is your smtp server configured properly for relaying?
__________________
======
Doug G
======
I didn't attend the funeral, but I sent a nice letter saying I approved of it. --Mark Twain

Reply With Quote
Reply

Viewing: ASP Free ForumsSystem AdministrationMicrosoft IIS > Emails get stuck in the queue folder


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT