Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $de_brochure = ('https://ruta/de-brochure.pdf');
- $en_brochure = ('https://ruta/en-brochure.pdf');
- $es_brochure = ('https://ruta/es-brochure.pdf');
- $country_code = 'ES'; // Normally I get this code from a form.
- $brochure = array ( $de_brochure, $en_brochure, $es_brochure );
- $brochure_link = '';
- if ( $country_code == 'ES' ) {
- $to = 'info@kazzabe.com.es';
- $subject = 'Ejemplo';
- $txt = 'El dossier a enviar es' . $brochure_link[$brochure];
- $headers = 'De: sample@sample.com' . 'rn' .
- 'CC: anothersample@sample.com';
- mail ($to, $subject, $txt, $headers );
- }
- else {
- echo $country_code . 'no es el código de españa';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement