TGV: Train à Grande Vitesse ACTION

Send Email

par Manuchap
Locomotive 4.x

Envoie un email en utilisant les paramètres metafields

{% action "send an email" %}

var emailSettings = getProp('site').metafields.email_settings;

sendEmail({

to: emailSettings.smtp_user_name,

from: emailSettings.smtp_user_name,

subject: emailSettings.subject,

body: 'email-template',

smtp: {

address: emailSettings.smtp_address,

port: emailSettings.smtp_port,

user_name: emailSettings.smtp_user_name,

password: emailSettings.smtp_password,

authentication: 'plain',

enable_starttls_auto: true

}

});

{% endaction %}{"success":true}

  Retour à la liste
X

Inscription


X

Connexion


Mot de passe oublié?