Attach image File

BlitzMax Forums/BlitzMax Beginners Area/Attach image File

gameshastra(Posted 2007) [#1]
Can any one tell the procedure for attaching image using MIME convertions on SMTP server??


Now I 'm using MIME Type to send mail.
1) I 'm reading Image file in a character format and passing to the socketstream
2) Now size is interpreting Correctly but it is not opening the image on the receiver end


Can any body know the solution for this ,Please tell me.


tonyg(Posted 2007) [#2]
You asked this about 6 months ago..


xlsior(Posted 2007) [#3]
After base-64 mime encoding a binary file, it is sent over SMTP like any other plain text data is.

As far as how to generate the encoding and how to place it in the email body, check out these two links:

http://www.faqs.org/rfcs/rfc2045.html
http://www.wotsit.org/getfile.asp?file=mime_overview&sc=249099667


Yan(Posted 2007) [#4]
There's B2D MIME/SMTP code in the archives. It should be pretty easy to translate to BMax.


Perturbatio(Posted 2007) [#5]
You asked this about 6 months ago..

This is probably a different person, gameshastra is a rent-a-coder type thing.


Dreamora(Posted 2007) [#6]
But still can not be a different person ... licenses are per person, not per company or per "rent-a-coder" thingy :)


xlsior(Posted 2007) [#7]
But still can not be a different person ... licenses are per person, not per company or per "rent-a-coder" thingy :)


This has come up in the past. See this thread:
http://blitzmax.com/Community/posts.php?topic=70855

'Gameshastra' lists 'US, India, Sweden' under 'country' in their forum profile, and has signed messages posted to the forum with at least three different names in the past. (Lance, Bjorn & D. Ramesh)