send emails using MailEnable component in our asp.net web

rangasamy
Posts: 1
Joined: Wed Sep 30, 2009 1:50 pm

send emails using MailEnable component in our asp.net web

Postby rangasamy » Wed Sep 30, 2009 1:53 pm

I want to send emails using MailEnable component in our asp.net web application.

Currently we used to do this with IIS Default SMTP Server.

How can I send email using MailEnable component?

Can anyone help me?

mattblack
Posts: 20
Joined: Mon Jan 11, 2010 9:35 pm

Re: send emails using MailEnable component in our asp.net web

Postby mattblack » Wed Jan 13, 2010 3:00 pm

Same problem here... but there's nothing on this forum, nor in the developers' resources.

I can't believe a product like this, that costs $1200 or so for the full version, doesn't have such basic documentation.

Will ME PLEASE get some example asp and aspx files created? Until I can create a mailbox from asp I wont be buying ME. You .net reference documents are useless to me without knowing how to implement the namesapces etc.

SOME EXAMPLES PLEASE ME!!!!!!

Thanks

MailEnable
Site Admin
Posts: 4441
Joined: Tue Jun 25, 2002 3:03 am
Location: Melbourne, Victoria Australia

Re: send emails using MailEnable component in our asp.net web

Postby MailEnable » Thu Jan 14, 2010 1:22 pm

You are best to use the inbuilt .net SMTP handler to dispatch e-mail.

You basically just configure the hostname, port (25) and auth credentials and e-mail message contents and then call the send method.

The following doc/examples should assist:

http://msdn.microsoft.com/en-us/library ... .mail.aspx

http://www.knowdotnet.com/articles/smtp.html

There is no specific interface for sending e-mail provided by MailEnable's administration objects (because .Net provides the one mentioned above). In terms of using MailEnable objects, once you include the references in your application, intellisense and the docs should allow you to access the appropriate methods/objects. The sample VB.NET project is your best kickstart.
Regards, Andrew

appaulled
Posts: 20
Joined: Mon Feb 14, 2005 8:38 pm
Location: USA

Re: send emails using MailEnable component in our asp.net web

Postby appaulled » Tue Nov 23, 2010 9:48 pm

What if the webserver and MailEnable are on the same server? Doesn't this mean we then have to configure two mailservers? Can we just use the MEASP.dll in ASP.NET?

Brett Rowbotham
Posts: 511
Joined: Mon Nov 03, 2003 7:48 am
Location: Cape Town

Re: send emails using MailEnable component in our asp.net web

Postby Brett Rowbotham » Wed Nov 24, 2010 5:21 am

With the web server and MailEnable on the same server just add 127.0.0.1 to the IP whitelist then do something like this in your ASP.Net:

Code: Select all

      using System.Net.Mail;
      SmtpClient smtpClient = new SmtpClient();
      smtpClient.DeliveryMethod = SmtpDeliveryMethod.Network;
      smtpClient.Send("From <from@domain.com>", "To <to@domain.com>", "Email subject", "Email body");

This is what works for me.

Cheers,
Brett

appaulled
Posts: 20
Joined: Mon Feb 14, 2005 8:38 pm
Location: USA

Re: send emails using MailEnable component in our asp.net web

Postby appaulled » Wed Nov 24, 2010 2:54 pm

Thanks for the tip, Brett!

Does the IP need to be added to the SmtpClient also?

Brett Rowbotham
Posts: 511
Joined: Mon Nov 03, 2003 7:48 am
Location: Cape Town

Re: send emails using MailEnable component in our asp.net web

Postby Brett Rowbotham » Thu Nov 25, 2010 4:48 am

Forgot about that part :oops:

In Web.config:

<configuration>
<system.net>
<mailSettings>
<smtp from="from@domain">
<network host="domain" port="25" defaultCredentials="false" userName="user" password="pwd" />
</smtp>
</mailSettings>
</system.net>
</configuration>

Cheers,
Brett

ebs
Posts: 1
Joined: Fri May 06, 2011 10:29 pm

Re: send emails using MailEnable component in our asp.net we

Postby ebs » Fri May 06, 2011 10:37 pm

Is it possible to use System.Net.Mail's PickupDirectoryLocation to avoid from time wasted in smtp handshake when sending messages to a MailEnable server? Any feedback or past experiences will be highly appreciated.

alfred123
Posts: 1
Joined: Mon Oct 17, 2011 10:15 am

Re: send emails using MailEnable component in our asp.net we

Postby alfred123 » Mon Oct 17, 2011 10:16 am

hi all,

I want to send emails using MailEnable component in our asp.net web application.

Currently we used to do this with IIS Default SMTP Server.

How can I send email using MailEnable component in asp.net web application?

Can anyone help me?
[URL=http://www.logoian.com]custom logo design[/URL]

JHONMIKES
Posts: 1
Joined: Tue Jan 17, 2012 5:51 am

Re: send emails using MailEnable component in our asp.net we

Postby JHONMIKES » Tue Jan 17, 2012 5:53 am

Thanks Brett Rowbotham it's works......

aqweeva
Posts: 1
Joined: Mon Mar 26, 2018 2:42 am

Re: send emails using MailEnable component in our asp.net web

Postby aqweeva » Mon Mar 26, 2018 2:58 am

I know I'm extremely late on this thread, but it's exactly what I'm up against right now, hope someone out there knows the solution.
I've got my mailenable working on my Godaddy VPS server, webmail and outlook connected client mails all working fine by using Godaddy's relay server "dedrelay.secureserve.net" -

However I have not been able to get my MVC app to send an email.

<system.net>
<mailSettings>
<smtp deliveryMethod="Network" from="noreply@sample.com">
<network defaultCredentials="false" host="dedrelay.secureserver.net"
userName="noreply@sample.com"
password="xxxxxxxxx"
port="25"/>
</smtp>
</mailSettings>
</system.net>

Along with simple .Net code: (.NET 4.7.1) VPS Server 2012 R2

using System.Net.Mail;
SmtpClient smtpClient = new SmtpClient();
smtpClient.DeliveryMethod = SmtpDeliveryMethod.Network;
smtpClient.Send("From <from@domain.com>", "To <to@domain.com>", "Email subject", "Email body");

Any tips or solutions are Welcome!

Who is online

Users browsing this forum: No registered users and 2 guests