CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

MS SQL 2008 on ASP.NET Hosting
Free 3 Months



Zone: > NEWSGROUP > Asp.Net Forum > starter_kits_and_source_projects.classifieds_starter_kit Tags:
Item Type: NewsGroup Date Entered: 10/21/2006 11:35:44 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 10 Views: 58 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
11 Items, 1 Pages 1 |< << Go >> >|
Annddrew
Asp.Net User
Email not working with an SMTP server that has SSL?10/21/2006 11:35:44 PM

0/0

Hi I'm new to the Classifieds Starter Kit. I just installed it today. Everything seems to be working fine except email. My settings for  email in web.config are:

<smtp>

<network host="smtp.mydomainname.com" port="25" defaultCredentials="true" userName="myemail@mydomainename.com" password="mypassword"/>

</smtp>

The exception I get from any function that sends email is "The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.0 Must issue a STARTTLS command first"

My ISP told me that its smtp server uses encryption with SSL (and still port 25). Could that be the problem? If so how can I get this to work with SSL ?

Thank you very much for any help....


 

albertpascual
Asp.Net User
Re: Email not working with an SMTP server that has SSL?10/21/2006 11:47:13 PM

0/0

Can you look if there is the flag SSL=true? If not you'll have to change the source code to add that into the fuction before you recompile. I remember working in that source code a year ago, there is only one place you need to change it. Its 1.1 or 2.0?
Cheers
Al

My Blog
Please click on 'Mark as Answer' if this post answered your question!
Annddrew
Asp.Net User
Re: Email not working with an SMTP server that has SSL?10/22/2006 12:14:54 AM

0/0

Thanks albertpascual for your quick answer. It's 2.0. Is the SSL flag you are talking about looks like the following:?

System.Net.Mail.SmtpClient mailClient = new System.Net.Mail.SmtpClient();

mailClient.EnableSsl = true;

Thanks

Annddrew
Asp.Net User
Re: Email not working with an SMTP server that has SSL?10/22/2006 1:17:23 PM

0/0

If I set in code the flag EnableSsl to true and if I set in web.config the flag defaultCredentials to false then the email works fine. Thank you for your help !
albertpascual
Asp.Net User
Re: Email not working with an SMTP server that has SSL?10/22/2006 3:08:57 PM

0/0

Didn't do much!

Have fun programming!


Cheers
Al

My Blog
Please click on 'Mark as Answer' if this post answered your question!
Tomaszek
Asp.Net User
Re: Email not working with an SMTP server that has SSL?12/14/2006 9:02:43 PM

0/0

Annddrew:

Thanks albertpascual for your quick answer. It's 2.0. Is the SSL flag you are talking about looks like the following:?

System.Net.Mail.SmtpClient mailClient = new System.Net.Mail.SmtpClient();

mailClient.EnableSsl = true;

Thanks

Hi,

I see that I have the same problem as you only you already has sovled it. Could you tell me where exactly in code you heve set EnableSsl = true? On your Default page in code behind file? Or somewhere else? Many thanx in advance

ahari312
Asp.Net User
Re: Email not working with an SMTP server that has SSL?2/14/2007 6:13:09 PM

0/0

Hi I am trying toget my mail working on my classified site and I came across your post...

I am having a similar problem... everything works fine except my email .. when you click on the "Respond to Ad"  link I get an error that says "email not sent"

I have had a couple of suggestions on how to fix it but when I ask further questions they go unanswered. This is my first asp site so I am very new to asp..

I was wondering if you could possibly answer a question for me....

I was told I could fix my email with the following code....

<

system.net>

<

mailSettings>

<

smtp deliveryMethod="Network" from="[email protected]">

<

network host="mailserver.domain.co.uk" port="25" userName="[email protected]" password="password" defaultCredentials="true"/>

</

smtp>

</

mailSettings>

</

system.net>

Then

Dim

maFrom As New MailAddress("[email protected]")

 

Dim

maTo As New MailAddress("[email protected]")

 

Dim

m As New MailMessage(maFrom, maTo)

 

Dim smtp As New SmtpClient()

smtp.UseDefaultCredentials =

True

smtp.Send(m)

but where does the code from the word Then go? I don't think it goes in the web.config file.... and Is the first ewmail address the address that I want them to respond to? Where do I get the second email addresss? 

Any help would be most appreciated?

thanks

tcblues
Asp.Net User
Re: Email not working with an SMTP server that has SSL?4/22/2007 6:09:24 PM

0/0

The problem for me it's because I'm using the .NET login controls and I need to send mails only changing the SSL attribute in the web.config but I don't the name of the attribute and how to use it.

 I hope somebody can help me.

 Thank you.

 


-----
http://tcberglind.blogspot.com
elbotsik
Asp.Net User
Re: Email not working with an SMTP server that has SSL?7/2/2007 9:30:18 AM

0/0

I am still looking on to how to enable ssl via the web.config but I am starting to believe there is no such option... 

All I got from http://www.systemnetmail.com/faq/4.5.aspx is that the defaultCredentials won't work that well with the enableSsl.

