473,385 Members | 1,370 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,385 software developers and data experts.

smtpMail

Hi,

For years I have been using a simple method of sending email notifications
from a Windows app for one of my clients using:

System.Web.Mail.SmtpMail.SmtpServer ...
System.Web.Mail.SmtpMail.Send ...

It has been very reliable and stable. However, his provider is now
requiring that it be sent to a specific port, and may also require
authentication.

What is the recommended method for adding in these additional requirements?
I don't see a way to do it with the simple smtpMail.

Thanks.
Sep 1 '08 #1
5 1216
"Gerhard" <Ge*****@community.nospamwrote in message
news:58**********************************@microsof t.com...
However, his provider is now requiring that it be sent to a specific port,
http://www.systemwebmail.com/faq/2.9.aspx
and may also require authentication.
http://www.systemwebmail.com/faq/3.8.aspx

Also, assuming you're using at least .NET 2.0, you should seriously consider
using System.Net.Mail, as System.Web.Mail is now deprecated...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Sep 1 '08 #2
Thanks. This should work fine. I'm afraid the main client that needs this
currently is still on .net version 1.1.

"Mark Rae [MVP]" wrote:
"Gerhard" <Ge*****@community.nospamwrote in message
news:58**********************************@microsof t.com...
However, his provider is now requiring that it be sent to a specific port,

http://www.systemwebmail.com/faq/2.9.aspx
and may also require authentication.

http://www.systemwebmail.com/faq/3.8.aspx

Also, assuming you're using at least .NET 2.0, you should seriously consider
using System.Net.Mail, as System.Web.Mail is now deprecated...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Sep 1 '08 #3
"Gerhard" <Ge*****@community.nospamwrote in message
news:D5**********************************@microsof t.com...

[please don't top-post]
>Also, assuming you're using at least .NET 2.0, you should seriously
consider
using System.Net.Mail, as System.Web.Mail is now deprecated...

Thanks. This should work fine. I'm afraid the main client that needs
this
currently is still on .net version 1.1.
Ouch! Presumably you've informed them that mainstream support for that
version ends next month...?
http://support.microsoft.com/lifecyc...ilter=FilterNO
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Sep 1 '08 #4
Hi Gerhand,

For system web mail and smtp authentication, you can check the following
article also:

#SMTP Authentication using System.Web.Mail (CDOSYS)
http://www.codeproject.com/KB/dotnet...SMTP_AUTH.aspx

As Mark suggested, if possible, it is definitely recommended that we use
the .NET 2.0 System.Net.Mail to substitute the old system.web.mail one.

And just like the "systemwebmail", here is also a FAQ for system.net.mail:

#Frequently Asked Questions for System.Net.Mail
http://www.systemnetmail.com/

Hope this also helps.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subs...#notifications.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
>From: =?Utf-8?B?R2VyaGFyZA==?= <Ge*****@community.nospam>
References: <58**********************************@microsoft.co m>
<#3**************@TK2MSFTNGP03.phx.gbl>
>Subject: Re: smtpMail
Date: Mon, 1 Sep 2008 09:40:01 -0700
>
Thanks. This should work fine. I'm afraid the main client that needs
this
>currently is still on .net version 1.1.

"Mark Rae [MVP]" wrote:
>"Gerhard" <Ge*****@community.nospamwrote in message
news:58**********************************@microso ft.com...
However, his provider is now requiring that it be sent to a specific
port,
>>
http://www.systemwebmail.com/faq/2.9.aspx
and may also require authentication.

http://www.systemwebmail.com/faq/3.8.aspx

Also, assuming you're using at least .NET 2.0, you should seriously
consider
>using System.Net.Mail, as System.Web.Mail is now deprecated...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Sep 2 '08 #5
I have a small library that wraps up different smtp configurations nicely.
1.1 code is there as well.
If you put it in, you won't have to worry about changing smtp needs.

http://sholliday.spaces.live.com/blog/cns!A68482B9628A842A!138.entry


"Gerhard" <Ge*****@community.nospamwrote in message
news:58**********************************@microsof t.com...
Hi,

For years I have been using a simple method of sending email notifications
from a Windows app for one of my clients using:

System.Web.Mail.SmtpMail.SmtpServer ...
System.Web.Mail.SmtpMail.Send ...

It has been very reliable and stable. However, his provider is now
requiring that it be sent to a specific port, and may also require
authentication.

What is the recommended method for adding in these additional
requirements?
I don't see a way to do it with the simple smtpMail.

Thanks.


Sep 2 '08 #6

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

Similar topics

7
by: Jason | last post by:
Hi just a really quick simple question. Can you configure SmtpMail class in C# to use a different port? or does it have to be port 25? Thanks Jason
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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...

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.