send emails using MailEnable component in our asp.net web
send emails using MailEnable component in our asp.net web
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?
Currently we used to do this with IIS Default SMTP Server.
How can I send email using MailEnable component?
Can anyone help me?
Re: send emails using MailEnable component in our asp.net web
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
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
-
- 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
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.
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
Re: send emails using MailEnable component in our asp.net web
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?
-
- Posts: 560
- Joined: Mon Nov 03, 2003 7:48 am
- Location: Cape Town
Re: send emails using MailEnable component in our asp.net web
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:
This is what works for me.
Cheers,
Brett
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");
Cheers,
Brett
Re: send emails using MailEnable component in our asp.net web
Thanks for the tip, Brett!
Does the IP need to be added to the SmtpClient also?
Does the IP need to be added to the SmtpClient also?
-
- Posts: 560
- Joined: Mon Nov 03, 2003 7:48 am
- Location: Cape Town
Re: send emails using MailEnable component in our asp.net web
Forgot about that part
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
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
Re: send emails using MailEnable component in our asp.net we
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.
Re: send emails using MailEnable component in our asp.net we
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?
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]
Re: send emails using MailEnable component in our asp.net we
Thanks Brett Rowbotham it's works......
Re: send emails using MailEnable component in our asp.net web
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!
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!