Got error when trying to add those lines:
[HttpException (0x80004005): Could not access 'CDO.Message' object.]
System.Web.Mail.LateBoundAccessHelper.CallMethod(O bject obj, String
methodName, Object[] args) +112
System.Web.Mail.CdoSysHelper.Send(MailMessage message) +1861
System.Web.Mail.SmtpMail.Send(MailMessage message) +150
"Patrice" <no****@nowhere.com> wrote in message
news:u6*************@TK2MSFTNGP15.phx.gbl...
You should be able to access this through the fields collection :
http://support.microsoft.com/default...b;en-us;555287
(the sample is rather devoted to authentication but also defines as well
the port).
The CDO documentation list all fields available :
http://msdn.microsoft.com/library/de...22bb7ce17c.asp
--
Patrice
"Zean Smith" <no****@nospamaaamail.com> a écrit dans le message de
news:fK********************@rogers.com... I have a SMTP server running on port 9025, but seems like this doesn't
work.
SmtpMail.SmtpServer = "192.168.34.15:9025";
SmtpMail.Send( mail );
I couldn't find any properties on SmtpMail let me configure the port
number, any idea?