Search Posts

Category: email

WordPress 500 Error with wp_mail

Im trying to send data from AngularJS to a PHP file and using the PHP to send an email with wp_mail but Im getting a 500 error and I cant seem to figure out where Im going wrong. I seem to be sending the data in a correct format to the PHP file, but Im just getting an error response. AngularJS Call $scope.sendEmail = function() { if ($scope.resultsTitle) { $scope.resultsTitle = $scope.resultsTitle; } else if […]

Scope in custom Directive in AngularJS for checking if a value already exists in DB

I have a problem of scope in my custom directive created for checking if an email already exists in the DB. Indeed the results retrieved by the AJAX query are not returned in the scope (and in my template). For implementing that I follow a solution for checking if an email is already present in the DB: defined in this topic angularjs: custom directive to check if a username exists In my application a user […]

Directive in Angularjs for checking if email already exists

I follow a solution for checking if an email is already present in the DB: defined in this topic angularjs: custom directive to check if a username exists In my application a user can register until 5 emails. When the user enters an email in the field, the query is correctly executed for checking if the email is already used in the database. The query returns the persons with the same email in JSON Format […]

Secure way to send a mail via a (Restful) Webservice

I have a AngularJS Webapplication with Java Backend. Now i want to send a mail out of the Angular Application. I thought the best way is to send a post or get request to the webservice and send the Mail via an internal smtp server to the recipient. But i think there is a big security problem with this concept. When i create a webservice call like: /api/[email protected] someone can take the link to the […]