Will asp.net apps work unchanged when ME installed ?

Discussion for developers using MailEnable.
Post Reply
ricky309
Posts: 1
Joined: Wed Feb 25, 2004 12:34 pm

Will asp.net apps work unchanged when ME installed ?

Post by ricky309 »

I have checked through a lot of posts about ME and asp.net and not found the answer to this.

If I install ME on my asp.net server (replacing the Microsoft SMTP service in the process) will my asp.net mail applications work *unchanged* - or do I have to use some kind of ME mail component ?

I currently use the following:

<%@ import Namespace="system.web.mail" %>
...
...
mailMsg As new MailMessage()
mailMsg.From = mailfrom
mailMsg.To = mailto
mailMsg.Subject = subject
mailMsg.Body = body
smtpmail.send(mailMsg)

Thanks,

Kiliman
Posts: 279
Joined: Mon Feb 03, 2003 2:44 pm
Location: Chesapeake, VA

Post by Kiliman »

You'll need to add a new line:
<%@ import Namespace="system.web.mail" %>
...
...
mailMsg As new MailMessage()
mailMsg.From = mailfrom
mailMsg.To = mailto
mailMsg.Subject = subject
mailMsg.Body = body
SmtpMail.SmtpServer = "localhost"
smtpmail.send(mailMsg)
The .NET SmtpMail class is simply a wrapper around CDOSYS. By default, it will use the MS SMTP drop directory to send mail. If you're going to use a different server, you need to specify which one. Use localhost if ME is running on the same machine.

You will need to enable relay for 127.0.0.1 in ME SMTP settings. If you want to enable relay to allow the web server to send mail, these are the minimum settings you need:

Code: Select all

[X] Allow Mail Relay
    
     [ ] Allow relay for authenticated senders
     [x] Allow relay for privileged IP ranges
     [ ] Allow relay for local sender addresses

Priviliged IPs...

By default, all computers will be:
     ( ) Granted relay rights
     (*) Denied relay rights

Except those listed below:
     127.0.0.1
Restart the SMTP service, and you're all set.

Kiliman

BlizzardDigital
Posts: 2
Joined: Fri Feb 27, 2004 7:24 am

Post by BlizzardDigital »

You could just change the port on MS SMTP from 25 to 26 so it doesn't conflict with ME.

Post Reply