Is there an ASP.NET equivalent of SwiftMailer for PHP? - asp.net

We are looking at sending some email notifications to about 1100 employees at a time. Each email would contain some personalized information, so sending one email with a huge BCC is out. Looping through and sending one at a time seems dumb.
In some of my homebrew projects I solved this type of problem by using SwiftMailer to send bulk email from PHP. Is there any equivalent, preferably free, for ASP.NET?
Update:
It seems like there is no direct equivalent to SwiftMailer (at least one that's free) so I've gone ahead and marked the answer that we didn't use another library. We haven't had any problems sending email though, and our code has been in production for quite a while now.
There are also new templating options that look interesting: http://razorengine.codeplex.com/

Maybe you can simply use SmtpClient class which is already bundled with .Net framework?
See
http://www.aspnettutorials.com/tutorials/email/email-aspnet2-vb.aspx for simple tutorial
http://msdn.microsoft.com/en-us/library/system.net.mail.smtpclient.aspx - msdn documentation and examples

You can take a look at the examples that come with the mailer libraries from http://www.advancedintellect.com/. It works with background threads and datasets. I did some php work with SwiftMailer previously. The AI products is what I have decided upon for my .Net development work.

Related

Hide FullCalendar schedulerLicenseKey in page

My company recently purchased the Full-Calendar Scheduler addon. Is there a proper way to hide the license key in code? What are good practices for this?
You're right, there's no way to completely hide the schedulerLicenseKey from someone malicious wanting to steal it, however, a thief could much more easily use the universal GPL license key if they wanted a warning-free version of Scheduler, so it's a moot point.
In essence, the actual characters of the license key are not that secret. The license key is mainly used to know when to prompt the developer that they have upgraded past their allowed version upgrade window. Beyond this, it is essentially an honor system. This is why not much attempt is made to encrypt/validate the key.
Use this code.
it works under Scheduler GPL license without charges
$('#calendar').fullCalendar({
schedulerLicenseKey: 'GPL-My-Project-Is-Open-Source'
});
Old question, but since I just came across the same issue, I thought I'd share my 2c. IMHO the best thing to do is never expose the key directly in the code. Instead, store it in some back-end configuration file or even a database field, and read it and assign it dynamically in the front-end. Granted, in the end someone willing enough can still reverse engineer the front-end code and read it (assuming they can log in to the application), but the key will never be that easy to read, as in committed with the rest of the code in your repo.
In short, best practice is to never store license keys in the code.
use 'valid' key, then your problem will be disappeared. I have some case too, then using that valid key, my problem solved.

Password Reset Email

Within a Symfony2 application I'm building I've managed to get user account creation, login, updating profile working using bootstrap for the frontend and 'out of the box' Symfony2 for the rest. I need to add the ability for users to reset their passwords and/or have email sent with a generated password. I'll preface these questions with the fact I am new to developing in Symfony2. My questions are 1) Do I try and use FOSUserBundle in parallel with code I have already written or 2) Are there ways to implement this without FOSUserBundle. These are questions are really coming from a place of not knowing any better.
Thank you in advance.
I'm not a symfony guy but I only know that Symfony embraces the "don't reinvent the wheel" philosophy. Symfony itself is a collection of bundles. If this is your first time with a web framework I can tell that you've passed a lot of time and effort implementing something that other developers offered to you. Believe me if you want to build something powerful and standardized FOSuserbundle will undoubtedly satisfy your need.
Always sad to see a genuinely asked question downvoted.
#Brent was a Symfony novice myself and in many ways probably still am. I wouldn't say Symfony embraces "don't reinvent the wheel" but rather "speed up app development". I am sure you can take days searching Stackoverflow and find possible (probably a little bit outdated) solutions to your problem or do as #AzizFCB suggested and use a ready Symfony bundle, in fact, the most widely used and adopted Symfony bundle. Unless your app's core activity is solving people's login and forgot password problems. I would strongly advise to use FOSUserBundle, solve that problem in a few hours importantly including updates (especially security) that you don't need to manage (but if you can please contribute to) and focus your efforts on coding your apps core activity(s).

SignalR (.Net) Database to Grid (Knockout)

I am relatively new to SignalR and every tutorial seems to be for a chat application or some variant. This is good to get to grips, but I am looking to have a grid that updates automatically on a database change. I have even gone through Pluralsights tutorial which shows this as a sample but then all it's practicals are for a chat application.
I do understand that this is what a search engine is for, but I have exhausted this channel, as above I found plenty of tutorials but all seem to be for a chat application.
Has anyone else noticed this, and if so has anyone found any good resources for tutorials that deal with real-time grids. Any help would be greatly appreciated.
You can use SqlDependency but it tend to be heavily dependent to SQL (Thus the name). I think its bad practice to have a solution dependent to the database, sooner or later you also want updates from the Domain only etc.
I have made a EventAggregator proxy for signalR that can pick up events decoupled from domain and database. Check it out here
https://github.com/AndersMalmgren/SignalR.EventAggregatorProxy/wiki
Install with nuget
Install-Package SignalR.EventAggregatorProxy
It has both a .NET and javascript client, check the wiki for how to set it up, and here is a demo
https://github.com/AndersMalmgren/SignalR.EventAggregatorProxy/tree/master/SignalR.EventAggregatorProxy.Demo.MVC4
It's true that most of the tutorials demonstrate a chat application, since that's the easiest way to show off the technology. Once you start demonstrating a more complex sample, there are design patterns that don't really have to do with the technology.
Here's a tutorial that demonstrates how to update the client based on changes from a server:
http://www.asp.net/signalr/overview/signalr-20/getting-started-with-signalr-20/tutorial-server-broadcast-with-signalr-20
Here's a demo that uses SqlDependency to update the client:
http://techbrij.com/database-change-notifications-asp-net-signalr-sqldependency
(The above is SignalR 1.0, so see the Updating document for info on how to change it to 2.0):
http://www.asp.net/signalr/overview/signalr-20/getting-started-with-signalr-20/upgrading-signalr-1x-projects-to-20

Symfony - Database driven login including a password

I'm new too Symfony 2 and need so help. I'm following this tutorial: http://symfony.com/doc/current/cookbook/security/entity_provider.html
It helps with creating a login system and I've managed to get that working mostly. However i the tutorial it only explain verifying using and email address or username. It has no mention of checking if the password is actually ok or how tell Doctrine which encryption algorithm to use or have to involve the salt.
If there is another article I should read that someone could point me too or if someone could explain to me how to do these thing I'd much appreciate it :)
a decent implementation of the user-mgmt is the https://github.com/FriendsOfSymfony/FOSUserBundle and its documentation
Used in many projects, been learning a lot when digging inside the bundle myself

Paypal PayFlow Pro Asp.Net configuration

So, this does not necessarily have to do directly with the code itself, although it is certainly a component of it.
I recently downloaded and installed the PayFlow Pro SDK for use with ASP.net
link here:
https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/library_download_sdks
I installed this to my development machine. I also came accross this example code which I figured outlined the primary setup for basic Paypal Credit Card Transaction functionality.
link here:
http://www.codeproject.com/KB/aspnet/PayPal_PayflowPro.aspx
Anyways, I have two main questions
Do I have to install the SDK on the web hosts server in order to utilize the functionality of it? This seems to make sense, however, the tutorial in the second link suggests I create a web reference. Unless I am not understanding something here, wouldn't this just strictly work on my development machine, or at least, the functionality of the remote website that references this web reference to access the sdk, would this not be dependent on my computer running and broadcasting this information?
I just need clarification on how to install and/or access the sdk for use on a remote webhosts server (ie. do i need to install the sdk on the web-hosts server and if so, how would one go about doing so (ie. where to install, how to install)?).
Are there any other clean cut examples like my second link provides, that sort of outline the basic functionality of Payflow Pro? I find paypal's examples numerous and convoluted and their online slides/video tutorials to be tedious.
Perhaps I should just get off my lazy ass, but I have found peers from the general community to be much more informative in a way more efficient manner, so any help would be greatly appreciated.
Thanks!
For anyone interested, after enough searching I found a great example that notified me of all the fundamental processes to creating a basic transaction and allowed me the knowledge to further manipulate the sdk.
Check it -
Code Projects PayflowPro example and introduction.

Resources