Share via


Classic ASP, Server 2008, CDO - error '80040211'

Question

Monday, December 15, 2014 3:13 PM

Hi

I am trying to send email from a Classic ASP application hosted on Windows Azure.

I am unable to use the local SMTP so I have decided to use the Windows Live (hotmail) SMTP server. (smtp.live.com on port 25)

I am receiving the error:

error '80040211'

which is apparently down to the server being unable to communicate with the SMTP relay. However the exact same code works on my local PC correctly, so I know the settings are all correct (username, password, etc etc)

See here: http://www.c-amie.co.uk/technical/cdo-error-80040211/ for a similar issue.

I have tried telnet and I can telnet to the smtp server with no issues.

Anyone able to offer any advice?

Thanks in advance.

All replies (7)

Wednesday, December 17, 2014 3:51 PM âś…Answered

I have read somewhere that MS doesn't encourage use of SMTP server in Azure. One reason is that the SMTP server may send out too many emails and then the IP address gets blacklisted. It looks like this is the case that the IP address has been blocked to send emails. If you use external email provider such as SendGrid there will be no problem.

Frank


Monday, December 15, 2014 4:18 PM

VM endpoint not created?

http://azure.microsoft.com/en-us/documentation/articles/virtual-machines-set-up-endpoints/

Frank


Monday, December 15, 2014 7:09 PM

Hi Frank, Thanks for the reply. I have looked into this but I believe this is for incoming connections (ftp,Remote Desktop, http, etc..). Whereas I am trying an outgoing connection to SMTP.live.com, which works fine through telnet but not through my classic asp application, From what I've read all outgoing access should be open - or perhaps I've misunderstood Cheers


Monday, December 15, 2014 7:12 PM

You still need the SMTP server to talk back.

Frank


Wednesday, December 17, 2014 1:11 PM

Ah right, so i guess I need to open up port 25 via the endpoints?

And also install the SMTP server within IIS?

Regards

Dave


Wednesday, December 17, 2014 2:14 PM

Ok - so i tried the above but this did not work.

Instead I decided to set up the SMTP server on the virtual machine and then send the email from there.

The email attempts to send but the mail is sat in the BadMail folder with an error of:

Action: failed
Status: 5.5.0
Diagnostic-Code: smtp;550 SC-001 (COL004-MC2F21) Unfortunately, messages from 23.102.33.13 weren't sent. Please contact your Internet service provider since part of their network is on our block list. You can also refer your provider to http://mail.live.com/mail/troubleshooting.aspx#errors

Any idea how I can get this working?


Wednesday, December 17, 2014 7:48 PM

Hi Frank,

Thanks for the response. Perhaps that is the issue. I'll take a look at SendGrid.

Regards

Dave