Bonjour
Je veux envoyer un mail avec mailto sur un linkbutton (linkbutton plutot qu'hyperlink car je veux enregistrer les données)
quand je teste le mail ne s'affiche pas, voici mon code
LkbMail.Attributes.Add("onclick", "location.href=" & "'" & "mailto:" & Session("LeMail") & "?subject=" & Session("Titre") & "&body=" & Session("Texte") & TxtPrenom.Text & "'")
Quand j'affiche le code source j'ai ceci :
<a onclick="location.href='mailto:robert.masson2@wanadoo.fr?subject=Demande d'information&body=Demande d'information de -<BR/>La demande : ';" id="ctl00_CphContenu_LkbMail" href="javascript:__doPostBack('ctl00$CphContenu$LkbMail','')">Envoyer le mail</a>
La textBox n'est pas prise en compte
Pouvez-vous m'indiquer les erreurs
Merci par avance
JCM
Partager