smtp
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: smtp
Hi Zazi,
since tsNet only comes with LC Indy and Business, the answer will be no.
Best
Klaus
			
			
									
									
						since tsNet only comes with LC Indy and Business, the answer will be no.
Best
Klaus
- 
				ghettocottage
- Livecode Opensource Backer 
- Posts: 366
- Joined: Tue Apr 10, 2012 9:18 am
Re: smtp
What is it you are trying to do?  There is (almost) always several ways to do a thing.
			
			
									
									
						- 
				ghettocottage
- Livecode Opensource Backer 
- Posts: 366
- Joined: Tue Apr 10, 2012 9:18 am
Re: smtp
Do you have a server that you are sending the messages to, that then get emailed?
If so, does your server have livecode-server installed along with Apache? Or perhaps just php?
you could just send a POST with the message to your server and from there you can email it or log it in a database. From a button on the app you might do something like this:
[/code]
			
			
									
									
						If so, does your server have livecode-server installed along with Apache? Or perhaps just php?
you could just send a POST with the message to your server and from there you can email it or log it in a database. From a button on the app you might do something like this:
Code: Select all
on mouseUp
   
   put "https://yourserveraddress.com" into tServer
   put field device into tDevice
   put field message into tData
   
   put  "id=" & tDevice & "&data=" & tData into tStuffToPost
      
   --post it to the server
   post tStuffToPost to URL tServer
   --get the response if you need it
   put it into tResponse
   put tResponse into field response
end mouseUp
and then on your server you can have your lc script that receives the post and does whatever you want with it, like this:
[code]
      	  put  $_POST["id"] into tDevice
      	  put  $_POST["data"] into tData
     
         //do whatever you need to with that information
[/code]
Re: smtp
Hi zazi,
please only ONE thread per topic!
I deleted the other thread: "Sending email using tsNet external"
Best
Klaus
			
			
									
									
						please only ONE thread per topic!
I deleted the other thread: "Sending email using tsNet external"
Best
Klaus
Re: smtp
No, sorry, I don't know.
			
			
									
									
						Re: smtp
This a script that will only work on a SERVER that has "Livecode Server" installed as the CGI engine.
Do you have access to a server with LC server software installed?
The code is definitively not messy, but may be a bit too much for a new user.
Do you mean I should create a script for you?
Come on, this is not how this forum is supposed to work, Zazi!

Re: smtp
Sorry, I presumed this because you found the code "too messy".
That script requires that "Livecode Server"* is installed on the server and I highly doubt this is the case with the GMAIL servers!
* This a CGI engine on the server like PHP, ASP etc.
If you are using the Community version of LC than you cannot make THAT code (tsNet) work at all.
I don't know of any library for SMTP that will work with the Community version.
