mail settings ERROR

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
14 years ago
this is the error i am getting while trying to setup the smtp in the mail settings section in admin:

Request for the permission of type 'System.Net.Mail.SmtpPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.


help? all of my smtp settings are correct.
14 years ago
Changing SMTP client ports is not allowed in medium trust. What is your port number?
14 years ago
port is 478.

i am using google (gmail) for my smtp.
14 years ago
anymore help on this?

i know it can be done. but im not heading the right direction.
14 years ago
All I can do is to recommend you to find a mail server which uses 25 port
14 years ago
maybe this is a stupid question, but why does it ask you the port of the smtp server, if its rquiring that you use port 25?

is there anyplace in the code that i can change it from port 25 to the port that i need?

thanks
tony p
14 years ago
Changing SMTP client ports is not allowed in medium trust. But you can change port number in full trust.
14 years ago
how do i go about changing trust settings?
14 years ago
ok i am now using an smtp server on port 25. this is the error i get.


Log type:      MailError
Severity:   11
Message:   Error sending e-mail. Failure sending mail.



Exception:   

System.Net.Mail.SmtpException: Failure sending mail. ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 64.202.165.58:25 at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) at System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP) at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception) --- End of inner exception stack trace --- at System.Net.ServicePoint.GetConnection(PooledStream PooledStream, Object owner, Boolean async, IPAddress& address, Socket& abortSocket, Socket& abortSocket6, Int32 timeout) at System.Net.PooledStream.Activate(Object owningObject, Boolean async, Int32 timeout, GeneralAsyncDelegate asyncCallback) at System.Net.PooledStream.Activate(Object owningObject, GeneralAsyncDelegate asyncCallback) at System.Net.ConnectionPool.GetConnection(Object owningObject, GeneralAsyncDelegate asyncCallback, Int32 creationTimeout) at System.Net.Mail.SmtpConnection.GetConnection(String host, Int32 port) at System.Net.Mail.SmtpTransport.GetConnection(String host, Int32 port) at System.Net.Mail.SmtpClient.GetConnection() at System.Net.Mail.SmtpClient.Send(MailMessage message) --- End of inner exception stack trace --- at System.Net.Mail.SmtpClient.Send(MailMessage message) at NopSolutions.NopCommerce.Common.Messages.MessageManager.SendEmail(String Subject, String Body, MailAddress From, MailAddress To, List`1 bcc, List`1 cc) in D:\Work\Own\NopCommerce\Solution\PublishedSite\Solution\Libraries\Nop.Common\Messages\MessageManager.cs:line 817 at NopSolutions.NopCommerce.Common.Messages.SendQueuedMessagesTask.Execute(XmlNode node) in D:\Work\Own\NopCommerce\Solution\PublishedSite\Solution\Libraries\Nop.Common\Messages\SendQueuedMessagesTask.cs:line 61



i have double and triple checked that the smtp server is working properly and is not using ssl or tsl. also the smtp server is using port 25.


thanks!
Tony P
14 years ago
Good Day,
I am having the same issue while trying to set up the outgoing mail in nopcommerce 1.20.

http://sterlingleafjewelry.com/SLJdownloads/email_error.jpg

Hosted at GoDaddy and I've tried several different configurations, saving after each, but none of them have worked.
Also, I'd love to post my log for this error but it's not there, nor are any of the emails in the queue.

Thank you,

S.West
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.