Code Bank
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingCode Bank

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 June 24th, 2004, 09:00 AM
kleb kleb is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 7 kleb User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Asp Email In Cdosys

Hi there,

I have following code to send email. This throws no errors but the email isn't actually sent.
Is this code missing something?

function SendMail()
set cdoMessage = Server.CreateObject("CDO.Message")
set cdoConfig = Server.CreateObject("CDO.Configuration")
cdoConfig.Fields("http://schemas.microsoft.com/cdo/co...ation/sendusing") = 2
cdoConfig.Fields("http://schemas.microsoft.com/cdo/co...tion/smtpserver") = "sendmail.brinkster.com"
cdoConfig.Fields.Update
set cdoMessage.Configuration = cdoConfig
cdoMessage.From = "me@mydomain.com"
cdoMessage.To = me@mydomain.com
cdoMessage.Subject = "Feedback"
cdoMessage.Body = message
cdoMessage.Send
set cdoMessage = Nothing
set cdoConfig = Nothing
exit function
end function

thanks your help
Kleb

Reply With Quote
  #2  
Old June 28th, 2004, 08:06 PM
dcarva's Avatar
dcarva dcarva is offline
Contributing User
ASP Free Novice (500 - 999 posts)
 
Join Date: Jan 2003
Location: USA
Posts: 633 dcarva User rank is Lance Corporal (50 - 100 Reputation Level)dcarva User rank is Lance Corporal (50 - 100 Reputation Level)dcarva User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 9 h 18 m 20 sec
Reputation Power: 6
It's possible that you don't have your SMTP server setup correctly. Go to the c:\inetpub\mailroot folder on the webserver. See if your emails are stuck in one of the folders, like badmail folder.

You can run a test form your machine. Go to this page:

http://www.petri.co.il/test_smtp_service.htm

And look at the Telnet test.

Reply With Quote
  #3  
Old June 30th, 2004, 11:23 PM
Bullschmidt's Avatar
Bullschmidt Bullschmidt is offline
Guru
ASP Free Novice (500 - 999 posts)
 
Join Date: May 2003
Location: USA
Posts: 876 Bullschmidt User rank is Corporal (100 - 500 Reputation Level)Bullschmidt User rank is Corporal (100 - 500 Reputation Level)Bullschmidt User rank is Corporal (100 - 500 Reputation Level)Bullschmidt User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 1 Day 8 h 27 m 34 sec
Reputation Power: 9
And with some Web hosts the from part must be that of a valid e-mail address on that server.
__________________
J. Paul Schmidt
www.Bullschmidt.com - Freelance Web and Database Developer
www.Bullschmidt.com/DevTip.asp - Classic ASP Design Tips

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingCode Bank > Asp Email In Cdosys


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