cranebill Posted August 25, 2008 Share Posted August 25, 2008 Hi all, I have created a mailto option, that inserts my email, a subject and "Hi Wayne" in the body of the email,I was quite proud of this achievement, UNTIL, when I was using msn as default email editor, as soon as I changed it to yahoo default email on my computer, all I got was my email address, none of the other bits showed up.Can someone point me in the right direction for solving this issue, so no matter who tries to contact me, the email address, subject and some text in the body of an email work, I can't seem to solve it looking for an answer in the tutorials Link to comment Share on other sites More sharing options...
Synook Posted August 25, 2008 Share Posted August 25, 2008 The mailto: pseudo-protocol isn't a very good option; as you discovered it is dependent on the user having a co-operative mail client.It is preferable to use a server-side language such as PHP to use the web server's SMTP server to send the mail.http://www.w3schools.com/php/php_mail.asp Link to comment Share on other sites More sharing options...
cranebill Posted August 25, 2008 Author Share Posted August 25, 2008 The mailto: pseudo-protocol isn't a very good option; as you discovered it is dependent on the user having a co-operative mail client.It is preferable to use a server-side language such as PHP to use the web server's SMTP server to send the mail.http://www.w3schools.com/php/php_mail.asp That will have to wait for a bit, Thanks anyway Link to comment Share on other sites More sharing options...
sweinkauf13 Posted August 25, 2008 Share Posted August 25, 2008 If you don't mind, Could i see the "mailto" code you were useing? Link to comment Share on other sites More sharing options...
cranebill Posted August 25, 2008 Author Share Posted August 25, 2008 <a class="two" href="mailto:wayne.mayer@btinternet.com&subject=Bridge%20Weekend&body=Hi%20Wayne">Contact us</a> Link to comment Share on other sites More sharing options...
holmedwa04 Posted August 28, 2008 Share Posted August 28, 2008 That code appears to be correct, but I know mailto is not preferred these days as it only works with a few people apparently. That owuld be the code that I would use. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.