You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
Required fields*
- Hi - ok, tried that, but the message is still: System.Net.Mail.SmtpException: Failure sending mail. ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it myipaddress:25 at System.Net.Sockets.Socket.DoConnect - tried with 25 and 587 (still can't understand why Outlook can do it, and not code!)Mark– Mark2013-03-08 23:25:24 +00:00Commented Mar 8, 2013 at 23:25
- how are you connecting to the SMTP server? VPN ? is outlook hosted in the same machine that the code ?BrOSs– BrOSs2013-03-08 23:26:41 +00:00Commented Mar 8, 2013 at 23:26
- Hi - I'm sitting in my home, at my local computer - with Outlook running with the settings as in the screenshot above. The code is running on a dedicated server with UKFast. It is attempting to use the same email account that my local Outlook is hooked up to, to send emails via the other VPS UKFast server that my website is on (website for advertising the application, and the applications itself, are on two separate servers, both hosted by UKFast).Mark– Mark2013-03-08 23:30:28 +00:00Commented Mar 8, 2013 at 23:30
- I can't see the image 'cause I'm firewalled at work. Could you run the code in your local computer? Are you sure that we are using the right port?BrOSs– BrOSs2013-03-08 23:36:32 +00:00Commented Mar 8, 2013 at 23:36
- Hi @BrOSs - I'm going to mark your resposne as the answer - as it IS working on my local computer for some reason. THere must be something on the dedicated server, stopping it running from there. THank you so much for helping trouble shoot this, I really appreciate your time and patience!Mark– Mark2013-03-08 23:45:54 +00:00Commented Mar 8, 2013 at 23:45
Add a comment |
How to Edit
- Correct minor typos or mistakes
- Clarify meaning without changing it
- Add related resources or links
- Always respect the author’s intent
- Don’t use edits to reply to the author
How to Format
- create code fences with backticks ` or tildes ~ ```
like so
``` - add language identifier to highlight code ```python
def function(foo):
print(foo)
``` - put returns between paragraphs
- for linebreak add 2 spaces at end
- _italic_ or **bold**
- indent code by 4 spaces
- backtick escapes
`like _so_` - quote by placing > at start of line
- to make links (use https whenever possible) <https://example.com>[example](https://example.com)<a href="https://example.com">example</a>
How to Tag
A tag is a keyword or label that categorizes your question with other, similar questions. Choose one or more (up to 5) tags that will help answerers to find and interpret your question.
- complete the sentence: my question is about...
- use tags that describe things or concepts that are essential, not incidental to your question
- favor using existing popular tags
- read the descriptions that appear below the tag
If your question is primarily about a topic for which you can't find a tag:
- combine multiple words into single-words with hyphens (e.g. python-3.x), up to a maximum of 35 characters
- creating new tags is a privilege; if you can't yet create a tag you need, then post this question without it, then ask the community to create it for you
default