Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with SendSmtpEmail Function

Status
Not open for further replies.

FoxT2

MIS
Oct 3, 2003
143
0
0
US
Hi,

Anyone here know if it is possible to send attachments other than text files using the SendSmtpEmail function found at...


I need to send MS Excel and MS Word documents as attachments. And so far this function will not accept any attachments other that a plain text file. It always errors on this code....

If i = lEncodedLines Then
*Last line of encoded data often is not
*equal to 45
strChunk = strFileData
StrFileData = ''
else
strChunk = LEFT( strFileData, 45 )
StrFileData = Sub Str( strFileData, 46 ) && <- Here
endif


Thanks,

FoxT
 
What is the error that you're getting on that line?

It looks like there is a space between "Sub" and "Str" in your posted code... the function "SUBSTR" has no space in it, so you should be alright if you make that little change.

(It seems that the Foxwiki is throwing that space in there... I'll change the wiki page to avoid that...)

- Bill

Get the best answers to your questions -- See FAQ481-4875.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top