Author |
|
Manoel Guest Group
Joined: 10 November 2003
Online Status: Online Posts: 262
|
Posted: 13 April 2006 at 3:44pm | IP Logged
|
|
|
Please,
Give-me a complete example using
SMTP component with Windows2003 server
and email server Exchange 2003
Thanks.
|
Back to Top |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 14 April 2006 at 8:08am | IP Logged
|
|
|
We provide two versions of SMTP component: COM based MailBee SMTP and MailBee.NET SMTP based on .NET technology.
Both versions of SMTP component are fully compatible with Windows 2003 server and Exchange 2003 server.
If you are going to use COM version (MailBee SMTP), then you can send mails as follows (in VB syntax):
Code:
Dim objSMTP
' Create mailer component
Set objSMTP = Server.CreateObject("MailBee.SMTP")
' Unlock SMTP component
objSMTP.LicenseKey = "put your license key here"
' Set SMTP server name
objSMTP.ServerName = "mail.server.com"
' Set message properties
objSMTP.FromAddr = "me@mydomain.com"
objSMTP.ToAddr = "you@yourdomain.com"
objSMTP.Subject = "Hi"
objSMTP.BodyText = "This is test message"
' Uncomment the following lines if your SMTP server requires authentication
'objSMTP.AuthMethod = 2
'objSMTP.UserName = "username" ' or username@mydomain.com (depends on mail server)
'objSMTP.Password = "password"
' Send it!
objSMTP.Send
objSMTP.Disconnect
|
|
|
For mail sending with MailBee.NET SMTP, please have a look at:
http://www.afterlogic.com/mailbee_net/docs/MailBee.SmtpMail. Smtp.Send_overload_1.html
It is an article from MailBee.NET documentation where you can find mail sending samples.
Regards,
Alex
|
Back to Top |
|
|