Page 1 of 1

How to send emails from a DB

Posted: Tue Aug 05, 2014 3:42 am
by Carlos Castillo6909856

I just build an Appery DB REST service I choose from several contacts, its picture, name and email, I can grab the information an take it to a new page for more and detail information.

I will enclose more images with detail info, now I just need to be able to send an email with the mailto: feature from the info I do have from the DB from the particular contact.

How can I do this?

best

Image Image Image Image Image


How to send emails from a DB

Posted: Tue Aug 05, 2014 4:21 am
by Yurii Orishchuk

Hi Carlos,

Please try the following solution:

1 Create Javascript click event handler for your image or other component.

2 Populate it with following code: http://prntscr.com/38mf4e/direct

pre

//Note you need replace "info@domain.com" with email you need.
window.open("mailto:info@domain.com", "_system");

/pre

Regards.


How to send emails from a DB

Posted: Sun Aug 10, 2014 12:13 am
by Carlos Castillo6909856

I lost you

The idea is to take the Data Base email and use it in to the mailto:

mailto:a href="mailto:databaseuseremail@databasemail.com" rel="nofollow"databaseuseremail@databasemail.com/a

Name email
Ricardo a href="mailto:ricardo@recivermail.com" rel="nofollow"ricardo@recivermail.com/a

the result

window.open("mailto:a href="mailto:ricardo@recivermail.com" rel="nofollow"ricardo@recivermail.com/a");

But I do have 40 different emails on the DB

Got me?


How to send emails from a DB

Posted: Sun Aug 10, 2014 7:19 am
by Alex GG

Hola Carlos,

Creo que una vez que pases a la pagina de detalles de ese maestro, y quieras mandar mail unicamente tienes que usar:

window.open("mailto:localStorage.getItem("_correo")," _system");

Esta pendiente una platica, te he enviado dos mail, sin respuesta..

saludos


How to send emails from a DB

Posted: Mon Aug 11, 2014 1:23 am
by Carlos Castillo6909856

For some one that opens this link

window.location.href ="mailto:" + localStorage.getItem('_correo');

This does the job

Only change _correo with your local storage variable that has the email destination

And use this link to configure the subject, cc, content etc.

http://www.webdevelopersnotes.com/tip...

Best to all