Search The ForumSearch   RegisterRegister  LoginLogin

MailBee SMTP

 AfterLogic Forum : MailBee SMTP
Subject Topic: Embedded images Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
ssr
Newbie
Newbie


Joined: 10 March 2006
Location: France
Online Status: Offline
Posts: 2
Posted: 10 March 2006 at 3:43am | IP Logged Quote ssr

Hi,

How to send a mail with the MailBee SMTP component to have embedded images inside the email ?

Thanks for your help.
Stan
Back to Top View ssr's Profile Search for other posts by ssr
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 10 March 2006 at 7:16am | IP Logged Quote Alex

It’s quite easy to send emails with embedded pictures with the MailBee SMTP component.
However, the message should be HTML formatted. You can take a look at this sample to learn how to do it:
Code:

Dim Mailer

'Using Visual Basic to create object
Set Mailer = CreateObject("MailBee.SMTP")

'Using ASP to create object
'Set Mailer = Server.CreateObject("MailBee.SMTP")

Mailer.LicenseKey = "put your license key here"
Mailer.ServerName = "mail.site.com"

Mailer.Message.ToAddr = "Bill Smith <bill@server1.com>"
Mailer.Message.FromAddr = "John Doe <jdoe@site.com>"
Mailer.Message.Subject = "This is HTML message"

' Import "email.htm" file as HTML
' (including embedded pictures, scripts, etc.)
' If related images/scripts/etc are available on the disk,
' they will be added as inline attachments (i.e. embedded objects)
Mailer.Message.ImportBodyText "C:\docs\email.htm", True

Mailer.Send
Mailer.Disconnect

If your SMTP server requires authentication, please see SMTP.AuthMethod property reference in MailBee documentation on how to enable it.

You can find more detailed description and examples in MailBee Objects Documentation:
MailBee Tutorials->Creating and sending HTML-formatted messages.

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 
lentinus
Newbie
Newbie


Joined: 16 March 2007
Location: Germany
Online Status: Offline
Posts: 1
Posted: 16 March 2007 at 9:03am | IP Logged Quote lentinus

I downloaded the trial-version, but i can't find the "MailBee Tutorials"-Section in your documentation.
Where can i find this tutorials?
Back to Top View lentinus's Profile Search for other posts by lentinus
 
Andrew
AfterLogic Support
AfterLogic Support


Joined: 28 April 2006
Location: United States
Online Status: Offline
Posts: 1189
Posted: 16 March 2007 at 9:19am | IP Logged Quote Andrew

Our records state you downloaded MailBee.NET Objects (.NET assembly), not MailBee Objects (ActiveX component). The tutorials mentioned above are available in MailBee Objects documentation. Similar tutorials will be available in one of future versions of MailBee.NET Objects documentation. But the current version of the documentation contains a lot of source code samples. Also, there are some demo applications shipped with MailBee.NET Objects.

Best regards,
Andrew
Back to Top View Andrew's Profile Search for other posts by Andrew
 

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