Developer forum

Forum » Ecommerce - Standard features » Send Notification email to email address from customfield

Send Notification email to email address from customfield

Grant Menzies
Reply

I'd like to be able to send an email notification to a user custom field after the user has made an order.

E.g. Shopper 1 has a custom field called management that contains an email address. They make an order and an email notification is sent to themselves (standard DW functionality), and an email notification (using a different template) is also sent to the email address from the custom field management.

There is a similar post with the same question, but it appears that the solution no longer works for the newer version of DW that we run:
http://developer.dynamicweb.com/forum/ecommerce-standard-features/cartv2-is-it-possible-to-send-notification-email--to-mailaddress-value-in-custom-(or-delivery-email)-field-.aspx

We are running 8.5.1.25.

Any ideas? :)

 


Replies

 
Viktor
Reply

Hi Grant,

Unfortunately you refer to functionality that never been implemented, I am not sure what was fine at old thread but after some research and tests I can say that:

1) if in Notification e-mails you add recipient with " For customer" checkbox checked - messages sends to Customer email and Delivery email
2) if in Notification e-mails you add recipient with correct email address(unable to use such kind of dynamic values)

So i cannot suggest you anything.

Best regards,Viktor Letavin
DynamicWEB Software A/S, Russian team

 
Viktor
Reply

Hi again

Actually I have some ugly solution if you really need in this - you can add to page with cartv2 module extranet module(settings Show section: view profile; details - User: template = nothing, show profile logged in user. That is needed to render custom user fields) and just fill "EcomOrderDeliveryEmail" field with <!--@UserManagement:User.AccessUser_UserCustField1--> where UserCustField1 is your field name.

Best regards,Viktor Letavin, DynamicWEB Software A/S, Russian team

 
Grant Menzies
Reply

I like the idea but how would I send 2 seperate emails? One to the users email EcomOrderCustomerEmail (cartV2 notification to customer) and one to my Custom Field email adress.

N.B I don't believe I need to have the Extranet module on the page. My custom user field is already available.

 
Viktor
Reply

Hi, 


I am not actually understand what do you want to get as result. If you do what I suggested - message will be send to User.Email also to DeliveryEmail(which has value from our custom field) and also you can add some recipients from backend i.e. using module settings(cartV2 notification to customer).

Best regards,Viktor Letavin, DynamicWEB Software A/S, Russian team 

 
Grant Menzies
Reply

Ok, sorry, I was maybe not specific enough :)

The user should receive an email with content from Template A. The person with the email address in the custom field should receive an email with content from Template B.

The custom field for all users may contain different email adresses, so I cant specify these backend and they need to be read per user.

 

You must be logged in to post in the forum