Thanks for the response :)

the problem was that the ASP had given me the wrong host info (they got it right after 
my 3rd heated email)
it's all working fine now,
Thanks

Tim

-----Message d'origine-----
De : vinay kumar [mailto:[EMAIL PROTECTED]]
Envoy� : mercredi 11 septembre 2002 13:14
� : ActiveServerPages
Objet : Re: ASPMail help


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.unsub%%


---
You are currently subscribed to activeserverpages as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to