Current location: Hot Scripts Forums » Programming Languages » ASP » ASP mail sending in intranet


ASP mail sending in intranet

Reply
  #1 (permalink)  
Old 05-13-06, 05:53 AM
babuA babuA is offline
New Member
 
Join Date: May 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
ASP mail sending in intranet

hello,
this is babu ,i have some problem in sending mail from our local intranet (asp).
when i send mail from the mail sending form, the mail resides in this folder
C:\Inetpub\mailroot\Queue.
please give a solution for this




Dim strF,strT,strS,strB
strF=Request.form("fromTxt" )
strT=Request.form("toTxt")
strS=Request.form("subjectTxt")
strB=Request.form("bodyTxt")
Response.write(strT & strF & strS & strB)
if strF="" or strT="" or strS="" or strB="" then
Response.Redirect("../user_Marketing/mail_fail.asp")
end if
Set MyCDONTSMail = Server.CreateObject("CDO.Message")
MyCDONTSMail.From= strF
MyCDONTSMail.To= strT
MyCDONTSMail.Subject= strS '"Welcome to the ASP Mail sending page"'
MyCDONTSMail.HTMLBody= strB '"this is a test mail"'
MyCDONTSMail.Send
Set MyCDONTSMail=nothing
Response.Redirect("../user_Marketing/mail_sucess.asp")
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 05-13-06, 08:16 AM
koncept
Guest
 
Posts: n/a
that means your smtp server is not configured correctly. that folder is a holding area untill the message has been sent. go into control panel, add remove programs, windows components. then under iis add the smtp server comoponent. you should be good to go after that, if you have another smtp server that is available to use you can modify your code. if you modify your code this will be of some help to you
http://www.programmingtalk.com/showp...43&postcount=9
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 05-14-06, 08:53 AM
drknow drknow is offline
Newbie Coder
 
Join Date: Apr 2006
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
The below solution below is not for you mail being queued.... but i would suggest this change to your code

Set MyCDONTSMail = Server.CreateObject("CDO.Message")

to

Set MyCDONTSMail = CreateObject("CDO.Message")
__________________
_____________________________________________
Alan Watts
Technology is destructive only in the hands of people who do not realize that they are one and the same process as the universe.

Last edited by drknow; 05-14-06 at 08:56 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 05-14-06, 09:52 AM
koncept
Guest
 
Posts: n/a
good catch drknow, i skipped right over that. i have not figured it out but sometimes it works without the server.xx or request.xx, i am not sure why, but i always include it to be on the safe side
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #5 (permalink)  
Old 10-13-07, 10:25 AM
db29a db29a is offline
New Member
 
Join Date: Oct 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
setting lower values

i've been looking answers for the same problem, i get "Messages stuck in the queue" and while i was trying i notice something that could be the solution (centainly not the professional answer):

1. click start, control panel, administrative tools, IIS services
2. expand PC and right click "default virtual SMTP server"
3. select delivery tab (spanish: ENTREGA)
4. set lower values for: "first retry interval", "second try interval", "third retry interval", "subsequent retry interval"... (i set them to 1)

now it's working fine for and hope this to be usefull
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP mail function and sending php content. strings6 PHP 4 12-27-05 09:03 AM
beginner question regarding smtp server sending mail martin_ua PHP 2 12-06-05 08:49 AM
ASP Form Mail tferrentino ASP 2 02-25-05 11:22 AM
using time as trigger in sending notification mail abtimoteo Perl 1 07-09-04 01:34 PM
Mail Script sending multiple times when Table has a lot of data dsumpter PHP 12 07-16-03 06:17 PM


All times are GMT -5. The time now is 06:42 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.