As a beginner, I would be grateful if this community could help me out to solve the following problem, by giving me some pointers. This is the scenario I would like to implement in Drupal (I guess I need to create my own module):
A user (“U1”) enters a URL which looks like this: www.mywebsite/Foo/UID2 Note that U1 does not need to be registered on my web site ( = anonymous), although he / she may be, to access the page which will be invoked through this URL.
U1 is then automatically redirected to a web form page where he / she will enter text: “Hello my name is Bob…”, an email address: “u1@example.com, a phone number “123 345 67 89”.
An email containing this information will be sent to the user that has UID2 as his / her user ID. U1 will not see U2’s email address.
The information that U1 sent an email to U2 will be kept in a “from-to” table which manages the following information:
UID_from (if it exists) U_from First Name U_from Last name Text_from Email_from Telephone_from UID_to (note: this UDI always belongs to a registered user) Date & time
Can someone give me some indications of the various functions invoked? If a ready-made module exists (which I did not find), the better.
I suspect hook_menu will be used; but how to extract UI2 from the URL and send it to a web form, which later is handled by an email module?
Thanks so much,
Peter