473,387 Members | 1,530 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

How to use SmtpMail on non-standard port?

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?
Nov 19 '05 #1
2 2099
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?

Nov 19 '05 #2
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?


Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Leszek | last post by:
Hello, I have created a simple code to send emails using the MailMessage class and the SmtpMail.Send() method: MailMessage mail = new MailMessage(); mail.From = echidna@somewhere.com; //...
5
by: ElanKathir | last post by:
Hi ! I wrote one code for Send the E-mail, But that code have some problem , So please help me Here i paste my code and Error: Error: Server Error in '/Elan_Sample' Application. ...
2
by: Edward | last post by:
Hello, everybody, I tried to send Email out using ASP.NET, but failed, here is the code of sending: -------------------------------------------------------------------------------- Try...
1
by: Jens Øster | last post by:
Hi I am writing a ASP.NET web application that must sent some e-mails. I get the exception “Could not access 'CDO.Message' object†when I call SmtpMail.Send. This only happens when I send...
3
by: Jens | last post by:
Hi I am writing a ASP.NET web application that must sent some e-mails. I get the exception “Could not access 'CDO.Message' object†when I call SmtpMail.Send. This only happens when I send...
4
by: Aren Cambre | last post by:
Why does SmtpMail.Send throw an exception if the MailMessage's BodyFormat = MailFormat.Html? I've searched all over the place and cannot find a solution anywhere. I am running this on Windows XP...
2
by: kmbarz | last post by:
I'm trying to expand my horizons here by working through an ASP.Net book. When I do the example that uses: Line 55: Mail.From = "feedback@graymad.com" Line 56: ...
3
by: aslantifosi | last post by:
hi all, My question is about that i use a smpt server which is running on a different machine from my webserver machine. And i can authenticate with a user and password. I use SmtpMail class. i...
19
by: zdrakec | last post by:
Hello all: Using an "Imports System.Web.Mail" clause at the head of my module, and after executing the following code: Dim msg As New MailMessage msg.From = sender msg.To = recipient...
2
by: Tim | last post by:
Hi all, I have a problem with SMTPMail as I want to evaluate the respone of the server, but unfortunately I could neither on the web nor in the MSDN find an example of it. There is no problem...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.