Carlos Castillo6909856
Posts: 0
Joined: Tue Jun 03, 2014 12:51 pm

How to send emails from a DB

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

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

How to send emails from a DB

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.

Carlos Castillo6909856
Posts: 0
Joined: Tue Jun 03, 2014 12:51 pm

How to send emails from a DB

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?

Alex GG
Posts: 0
Joined: Thu Nov 14, 2013 11:11 pm

How to send emails from a DB

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

Carlos Castillo6909856
Posts: 0
Joined: Tue Jun 03, 2014 12:51 pm

How to send emails from a DB

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

Return to “Issues”