Should I experience any problems?
>Can I use a TidSMPT on the TWebModule. It compiles but I can;t seem to get
>it to send. The same code works great through a standard application.
Yes you can. What is the exact problem?
/A.
"john" <jfl...@webdatabases.co.uk> wrote in message
news:3ae6ed42_2@dnews...
Very Simply. The code below works through a standard app but in the
TWebModule It hits the except clause. I'm pulling my hair out to get it to
connect is there any obvious tests I can do that I'm missing. Is It IIS? I'm
running through Windows2000 Pro.
MySmpt1.Host := 'mail.company.co.uk';
MySmpt1.UserID := 'jimmy.company.co.uk';
MySmpt1.Password := 'xxxx';
try
MySmpt1.Connect;
except
Response.Content := 'NOT CONNECTED'
end;
Its quite likely a permissions problem. You are probably accessing a file or
other action that you are not allowed to do under the account that the
scripts is executing under.
--
Chad Z. Hower (Kudzu) - Church Hill, TN - Team Indy
"Programming is an art form that fights back"
Forget the Y2K problem, Lets fix the W2K problem.
http://www.pbe.com/Kudzu/ - Free Delphi/CBuilder components and articles