PDA

View Full Version : CDONTS Prob.


Mhtml
10-28-2002, 11:50 AM
I'm having a problem with my referer mail script which I have written for ^KOALABEAR^ I can't see the problem myself, but maybe some here can.

The problem is that it just doesn't seem to send..

I've added it as an attachment..

^KoalaBear^
10-29-2002, 11:51 AM
LOL Wish I could help, Michael! :confused:

It looks impressive, though..... :)

KB...

dominicall
10-29-2002, 12:13 PM
Have had a look at the code and that looks fine to me...

Normally the problem with CDONTS not sending is that the SMTP service is not set-up correctly so the script processes OK but there's no working SMTP service to send the email.

Check with your ISP about the SMTP set-up on the server...

Another alternative is to find out whether your ISP uses another mail component other than CDONTS. I uses Persits ASPEmail at my ISP, which has a lot more options and crucially allows you to specify the name/IP address for the SMTP server.

Hope this helps.

Dominic :thumbsup:

karolmcauley
10-29-2002, 12:21 PM
With the script you posted you are trying to send an email to a particular email address from an username defined by the user
eg
objMail.From = request.form("Uname")

However, as far as i am aware you have to send the email from an email address used by the site or server side. I do not think it can simply be from a person's name. This is probably why it is not sending the email.

I had this problem before where i was using my own personal email address in the objMail.From section.......but had to revert to an email address used by the site/server-side, because the email never got sent with my personal email address.

Cheers

Mhtml
10-30-2002, 01:13 AM
From the start I was sure that nothing was wrong with my script, I was right.

I emailed my host and the smtp server did have something wrong with it and he fixed it..Thanks guys! KB I will be sending you an email soon.

^KoalaBear^
10-30-2002, 01:34 AM
Thanks my friend. Muchly appreciated.
Thanks too, to karolmcauley and dominicall for their quick responses and suggestions.

BTW Mate... look for your gold 'Codings' watch in snail mail, for your 500th post! LOL... :thumbsup:

Cheers!
KB...