Page 1 of 1
Sending Email
Posted: Tue Dec 29, 2009 7:01 am
by arkstar
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!
Re: Sending Email
Posted: Tue Dec 29, 2009 7:18 am
by acidjazz
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
Re: Sending Email
Posted: Tue Dec 29, 2009 10:43 am
by bangkok
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.
Re: Sending Email
Posted: Tue Dec 29, 2009 4:43 pm
by acidjazz
Amazing. This is great. Thanks bangkok!
Mark
Re: Sending Email
Posted: Sat Feb 20, 2010 3:57 pm
by arkstar
Thanks for the help!
Re: Sending Email
Posted: Sat Jul 09, 2011 3:18 pm
by derr1ck
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!!

Re: Sending Email
Posted: Sun Jul 10, 2011 9:51 pm
by bangkok
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.
Re: Sending Email
Posted: Sat Jan 11, 2014 11:52 pm
by MaxDangerMouse
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?