Sending Email

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: Klaus, FourthWorld, heatherlaine, robinmiller, kevinmiller

Post Reply
arkstar
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 70
Joined: Mon Dec 21, 2009 1:51 am
Location: Westchester, New York

Sending Email

Post by arkstar » Tue Dec 29, 2009 7:01 am

Is there a way to send an email message from a rev stack? My ultimate goal is to generate an pdf report and attach it to an email from the user's default email client.
Can this be done?

Thanks!
Rob Glassman
ArkStar

acidjazz
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 93
Joined: Mon Feb 16, 2009 2:37 am
Location: Tampa, FL

Re: Sending Email

Post by acidjazz » Tue Dec 29, 2009 7:18 am

Let me up the ante a bit and ask if there is a way to send an email through an online email account. So, instead of rev opening up Outlook on the user's computer, it sends data (collected from the user) to my gmail account from my gmail account. I know that we can upload data to an ftp site by passing a username and password, so I imagine there is a way to connect to an online email account (e.g., gmail, hotmail, yahoo) by passing the username, password, and text to be sent. I know this can be done in vb.net, but am not sophistocated enough to translate this into runrev yet. Any suggestions?

Mark

bangkok
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 825
Joined: Fri Aug 15, 2008 7:15 am

Re: Sending Email

Post by bangkok » Tue Dec 29, 2009 10:43 am

You should look at :
http://www.troz.net/rev/stacks/SMTP_library_demo.rev

This library works very well. It allows you to create and send email "on the fly" from your stack, with attachments etc.

You just need to know the address of your SMTP server.

acidjazz
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 93
Joined: Mon Feb 16, 2009 2:37 am
Location: Tampa, FL

Re: Sending Email

Post by acidjazz » Tue Dec 29, 2009 4:43 pm

Amazing. This is great. Thanks bangkok!

Mark

arkstar
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 70
Joined: Mon Dec 21, 2009 1:51 am
Location: Westchester, New York

Re: Sending Email

Post by arkstar » Sat Feb 20, 2010 3:57 pm

Thanks for the help!
Rob Glassman
ArkStar

derr1ck
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 25
Joined: Wed Mar 30, 2011 11:14 pm

Re: Sending Email

Post by derr1ck » Sat Jul 09, 2011 3:18 pm

bangkok wrote:You should look at :
www[dot]troz[dot]net/rev/stacks/SMTP_library_demo.rev

This library works very well. It allows you to create and send email "on the fly" from your stack, with attachments etc.

You just need to know the address of your SMTP server.
I have looked at the above mentioned SMTP Demo but can't see how to implement it into my app. I'm very new to LiveCode just finished the Summer Academy. I'm app is really a simple web form with a submit button, the details of the form are to be emailed back to an email address and then maybe send the sender a conformation email.

I tried using revMail but that just brings up the users email client, I just want to send the email. any help for a newbie!! :)

bangkok
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 825
Joined: Fri Aug 15, 2008 7:15 am

Re: Sending Email

Post by bangkok » Sun Jul 10, 2011 9:51 pm

derr1ck wrote: I'm app is really a simple web form with a submit button, the details of the form are to be emailed back to an email address and then maybe send the sender a conformation email.
What do you mean by "web form" ?

Is it some HTML pages on a web server ?

The reference I gave to you is a library that allows a desktop application made with LiveCode to send e-mail throught SMTP.

MaxDangerMouse
Posts: 19
Joined: Wed Jan 26, 2011 7:04 am
Location: Melbourne

Re: Sending Email

Post by MaxDangerMouse » Sat Jan 11, 2014 11:52 pm

I'm trying to use Sarah's SMTP library to send an email using gmail.

I'm using smtp.gmail.com as the server. I've also tried smtp.gmail.com:465 to try and get it on the right port

Username is my full gmail email address
Password is my password

I keep getting the error message of SMTPerror timeout opening socket

So far I've not been able to get the library to work. I've used several different SMTP servers that I have access to and get a similar result.

Am I doing something wrong?

Post Reply

Return to “Getting Started with LiveCode - Experienced Developers”