Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

aspemail

1 view
Skip to first unread message

barry1

unread,
Apr 11, 2002, 4:14:23 PM4/11/02
to
Hi all

i am trying to use asp email but i keep getting a error message 'host not found'.
I have contacted my host (hostroute.co.uk)who advised me to put the host as "dvd.co.uk:26" the 26 being the port number. I've tried this but I get the same error. my code is as follows:

<%@LANGUAGE="VBSCRIPT"%>
<%
Set Mail = Server.CreateObject("Persits.MailSender")
Mail.Host = "smtp.dvd.co.uk:26" ' Specify a valid SMTP server
Mail.From = "d...@dvd.co.uk" ' Specify sender's address
Mail.FromName = "tony" ' Specify sender's name
Mail.AddAddress "tonyb...@aol.com", "billy"
Mail.AddAddress "in...@dvd.co.uk" ' Name is optional
Mail.AddReplyTo "in...@dvd.co.uk"
Mail.Subject = "Thanks for ordering"
Mail.Body = "Dear Sir:" & Chr(13) & Chr(10) & _
"Thank you for your business."
On Error Resume Next
Mail.Send
If Err <> 0 Then
Response.Write "Error encountered: " & Err.Description
End If
%>

I have wrote to my host 4 times but alls they say is it should be working, can any one offer any advice. I am a beginner so any any help would be gratefully recieved

Thankyou

Tony Hargadon



Nancy Gill

unread,
Apr 11, 2002, 4:15:32 PM4/11/02
to
what happens if you leave the port number off?

--
Nancy Gill
Team Macromedia Volunteer for UltraDev
http://www.macromedia.com/go/team
www.webwish.com

"barry1" <webfor...@macromedia.com> wrote in message
news:a94qqv$n8q$1...@forums.macromedia.com...

Dashmatrix

unread,
Apr 11, 2002, 4:41:43 PM4/11/02
to
Ok. I think what is happening is you're confusing the Mail.From and the Mail.Host.
When your ISP told you to use the Host as dvd.co.uk:26, that is the FQDN for their mail server.
The Mail.From can be any email address you want. It doesn't even have to be valid.

So here's what you'd want.....

Mail.Host = "dvd.co.uk:26"
Mail.From = "y...@youremailaddress.co.uk"

Notes : you might be able to drop the :26 as that's a default port and you don't really need it.
Also check : Mail.AddAddress.... line. You might have the info in there backwards. I think you need it in like this :
Mail.AddAddress "Billy", "tonyb...@aol.com"
Mail.AddAddress "Info", "in...@dvd.co.uk"

I've gotten errors there myself.



0 new messages