This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-07-07 17:57:20

flashgocrazy
Scratcher
Registered: 2011-01-12
Posts: 500+

squeak email block help!

OK, so i tried to make a block that attaches your open project to email and sends it,
here is what the code is in block specs:

Code:

 ('email project to: %s' #- #email: 'johnsmith@Gmail.com')

and here is the code for the block:

Code:

 email: t1
    Cursor wait showWhile: [ScratchPlugin primOpenURL: 'mailto:' t1]

and for some strange reason the block doesnt work! it just has a error message saying: "message not understood: t1" please help!!


◕‿◕

Offline

 

#2 2011-07-07 18:17:47

Baderous
New Scratcher
Registered: 2011-04-14
Posts: 100+

Re: squeak email block help!

You're sending the message t1 to the string 'mailto:'. String class doesn't know that t1 is.

Offline

 

#3 2011-07-07 18:35:52

flashgocrazy
Scratcher
Registered: 2011-01-12
Posts: 500+

Re: squeak email block help!

Baderous wrote:

You're sending the message t1 to the string 'mailto:'. String class doesn't know that t1 is.

well, then whats the code suposed to be like?


◕‿◕

Offline

 

#4 2011-07-07 18:47:27

Baderous
New Scratcher
Registered: 2011-04-14
Posts: 100+

Re: squeak email block help!

I think that you want to concatenate the string 'mailto:' with the string represented by t1, which is an e-mail address, so it should be like this:

Code:

email: t1
    Cursor wait showWhile: [ScratchPlugin primOpenURL: ('mailto:', t1)]

Offline

 

#5 2011-07-07 19:24:14

flashgocrazy
Scratcher
Registered: 2011-01-12
Posts: 500+

Re: squeak email block help!

Baderous wrote:

I think that you want to concatenate the string 'mailto:' with the string represented by t1, which is an e-mail address, so it should be like this:

Code:

email: t1
    Cursor wait showWhile: [ScratchPlugin primOpenURL: ('mailto:', t1)]

thxs


◕‿◕

Offline

 

#6 2011-07-08 12:56:33

GP1
Scratcher
Registered: 2009-07-06
Posts: 1000+

Re: squeak email block help!

hey! I thought about coding that block, but couldn't decide what method to use. thanks for the code  wink   tongue


I am currently http://blocks.scratchr.org/API.php?user=GP1&action=onlineStatus&type=imagehttp://blocks.scratchr.org/API.php?user=GP1&action=onlineStatus&type=text and I finally got over 1000 posts.

Offline

 

#7 2011-07-08 13:27:59

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: squeak email block help!

Do note that the code doesn't actually attach the project  big_smile
I was actually thinking some kind of PHP code that sends the email, but there seems to be no way of attaching and sending a file without displaying a full webpage.

Offline

 

#8 2011-07-09 14:59:41

GP1
Scratcher
Registered: 2009-07-06
Posts: 1000+

Re: squeak email block help!

LS97 wrote:

Do note that the code doesn't actually attach the project  big_smile
I was actually thinking some kind of PHP code that sends the email, but there seems to be no way of attaching and sending a file without displaying a full webpage.

maybe a mailing list manager? That will work. I gotta try that......


I am currently http://blocks.scratchr.org/API.php?user=GP1&action=onlineStatus&type=imagehttp://blocks.scratchr.org/API.php?user=GP1&action=onlineStatus&type=text and I finally got over 1000 posts.

Offline

 

#9 2011-08-08 03:50:40

joefarebrother
Scratcher
Registered: 2011-04-08
Posts: 1000+

Re: squeak email block help!

With this block it becomes really easy to spam people if you put it in a forever loop


My latest project is called http://tinyurl.com/d2m8hne! It has http://tinyurl.com/d395ygk views, http://tinyurl.com/cnasmt7 love-its, and http://tinyurl.com/bwjy8xs comments.
http://tinyurl.com/756anbk   http://tinyurl.com/iplaychess

Offline

 

#10 2011-08-14 13:08:16

flashgocrazy
Scratcher
Registered: 2011-01-12
Posts: 500+

Re: squeak email block help!

joefarebrother wrote:

With this block it becomes really easy to spam people if you put it in a forever loop

well, if i hacked the latest version of bingo and got the code to send a  email without opening up email instead just sending it privately and having a certan email, yes I could spam people with fake email adresses


◕‿◕

Offline

 

#11 2011-08-14 13:18:32

roijac
Scratcher
Registered: 2010-01-19
Posts: 1000+

Re: squeak email block help!

mm, maybe try use URI?

Offline

 

#12 2011-08-14 13:23:58

flashgocrazy
Scratcher
Registered: 2011-01-12
Posts: 500+

Re: squeak email block help!

roijac wrote:

mm, maybe try use URI?

what does that mean?


◕‿◕

Offline

 

#13 2011-08-14 14:31:26

flashgocrazy
Scratcher
Registered: 2011-01-12
Posts: 500+

Re: squeak email block help!

bump


◕‿◕

Offline

 

#14 2011-08-14 16:06:49

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: squeak email block help!

flashgocrazy wrote:

joefarebrother wrote:

With this block it becomes really easy to spam people if you put it in a forever loop

well, if i hacked the latest version of bingo and got the code to send a  email without opening up email instead just sending it privately and having a certan email, yes I could spam people with fake email adresses

You can already spam people with emails -- why go look for a Scratch block to do that? Still, I wouldn't do it at all.

Offline

 

#15 2011-08-14 16:20:24

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: squeak email block help!

WindowsExplorer wrote:

Gopher 1.3 has taht block, and it's going to be out in five minutes! lol! You can use teh code from that (Developer password is [removed by request of poster])

sometihng cool about switcihng teh H's with the letter taht comes after tehm?  tongue

Last edited by Lightnin (2013-01-03 15:31:54)

Offline

 

#16 2011-08-14 16:22:27

WindowsExplorer
Scratcher
Registered: 2011-02-25
Posts: 1000+

Re: squeak email block help!

lol! Its meh fast typeing


http://i.imgur.com/H6LLdnK.pnghttp://i.imgur.com/VYuD7BY.png

Offline

 

#17 2011-08-15 11:53:30

roijac
Scratcher
Registered: 2010-01-19
Posts: 1000+

Re: squeak email block help!

maybe create a site, then use the normal upload code to upload to the site, and use php to send the Email from the site?

Offline

 

#18 2011-08-15 12:00:40

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: squeak email block help!

roijac wrote:

maybe create a site, then use the normal upload code to upload to the site, and use php to send the Email from the site?

That's exactly my point. It works great with plain text, but not with attachments (unless you display a webpage).

Offline

 

#19 2011-08-15 14:52:16

roijac
Scratcher
Registered: 2010-01-19
Posts: 1000+

Re: squeak email block help!

maybe this?

Offline

 

#20 2011-08-16 05:51:02

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: squeak email block help!

roijac wrote:

maybe this?

That's cool! But it only receives mails and doesn't send them, so it won't help in the precise context.

Offline

 

#21 2011-08-16 05:59:46

WindowsExplorer
Scratcher
Registered: 2011-02-25
Posts: 1000+

Re: squeak email block help!

:rollyeyes:


http://i.imgur.com/H6LLdnK.pnghttp://i.imgur.com/VYuD7BY.png

Offline

 

#22 2011-08-27 12:34:34

flashgocrazy
Scratcher
Registered: 2011-01-12
Posts: 500+

Re: squeak email block help!

WindowsExplorer wrote:

Gopher 1.3 has taht block, and it's going to be out in five minutes! lol! You can use teh code from that (Developer password is [removed by request of poster])

I hope you gave credit to match (my mod) it has that block in it and i discovered it first

Last edited by Lightnin (2013-01-03 15:31:35)


◕‿◕

Offline

 

#23 2011-08-28 18:36:58

Pecola1
Scratcher
Registered: 2010-09-06
Posts: 1000+

Re: squeak email block help!

flashgocrazy wrote:

OK, so i tried to make a block that attaches your open project to email and sends it,
here is what the code is in block specs:

Code:

 ('email project to: %s' #- #email: 'johnsmith@Gmail.com')

and here is the code for the block:

Code:

 email: t1
    Cursor wait showWhile: [ScratchPlugin primOpenURL: 'mailto:' t1]

and for some strange reason the block doesnt work! it just has a error message saying: "message not understood: t1" please help!!

Just add a comma after the 'mailto:'  wink


If you are reading this, please read to the end, because if you don't you won't know what's at the end. Don't just skip to the end though otherwise you won't be able to read the middle, which is most important. Now you must be wondering why you just read all that, the reason is you may have not noticed something, read it again and see if you notice it this time  smile

Offline

 

Board footer