Author |
|
ssr Newbie
Joined: 10 March 2006 Location: France
Online Status: Offline Posts: 2
|
Posted: 10 March 2006 at 3:43am | IP Logged
|
|
|
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 |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 10 March 2006 at 7:16am | IP Logged
|
|
|
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 |
|
|
lentinus Newbie
Joined: 16 March 2007 Location: Germany
Online Status: Offline Posts: 1
|
Posted: 16 March 2007 at 9:03am | IP Logged
|
|
|
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 |
|
|
Andrew AfterLogic Support
Joined: 28 April 2006 Location: United States
Online Status: Offline Posts: 1189
|
Posted: 16 March 2007 at 9:19am | IP Logged
|
|
|
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 |
|
|