|
-
Apr 4th, 2007, 05:45 AM
#1
Thread Starter
Fanatic Member
sending email simple question
Hi,
I got this script for sending emails from asp from an online tutorial (can't recall from what URL).
I tried to run it, and I don't get any error message but I don't recieve any email at the target email either.
any ideas why ?
maybe I should do something else besides running this script?
here it is:
<%
Set myMail=CreateObject("CDO.Message")
myMail.Subject="Sending email with CDO"
myMail.From="[email protected]"
myMail.To="[email protected]"
myMail.TextBody="This is a message."
myMail.Send
set myMail=nothing
Response.Redirect "thanks.html"
%>
-
Apr 4th, 2007, 06:00 AM
#2
Fanatic Member
Re: sending email simple question
looks ok to me, is the email address correct and is it possible its still on route? The code above is correct, talk to your web host, maybe its somethign they have set
-
Apr 4th, 2007, 06:23 AM
#3
Thread Starter
Fanatic Member
Re: sending email simple question
I send it yesterday to gmail account, so I don't think its still on route...
they say everything is working ok at their side.
-
Apr 4th, 2007, 09:59 AM
#4
Fanatic Member
Re: sending email simple question
the script appears fine, maybe the email was blocked by a junk filter?
-
Apr 4th, 2007, 10:28 AM
#5
Thread Starter
Fanatic Member
Re: sending email simple question
I talked with the hosting again, and now they said I need to put a configuration script. I tried that, and now I get "page cannot be displayed"...
-
Apr 4th, 2007, 01:58 PM
#6
Addicted Member
Re: sending email simple question
configuration script? i hope you mean the schema.. if not, then you can try getting the schema from microsoft.. sorry for such a short reply.. i'm in a bit of a rush right now.. sorry...
-
Apr 5th, 2007, 11:58 PM
#7
PowerPoster
Re: sending email simple question
example ..
Code:
Dim objMessage
Dim objConfig
Dim Flds
Set objMessage = CreateObject("cdo.message")
Set objConfig = CreateObject("cdo.configuration")
Set Flds = objConfig.Fields
Flds.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
Flds.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "localhost"
Flds.Update
Set objMessage.Configuration = objConfig
objMessage.From = FROMADDRESS
objMessage.To = TOADDRESS
objMessage.Subject = TOSUBJECT
'// objMessage.TextBody = "Test"
objMessage.HTMLBody = "<b>Test</b>"
objMessage.Fields.Update
objMessage.Send
Set objMessage = Nothing
Set objConfig = Nothing
-
Apr 9th, 2007, 05:43 PM
#8
Junior Member
Re: sending email simple question
check with ur hosting service provider, they may have installed CDO component, but not sure with CDO.message, if they won't confirm then write here again i will send you a script to confirm all the installed components at server side. If they havnt installed the CDO.message then you can may find CDO.Newmail, if its there, then simply replace CDO.message with CDO.newmail with some extra code that u may need. If you need complete code then u can ask.
-
Apr 10th, 2007, 01:27 AM
#9
Thread Starter
Fanatic Member
Re: sending email simple question
I believe you are right. however, I'm afraid this service provider staff cannot answer this (they lack the knowledge). I'd appricieate if you could send me the testing code for both cdo.message and for cdo.newmail at server side.
thanks,
-
Apr 10th, 2007, 06:44 AM
#10
Junior Member
Re: sending email simple question
I tried to paste the code init, but forum has limitation regarding length of message, so full code cannot be uploaded here. If you just email me from your account than i will send this code by email as attachment.
-
Apr 10th, 2007, 06:51 AM
#11
Thread Starter
Fanatic Member
Re: sending email simple question
what is your email please?
-
Apr 10th, 2007, 06:52 AM
#12
Thread Starter
Fanatic Member
Re: sending email simple question
got it. I just sent you an email with my email address,
thanks,
-
Apr 10th, 2007, 07:18 AM
#13
Junior Member
Re: sending email simple question
-
Apr 10th, 2007, 07:23 AM
#14
Thread Starter
Fanatic Member
Re: sending email simple question
please zip it and send again (it has been blocked)
thanks,
-
Apr 10th, 2007, 08:08 PM
#15
New Member
Re: sending email simple question
hi, could you help me in how to create a very good databases??
-
Apr 11th, 2007, 07:31 AM
#16
Junior Member
Re: sending email simple question
Hi please mention wat sort of databases u r tryin for, intranet applications or for internet applications. Access, mysql or mssql?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|