Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET SMTP

 AfterLogic Forum : MailBee.NET SMTP
Subject Topic: Seems to ignore mail server specified Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Neil Phillipson
Guest Group
Guest Group


Joined: 10 November 2003
Online Status: Online
Posts: 262
Posted: 23 April 2006 at 10:17pm | IP Logged Quote Neil Phillipson

Whatever we specify in the "ServerName" propery, Mailbee
always sends the message via the local machine (which is
running an SMTP virtual server). This is a problem because we
need to route certain types of e-mail via different servers.
Can you suggest what it might be that is causing this?

Many thanks

Neil
Back to Top View Neil Phillipson's Profile Search for other posts by Neil Phillipson
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2157
Posted: 24 April 2006 at 1:45pm | IP Logged Quote Alex

Could you please provide us with part of your code where you connect/login to SMTP server
(send it to support@afterlogic.com)?

Also, if you find out any problem with mail sending, it's recommended to enable MailBee
logging.

The following sample enables logging, creates message and sends it using SMTP protocol.

Code:

Dim oSmtp
Set oSmtp = CreateObject("MailBee.SMTP")

' Enable logging
oSmtp.EnableLogging = True
' Make sure you have permissions to write to the specified location
oSmtp.LogFilePath = "C:\log.txt"
oSmtp.ClearLog

oSmtp.LicenseKey = "put your license key here"
oSmtp.ServerName = "mail.domain.com"

' Set message properties
oSmtp.Message.ToAddr = "bill@domain.com"
oSmtp.Message.FromAddr = "joe@domain.com"
oSmtp.Message.Subject = "Test message"
oSmtp.Message.BodyText = "This is test message"

' Send it
oSmtp.Send

oSmtp.Disconnect


To investigate the problem in more detail, could you please run the sample code (don't forget
to specify your SMTP server name, recipient and sender addresses) and send the log file for
examination to support@afterlogic.com?

Regards,
Alex
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