Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET SMTP

 AfterLogic Forum : MailBee.NET SMTP
Subject Topic: send mime multipart alternative message Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
shamora
Newbie
Newbie
Avatar

Joined: 21 May 2013
Location: United States
Online Status: Offline
Posts: 7
Posted: 27 May 2013 at 5:51am | IP Logged Quote shamora

I was searching thru your documentation and I found only how to read mime multipart encoded messages but not how to send via smtp.
can you give me some hints please?
how is the boundary generated? where to add the start/middle/end of multipart?
a link to the example code would be nice.
thanks!
Back to Top View shamora's Profile Search for other posts by shamora
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 27 May 2013 at 6:55am | IP Logged Quote Alex

You don't need to to care about MIME at all. Just set properties like mailer.Message.BodyPlainText and mailer.Message.BodyHtmlText and MailBee.NET will create an alternative MIME body (mailer is Smtp instance). If you add an attachment, it will be wrapped in multipart/mixed and so on.

Just extend any sample here with setting both mailer.Message.BodyPlainText and mailer.Message.BodyHtmlText. You'll get what you need.

MailBee.SmtpMail.Smtp.Send
Back to Top View Alex's Profile Search for other posts by Alex
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide