Hi,

Instead of generating multi-part message by hand, you should use a
client library for whatever language you are programming in.  For
example, in Java you could use classes from javax.mail.internet in
JavaMail API.

The link I sent before shows an example of an email with a text
message part and an attachment part:

http://en.wikipedia.org/wiki/MIME#Multipart_messages

Keep in mind the Email Migration API is for migrating existing
messages which should already be in RFC822 format.  If you are
generating new messages programmatically, you should just use SMTP,
IMAP or POP3 to insert them.

-alex

On Mar 28, 9:16 pm, Bam <[EMAIL PROTECTED]> wrote:
> How about format message when the message include body message and
> attachment file??
> Or the place of between body message and attachment structure
>
> It's example my format:
>
> message += "Date: Sat, 29 Mar 2008 10:12:26\n";
> message += "From: [EMAIL PROTECTED]";
> message += "To: [EMAIL PROTECTED]";
> message += "CC: [EMAIL PROTECTED]";
> message += "Subject: attachment\n";
> message += "MIME-Version: 1.0\n";
> message += "Content-Type: text/plain\n";
> message += "Content-Description: link.txt\n";
> message += "Content-Transfer-Encoding: base64\n";
> message += "Content-Disposition: attachment;filename=\"link.txt\"\n";
> message +=
> "aHR0cDovL3d3dy5tc2V4Y2hhbmdlLm9yZy9hcnRpY2xlcy9BY2Nlc3MtRXhjaGFuZ2UtMjAwMC0yMDAzLU1haWxib3gtV2ViREFWLmh0bWw=";
> message += "OK";
>
> Thanks,
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Apps APIs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-apps-apis?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to