Page 1 of 1

Setting smtpserver at runtime?

Posted: Sun May 29, 2005 1:07 am
by pete
Hi

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

Thanks
Pete

Posted: Sun May 29, 2005 6:38 am
by madshi
It's explained here:

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

Just searach for "SMTP".

setting email settings at runtime

Posted: Sun May 29, 2005 7:02 am
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

Posted: Sun May 29, 2005 7:28 am
by madshi
Just add madExcept to the uses clause.