Help - Search - Members - Calendar
Full Version: Messages from an ASP page
Hostony Board > General Support > General Support
tresuvesdobles
I opened a trouble ticket because CDONTS was not working on your servers and I was told that I should use CDOSYS.

Now I do, but it is not working properly either...

Messages sent to an email within my domain reach destination, but any other sent outside my domain are not delivered. The following error appears:

error '8004020f'
MyMail.Send


This is the code I am using, please let me know if there is some parameter to be changed for SMTP port configuration or others...

CODE
Set MyCon = Server.CreateObject("CDO.Configuration")
MyCon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "tresuvesdobles.com"
MyCon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
MyCon.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
MyCon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60
MyCon.Fields.Update
Set MyMail = Server.CreateObject("CDO.Message")
Set MyMail.Configuration = MyCon
MyMail.From = "mail@tresuvesdobles.com"
MyMail.To = "mail@externaldomain.com"
MyMail.Subject = "Subject"
MyMail.HTMLBody = "Body"
MyMail.Send
Set MyMail = nothing
Set MyCon = nothing


Thanks
Stanly
PLease change your Outgoing SMTP server to mail.tresuvesdobles.com and try again.
tresuvesdobles
I tried with mail.tresuvesdobles.com before and it did not work either.

Please assist!
tresuvesdobles
I have read in msdn site that I can also send mails using the Pickup directory on the IIS server.

But, what is this directory on your servers?

CODE
MyCon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverpickupdirectory") = "path"
MyCon.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing") = 1
Stanly
Why are you using:

MyCon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "tresuvesdobles.com"

etc...

blink.gif

I think you should use

MyCon.Fields("smtpserver") = "tresuvesdobles.com"

because it is a name of parameter of the MyCon.Fields class!
tresuvesdobles
You are wrong. When using CDOSYS, the configuration parameters for any message to be sent shall be defined in http://schemas.microsoft.com/cdo/configuration

This is the way CDOSYS works, since it is a secure component.

Nowadays, if I try to program as suggested, I get the following error:

CDO.Message.1 error '8004020a'
The SMTP server name is required, and was not found in the configuration source.


Please, I need this to be fixed urgently !!!!!!!
tresuvesdobles
I have finally solved it !!!!!

biggrin.gif

The code was OK, but SMTP Server needs to be defined as 'localhost' and that's all

Please PIN this discussion, since it could be very useful for other users.
Stanly
Please set the parameters to the following:

SMTP Server: localhost
If you need to use username and password, they must be blank.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2024 Invision Power Services, Inc.
IPS Driver Error

IPS Driver Error

There appears to be an error with the database.
You can try to refresh the page by clicking here