elbotsik
Asp.Net User
Re: Email not working with an SMTP server that has SSL?7/2/2007 10:35:14 AM

0/0

Why do you specify in the config file the username and the password since you are using defaultCredentials? These two elements are used only if you specify defaultCredentials="false" (which is the default value)

victorantus
Asp.Net User
Re: Email not working with an SMTP server that has SSL?7/16/2007 8:46:14 AM

0/0

Hi!

How do I enable Ssl in web.config. I tried enableSsl="true" but it does not work:

<smtp>

<network host="smtp.gmail.com" enableSsl="true" password="bla bla" port="587" userName="victorantos@gmail.com" />

</smtp>

11 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Network Security: The Complete Reference Authors: Roberta Bragg, Mark Rhodes-Ousley, Keith Strassberg, Pages: 854, Published: 2004
MCSA/MCSE: Windows Server 2003 Network Security Administration (70-299) Authors: Russ Kaufmann, Bill English, Pages: 608, Published: 2004
Mac OS X Security Authors: Bruce Potter, Preston Norvell, Brian Wotring, Pages: 385, Published: 2003
Microsoft SQL Server 2000 Reporting Services Authors: Brian Larson, Pages: 704, Published: 2004
Microsoft Exchange Server 2003: 24 Seven Authors: Jim McBee, Barry Gerber, Pages: 928, Published: 2004
Hardening Linux Authors: James Turnbull, Pages: 552, Published: 2005
Network+ Study Guide & Practice Exams: Exams: Exam N10-003 Authors: Robert Shimonski, Michael Cross, Laura E. Hunter, Norris L. Johnson, Jr., Pages: 923, Published: 2005
Mac OS X System Administration Reference: Directory Services , Security , and Networking and File Services Authors: Schoun Regan, Pages: 800, Published: 2006
Handbook of Information Security: Threats, Vulnerabilities, Prevention, Detection, and Management Authors: Hossein Bidgoli, Pages: 3366, Published: 2006
Beginning SharePoint Administration: Windows SharePoint Services and SharePoint Portal Server Authors: Göran Husman, Pages: 522, Published: 2006

Web:
Email not working with an SMTP server that has SSL? - ASP.NET Forums Email not working with an SMTP server that has SSL? Rate It (1). Last post 10-31 -2008 9:44 AM by darkknight187. 16 replies. Sort Posts: ...
Email not working with an SMTP server that has SSL? - ASP.NET Forums Re: Email not working with an SMTP server that has SSL? 10-21-2006, 7:47 PM ... Re: Email not working with an SMTP server that has SSL? 10-21-2006, 8:14 PM ...
Web.config: Email not working with an SMTP server that has SSL Web.config: Email not working with an SMTP server that has SSL. Did you figure out the ssl attribute for the web config , I am looking for the same awnser ...
Error (SMTP) server does not support SSL-secured connections ... Error (SMTP) server does not support SSL-secured connections - forum ... test messages "pass" while real e-mail does not get sent out? ...
STEPHEN CHU . com: How to use GMail SMTP server to send emails in ... My Rails and Ruby (1.84) version do not yet support creating a SSL SMTP ...... Hi guys, I got this to work but the email that is being sent out has the ...
FogBugz Technical Support - Fogbugz local smtp not working after ... My fogbugz server has Windows IIS smtp virtual server to send email out, ... Can fogbugz email working if I keep SSL for the website and smtp for only ...
Email at Fermilab Even when configured to not use TLS or SSL it trys to start a authenticated session. ... Set SMTP Server Requires SSL and change the default port to 465. ...
HiddenTao > SMTP server not working for Yahoo UK accounts Jul 12, 2008 ... SMTP server not working for Yahoo UK accounts ... I am now managing to send a few emails using smtp.mail.yahoo.co.uk (SSL port 465). ...
Interspire.SMTP.com - Your Email Marketing Software Relay Server> FAQ If your account is not working, please read the following important information before ... SMTP.com has expired, but my emails still go out successfully! ...
Background Information for SSL Some older Email client configurations may still be specifying “smtpserver.sfu. ca”. This hostname is being phased out because it does not support SSL ...




Search This Site:










viewdocument.aspx security

problem configuring the portal with ibuyspysetup (database bit)

omniportal 0.4 release

registering problem

msde install error

newbie problem: just dl'd portal, but cant run...

error while editing

how was portalcfg.xml created?

notimplemented.aspx

ibuyspy setup errror - please help!

bug: development of portal is falling apart - suggest forking the code.

vs with ibs query

pa installation error

remember login

module name: schwing content

installing ibuyspy - need help

new in the web community, but very old in programming

immediate display of newly added tab

please can someone post the original content of setup.ini?

installing portal software i

how can i get the administrator account and it's password?

about the table portal_userroles

installation problems

search engine sprider/crawler

inheritence not working to allow code behinds

control.visible = true not working

error installin prgram

setup failed

output parameters are not available until the datareader is closed

how to put in a module

  Privacy | Contact Us
All Times Are GMT