NetTalk Central

Author Topic: SendEmail on a new thread  (Read 2224 times)

ianburgess

  • Full Member
  • ***
  • Posts: 119
    • View Profile
    • Email
SendEmail on a new thread
« on: August 20, 2012, 04:30:20 AM »
I am using sendemail based on Nettalk example. In the example it says that the SendEmail procedure can be STARTed as the parameters are passed as a group. However I get compile errors when I compile if I try and STArt it.

SendEmail(email)  works fine

But, START(SendEmail, 25000, email) gives compile errors

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11186
    • View Profile
Re: SendEmail on a new thread
« Reply #1 on: August 20, 2012, 04:34:28 AM »
what are the errors?


ianburgess

  • Full Member
  • ***
  • Posts: 119
    • View Profile
    • Email
Re: SendEmail on a new thread
« Reply #2 on: August 20, 2012, 04:55:17 AM »
I get Syntax Error: No matching prototype available if I change the Web11 example to START(SendEmail, 25000, email)

I just realised that I need to remove the ,String from the Prototype so it just reads (String pParms) - that now compliles and works when STARTed.
« Last Edit: August 20, 2012, 05:01:30 AM by ianburgess »