Page Index Toggle Pages: 1 [2]  Send Topic Send Topic Print Print
Very Hot Topic (More than 25 Replies) [Solved] @ASynchShell file insert? (Read 3380 times)
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: @ASynchShell file insert?
Reply #15 - Nov 26th, 2008 at 3:22pm
Print Post Print Post  
Can we please see the entirety of the @Sendmail line? You can obfuscate the actual addresses, login and password, but we need to see all the arguments.
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
tcgeo
Full Member
***
Offline



Posts: 278
Location: Traverse City, Michigan
Joined: May 13th, 2008
Re: @ASynchShell file insert?
Reply #16 - Nov 26th, 2008 at 4:00pm
Print Post Print Post  

Works:

@SendMail("smtp.charter.net","My Sesame Test email", "From@charter.net","To@charter.net","",""," My message ", "", "", "C:\My.jpg")

Doesn’t  work:

vPath = “C:\My.jpg”

@SendMail("smtp.charter.net","My Sesame Test email", "From@charter.net","To@charter.net","","","My message", "", "",vPath)


Sends two emails and scales down .jpg.

vPath = “C:\My.jpg”

@SendMail("smtp.charter.net","My Sesame Test email", "From@charter.net","To@charter.net","","","My message", "", "", "", vPath)


  
Back to top
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: @ASynchShell file insert?
Reply #17 - Nov 26th, 2008 at 4:43pm
Print Post Print Post  
Thanks. May I see the declaration line for vPath, please?

Are you running standalone or client/server? If client/server, is C:\My.jpg on the client or on the server?

BTW, that third variation has the jpg in the wrong position for a binary attachment, so it's not surprising that it's acting funny.
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
tcgeo
Full Member
***
Offline



Posts: 278
Location: Traverse City, Michigan
Joined: May 13th, 2008
Re: @ASynchShell file insert?
Reply #18 - Nov 26th, 2008 at 5:04pm
Print Post Print Post  
var vPath as String

vPath = "C:\my.jpg"

writeln(vpath) does show correct and entire path.

Running standalone

The third variation was just stabbing in the dark.

Thanks for your help with this.
  
Back to top
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: @ASynchShell file insert?
Reply #19 - Nov 26th, 2008 at 5:59pm
Print Post Print Post  
OK, try this and tell me what number appears in the WriteLn window.

Code
Select All
var vFlag as Int
var vPath as String

    vPath = "C:\my.jpg"
    vFlag = @SendMail("smtp.charter.net","My Sesame Test email", "From@charter.net","To@charter.net","","","My message", "", "",vPath)
    WriteLn(vFlag)
 



  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
tcgeo
Full Member
***
Offline



Posts: 278
Location: Traverse City, Michigan
Joined: May 13th, 2008
Re: @ASynchShell file insert?
Reply #20 - Nov 26th, 2008 at 6:18pm
Print Post Print Post  
vFlag = -6
  
Back to top
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: @ASynchShell file insert?
Reply #21 - Nov 26th, 2008 at 7:20pm
Print Post Print Post  
tcgeo wrote on Nov 26th, 2008 at 6:18pm:
vFlag = -6


That error indicates that the operating system was unable to open the specified file.  Give us a little bit. We'll run some tests and see if it behaves the same way for us.
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
tcgeo
Full Member
***
Offline



Posts: 278
Location: Traverse City, Michigan
Joined: May 13th, 2008
Re: @ASynchShell file insert?
Reply #22 - Nov 26th, 2008 at 7:28pm
Print Post Print Post  
Thank you, I appreciate it!
  
Back to top
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: @ASynchShell file insert?
Reply #23 - Nov 26th, 2008 at 7:41pm
Print Post Print Post  
tcgeo wrote on Nov 26th, 2008 at 7:28pm:
Thank you, I appreciate it!


We are able to use @SendMail attach a jpg with the filename in a variable. Check the filename you are assigning to the variable very carefully. A slash that goes the wrong way, a space in the wrong place, a minor misspelling...anything like that will make it so the file to be attached can't be found. Does the filename have spaces in it?
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
tcgeo
Full Member
***
Offline



Posts: 278
Location: Traverse City, Michigan
Joined: May 13th, 2008
Re: @ASynchShell file insert?
Reply #24 - Nov 26th, 2008 at 8:00pm
Print Post Print Post  
I put the .jpg on the root folder and it worked.

The folder that it was in has an underscore like this:

Sesame2_1

Must be the underscore causing trouble?

Thank you for all of your time.
  
Back to top
IP Logged
 
Ben
Lantica Support
*****
Offline



Posts: 218
Joined: Apr 7th, 2005
Re: @ASynchShell file insert?
Reply #25 - Nov 26th, 2008 at 8:15pm
Print Post Print Post  
The issue you are running into does not appear to be caused by the use of underscores. Would it be possible for you to send in the JPG file you are trying to attach to the email, as well as the file path to the directory where the image is kept? If you can send in that information we should be able to figure out what you are running into.

You can email the information to support@lantica.com.

-Ben
Lantica Technical Support
  
Back to top
IP Logged
 
tcgeo
Full Member
***
Offline



Posts: 278
Location: Traverse City, Michigan
Joined: May 13th, 2008
Re: @ASynchShell file insert?
Reply #26 - Nov 26th, 2008 at 9:05pm
Print Post Print Post  
Will do Ben, Thank you.
  
Back to top
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: @ASynchShell file insert?
Reply #27 - Nov 26th, 2008 at 10:20pm
Print Post Print Post  
tcgeo,

We got your code. Your path has a dot (.) in one of the folder names. This is likely to cause evil. Try a path with no dots.
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
tcgeo
Full Member
***
Offline



Posts: 278
Location: Traverse City, Michigan
Joined: May 13th, 2008
Re: @ASynchShell file insert?
Reply #28 - Nov 26th, 2008 at 11:47pm
Print Post Print Post  
You're right, thank you so much for your help and time.

I had no idea that would cause troubles. I certainly won't make that mistake again.

  
Back to top
IP Logged
 
Page Index Toggle Pages: 1 [2] 
Send Topic Send Topic Print Print