Setting smtpserver at runtime?

delphi package - automated exception handling
Post Reply
pete
Posts: 5
Joined: Mon Mar 21, 2005 10:00 am

Setting smtpserver at runtime?

Post by pete »

Hi

In the help it says I can set the smtpserver variable at runtime. Can you please tell me how?

Thanks
Pete
madshi
Site Admin
Posts: 10365
Joined: Sun Mar 21, 2004 5:25 pm

Post by madshi »

It's explained here:

http://help.madshi.net/madExceptSettings.htm

Just searach for "SMTP".
pete
Posts: 5
Joined: Mon Mar 21, 2005 10:00 am

setting email settings at runtime

Post by pete »

Hi

I know that says: "At runtime you can fill in these settings into the variables "SmtpServer: string[50]", "SmtpPort: dword", "SmtpAccount: string[50]" and "SmtpPassword: string[75]"."

But I dont understand how to access these variables?

I tried simply saying SmtpServer:=<my value> but when I tried to compile it says variable unknown for smtpserver. It didnt appear under the properties of the madexceptionhandler either.

Sorry for being thick!
Pete
madshi
Site Admin
Posts: 10365
Joined: Sun Mar 21, 2004 5:25 pm

Post by madshi »

Just add madExcept to the uses clause.
Post Reply