sending CSV file over mail

Hi, do anyone knows how to send CSV or logged file over mail.I've tried smtp2go using Ethernet shield but it is only sending mails not attachments.
Is their any tutorials to send logged file over mail.
Thanks.

This really isnt an 'Arduino' thing...

but more so the 'smp2go' service requirement....no?

How does the service expect attachment(s)? How are you adding/sending the attachment(s)? PHP script?

Are you preparing/creating a 'file' before sending it to smp2go?

(what about the headers and file type?) configured to send as 'attachment'?

xl97:
This really isnt an 'Arduino' thing...

but more so the 'smp2go' service requirement....no?

How does the service expect attachment(s)? How are you adding/sending the attachment(s)? PHP script?

Are you preparing/creating a 'file' before sending it to smp2go?

(what about the headers and file type?) configured to send as 'attachment'?

Well I've to send logged file from arduino to mail and have no idea how to do that, can you help.

Ethernet shield.
Send a POST packet to a PHP page that parses the POST data to a linux server that forms the mail request.

You need some knowledge of PHP, how to protect against injection/js-injection etc. and also how to set up (very easy) a web page with your own host tools.

I would agree..

If this were myself attempting this..

I wouldnt need to use any 'smp2go' service or whatever.

I'd throw a .php script up on my domain and pass the data from my Arduino/Ethernet shield to it, and let the built in mail() handler send things out.

I know .php can create .csv files, but I have created one and used it as an attachment on the fly before. (however I'm sure its doable)

As others said, using a web service is easier. If you have a file in memory and want o send the file using smtp, you need to study and implement SMTP protocol and do this using low level sockets.

Here is a related discussion. You can see related issues and how SMTP protocol can be implemented:

http://forum.arduino.cc/index.php?topic=126829.0