2

I was trying to set mailto in our website.

I have written code like below

<a href="mailto:mail.us.asc@gmail.com&subject=Profil%20anfordern&body=Guten Tag Herr Peter ManiIhr kundenfreundliches Angebot, mit einem einzigen Klick mehr über eine Bewerbung zu erfahren, nehme ich gerne an. Bitte senden Sie mir weitere Informationen zum Profil.Kand-Nr. 3055, PersonalleitungVielen Dank und freundliche Grüsse">mail us</a>

When someone press the Link "mail us", in Lotus Notes the text appears directly where the e-mail address stands.

mail.us.asc@gmail.com&subject=Profil anfordern&body=Guten Tag Herr Peter ManiIhr kundenfreundliches Angebot, mit einem einzigen Klick mehr über eine Bewerbung zu erfahren, nehme ich gerne an. Bitte senden Sie mir weitere Informationen zum Profil.Kand-Nr. 3055, PersonalleitungVielen Dank und freundliche Grüsse

Any help?

Himanshu
  • 31,810
  • 31
  • 111
  • 133
  • Of course, that only works if the user has a default mail client set, and if that mail client supports passing subject/body fields to it. Since you are building it in Notes, why not use a real form and submit the data that way? – Karl-Henry Martinsson Oct 08 '12 at 18:20

4 Answers4

2

Use ? instead of & to mark the start of parameters for the mailto link:

<a href="mailto:mail.us.asc@gmail.com?subject=Profil%20anfordern&body=Guten Tag Herr Peter ManiIhr kundenfreundliches Angebot, mit einem einzigen Klick mehr über eine Bewerbung zu erfahren, nehme ich gerne an. Bitte senden Sie mir weitere Informationen zum Profil.Kand-Nr. 3055, PersonalleitungVielen Dank und freundliche Grüsse">mail us</a>
Per Henrik Lausten
  • 21,331
  • 3
  • 29
  • 76
1

You must use the character ? as for the parameters of a URL address.

This link can help you and simplify your work in composing the url to use email address encoders. I have also tested on Lotus Notes.

Pippolino
  • 138
  • 1
  • 8
  • 1
    Whilst this may theoretically answer the question, [it would be preferable](http://meta.stackexchange.com/q/8259) to include the essential parts of the answer here, and provide the link for reference. – Spontifixus Feb 11 '13 at 17:29
0

NOT TESTED. I think you need to add ? for first query string. Instead of &subject change to ?subject and try

<a href="mailto:mail.us.asc@gmail.com?subject=Profil%20anfordern&body=Guten Tag Herr Peter ManiIhr kundenfreundliches Angebot, mit einem einzigen Klick mehr über eine Bewerbung zu erfahren, nehme ich gerne an. Bitte senden Sie mir weitere Informationen zum Profil.Kand-Nr. 3055, PersonalleitungVielen Dank und freundliche Grüsse">mail us</a>
Muthu Kumaran
  • 17,682
  • 5
  • 47
  • 70
0

Replacing the ? instead of & as described by Per and Muthu works with Lotus Notes 8.5.3 on Windows.

The code

<a href="mailto:infobot@example.com?subject=Profil%20anfordern&body=Guten Tag Herr Peter ManiIhr kundenfreundliches Angebot, mit einem einzigen Klick mehr über eine Bewerbung zu erfahren, nehme ich gerne an. Bitte senden Sie mir weitere Informationen zum Profil.Kand-Nr. 3055, PersonalleitungVielen Dank und freundliche Grüsse">Mail 2</a>

results, after the link being clicked, in a Lotus Notes Mail being generated: Screenshot Notes Client with generated mail

If you are still having problems after replacing the first & with ?, please describe the problem in more detail.

leyrer
  • 1,444
  • 7
  • 9