How to send email by using Exchange server in Classic ASP? -


i migrating classic asp application new server, smtp server not allowed in new server, can give me tips how send email via exchange server?

classic asp's cdosys component has remote server parameter use send emails via exchange server on port 25.

<% set mymail=createobject("cdo.message") mymail.subject="sending email cdo" mymail.from="mymail@mydomain.com" mymail.to="someone@somedomain.com" mymail.textbody="this message." mymail.configuration.fields.item _ ("http://schemas.microsoft.com/cdo/configuration/sendusing")=2 'name or ip of remote smtp server mymail.configuration.fields.item _ ("http://schemas.microsoft.com/cdo/configuration/smtpserver")="smtp.server.com" 'server port mymail.configuration.fields.item _ ("http://schemas.microsoft.com/cdo/configuration/smtpserverport")=25  mymail.configuration.fields.update mymail.send set mymail=nothing %> 

Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -