SendEmail syntax

Advanced programming using WinTask scripting language

SendEmail syntax

Postby Kerm on Wed Sep 26, 2012 2:12 pm

I’m trying to send an email with attachment, but so far I’m unsuccessful unless I specify the attachment without “spaces” in the path.

My code looks like this:

SendEmail("","","Script failed: "+script$+".src","See attacchments for more info:",chr$(34)+attach1$+chr$(34))

I do receive the mail but there is no attachment. What am I missing?
Posts: 27
Joined: Tue Oct 18, 2005 4:27 pm

Re: SendEmail syntax

Postby TechSupport on Fri Sep 28, 2012 6:52 am


You must not put the chr$(34), so the correct syntax is:
SendEmail("","","Script failed: "+script$+".src","See attacchments for more info:",attach1$)

WinTask Tech Support
Posts: 805
Joined: Thu Nov 16, 2006 9:58 am

Return to Scripts programming

Who is online

Users browsing this forum: No registered users and 1 guest