send email

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
Rey Sciman
Newbie
Posts: 13
Joined: Thu Aug 14, 2014 5:13 am
Contact:

send email

#1 Post by Rey Sciman »

Hi!
My first try with renpy is nearly finished.

It s a job application.

Now, I want to have a contact form in it - the user should be able to send me an email via renpy.
can be very very simple

just two fields

one for the email address (of the guy/women who wants to contact me)
  • and a text field

this is my second day with renpy

I cannot really code good enough of course.

but I might be able to change code a little bit.

Has anyone of you code such contact form?

Rey Sciman
Newbie
Posts: 13
Joined: Thu Aug 14, 2014 5:13 am
Contact:

Re: send email

#2 Post by Rey Sciman »


Asceai
Eileen-Class Veteran
Posts: 1258
Joined: Fri Sep 21, 2007 7:13 am
Projects: a battle engine
Contact:

Re: send email

#3 Post by Asceai »

The Cookbook is not the place to ask questions. You want the Ren'Py Questions and Announcements forum.

Anyway, maybe something like this?

Code: Select all

init python:
    def send_email():
        import webbrowser
        webbrowser.open_new("mailto:email@example.com")
Then just call send_email() as a python function when you want to use it.

Rey Sciman
Newbie
Posts: 13
Joined: Thu Aug 14, 2014 5:13 am
Contact:

Re: send email

#4 Post by Rey Sciman »

Sorry for posting in the cookbook section.

I will try it.
thanks.

greets,
R

Rey Sciman
Newbie
Posts: 13
Joined: Thu Aug 14, 2014 5:13 am
Contact:

Re: send email

#5 Post by Rey Sciman »

no, you gotta do it this way

Code: Select all

init python:
    def send_email():
        import webbrowser
        webbrowser.open_new("mailto:example@email.com")
label email:
$ send_email()
i.e. insert a label.

than you can

call email

but this code "just" opens outlook.

I want the user to prompt the text for the email so to say - directly in ren py

I know how to make the user type in his name
and then to use this variable anywhere later.

But here:
no outlook should be opend

what the user types into the "text field" should be send directly.

Tomorrow I will think about a solution.

But if there is anyone here faster than me, would be happy...

Post Reply

Who is online

Users browsing this forum: No registered users