Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to use CDONTS with third party mail server

Status
Not open for further replies.

jentuck

Technical User
Dec 3, 2001
10
US
I would like to use the CDONTS component to send mail.
I have Internet Anywhere server installed, with smtp port 25.
How do I reconfigure CDONTS to send messages to a different port? I have already tried to reconfigure the default smtp server to port 9025. CDONTS does not send the mail to the smtp server, but just puts it in the "Bad Mail" directory.

Thanks for any help.

Jennifer Tuck
 
I do not think there is the ability to change the port. If you post some of your code maybe it would help.
 
I think I have the actual code written correctly as it sends a mail correctly, it just places it in the "badmail" directory:

set themail = server.createobject("CDONTS.newmail")
themessage = "Name: " & Form_realname & vbnewline & "Address: " & Form_address & vbnewline & Form_city & ", " & Form_astate & " " & Form_zip & vbnewline & Form_email & vbnewline & "Date of Birth: " & Form_month & "/ " & Form_day & "/ " & Form_year & vbnewline & "Time of Birth: " & Form_hour & ":" & Form_minute & " " & Form_amorpm & vbnewline & Form_dontknowtime & vbnewline & "Birthplace: " & Form_borncity & ", " & Form_state & " " & Form_borncountry & vbnewline & "Comments: " & Form_comments

TheMail.send "freeastrochart@eclipsepsychic.com","lbahringer@aol.com", "Free Astro Chart" , themessage

set themail = nothing

I have a third pary mail server on port 25. The mail does not get sent here as CDONTS uses the default smtp server. However, ican't start up the smtp server on port 25 because the third party server is already using it.

I reconfigured the TCP port for the default SMTP server to port 26, as was suggested by the third party mail server tech support. No luck. I don't know if I have the smtp server settings right.

What is the "smart host" and do I need to specify that?

I've tried almost every combination of options to no avail.

Thanks for you help!

JEnnifer Tuck
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top