Yes, I have entered SMTP details - I have assumed "Name" means logon ID? It is a remote SMTP server, but it is our own company server so there shouldn't be any connection issues.
Notification.Trigger("OrderConfirmation", result, new [] { "[email protected]");
The result is the payment result received from the payment provider (in your case probably in the handler after it comes back from SagePay). It contains all of the information needed to populate the email ...
Hi Rusty , can you please navigate me where exacly put this line of code , im new at umbraco and merchello and Im having problems with setting mail notifications :/
PayPal (which redirects) is a bit more complicated. In this case, the application needs to wait for the response from PayPal so an event was added to that controller:
Error logged when triggering notification email
I have configured the standard notification emails but am not receiving any emails. I have seen this in the trace log:
Does anyone have any ideas what is wrong?
Are the SMTP configuration settings setup in the back office through (Gateway Providers section)?
Yes, I have entered SMTP details - I have assumed "Name" means logon ID? It is a remote SMTP server, but it is our own company server so there shouldn't be any connection issues.
Yes - that should read login name. (Have to make a note to change that).
Can you paste the snippet of code you are using to trigger the notification and the values in the IPaymentResult ...
Erm...
I just followed the instructions here http://merchello.com/documentation/admin/settings/notifications - I didn't realise I had to also write code!?
In the controller usually there is a line:
The result is the payment result received from the payment provider (in your case probably in the handler after it comes back from SagePay). It contains all of the information needed to populate the email ...
Hi Rusty , can you please navigate me where exacly put this line of code , im new at umbraco and merchello and Im having problems with setting mail notifications :/
Thanks
For "Order Confirmations" the line is usually in the Payment controller.
In FastTrack, it's in the
CheckoutPaymentControllerBase<TPaymentModel>
https://github.com/Merchello/Merchello/blob/merchello-dev/src/Merchello.Web/Controllers/CheckoutPaymentControllerBase%7BT%7D.cs#L163
PayPal (which redirects) is a bit more complicated. In this case, the application needs to wait for the response from PayPal so an event was added to that controller:
https://github.com/Merchello/Merchello/blob/merchello-dev/src/Merchello.Providers/Payment/PayPal/Controllers/PayPalExpressController.cs#L85
The event itself is raised in the same controller: https://github.com/Merchello/Merchello/blob/merchello-dev/src/Merchello.Providers/Payment/PayPal/Controllers/PayPalExpressController.cs#L122
This is handled in the
Merchello.Store
libraryhttps://github.com/Merchello/Merchello/blob/merchello-dev/src/Merchello.Web.Store/UmbracoApplicationEvents.cs#L28
Thanks Rusty - I will try and add those triggers in the necessary places.
It would be good to update the page I linked to above, to mention that this extra coding is required to actually make the emails send.
is working on a reply...