Hi Tim,
Well I have used ASPMail in one of my
applications. Do give a static ip address of the
server which has a proper working SMTP server and an
Exchange server or any other mail server.
I am sure it will work without fail.
HTH
Vinay.
--- Tim Fletcher <[EMAIL PROTECTED]> wrote:
> Hi,
> i have to use the ASPMail obj on a site, and not
> CDONTS. one of the properties required is
> remoteHost, but if i set it to a true
> SMTP server (ex. smtp.clara.net) i get an error
> "Operation timed out", and if i put a false SMTP
> server (ex. test.test.com) i get
> Host not found. as anyone come accross something
> like this?
>
>
> here is the script i call the ASPMail obj from:
> <%
> Set Mailer = Server.CreateObject ("SMTPsvg.Mailer")
> Mailer.FromName = "[EMAIL PROTECTED]"
> Mailer.FromAddress = "[EMAIL PROTECTED]"
> Mailer.Subject = "test"
> Mailer.BodyText = "test"
> Mailer.RemoteHost = "smtp.clara.net"
> Mailer.TimeOut = 10
> Mailer.AddRecipient
>
"[EMAIL PROTECTED]","[EMAIL PROTECTED]"
>
> 'Mailer.SendMail
>
> if Mailer.SendMail then
> 'Message sent sucessfully
> response.write ("Votre message a �t� envoy�")
> else
> 'Message send failure
> response.write ("Votre message n'a pas �t�
> envoy� . ")
> response.write ("L'erreur �tait : " &
> Mailer.Response)
> end if
>
> Set Mailer = Nothing
> %>
>
> Thanks for your time
>
> Tim
>
>
> ---
> You are currently subscribed to activeserverpages
> as: [EMAIL PROTECTED]
> To unsubscribe send a blank email to
%%email.unsub%%
__________________________________________________
Yahoo! - We Remember
9-11: A tribute to the more than 3,000 lives lost
http://dir.remember.yahoo.com/tribute
---
You are currently subscribed to activeserverpages as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]