View Full Version : mailto question
thesven
06-15-2003, 05:01 PM
not to sound newbieish but how would one implement the mailto command for an email link?
Derek
06-15-2003, 05:25 PM
Hi
Use File.Open and insert the mailto:address@.com as the file to open.
CelticDragon
06-19-2003, 06:45 AM
If you really want to add functionality try
file.open mailto:address@domain.com?Subject = Test subject line
It automatically opens an email with an automatic subject line and the user only has to type in their mesasge. I use this so the user can guage how many people send in emails from the CD rom (See how successful the CD is....)
I actually have an add on question though, I can't figure out how to add a body to the message with line breaks to separate the info (For example sending responses from edit fields....) If anyone has any suggestions I would appreciate it. Or if the email will automatically attach the text file that I know how to write the details to....
Bruce
06-19-2003, 11:10 AM
File Open:
mailto:whomitmayconcern@hotmail.com?Subject=whatev er%20&Body=%Yourinformation%%0D%0A%moreinformation %%0D%0A%evenmoreinformation%
The %information% would of course be from your Variables. This should work for ya! Any one else see a mess-up here let me know. :-)
Lorne
06-19-2003, 12:48 PM
Good one, Bruce. %0D% and %0A% translate to carriage return and line feed. They're the ASCII codes for those characters, in hexadecimal format.
0D = 13 decimal
0A = 10 decimal
CelticDragon
06-20-2003, 04:37 AM
You people!
Gods among mere mortals!!!!
Also managed to figure out that the switch is %0D for a return alone (without a % on the other side) and I don't need the %0A if I want to have a piece of specific text rather than a variable.
You guys!!!! OUTSTANDING! How did the world survive without this program and you people?!?!?!
Lorne
06-20-2003, 10:27 AM
Oops, yeah that was a brain fart in my post...too used to writing the trailing % sign for variables. /ubbthreads/images/icons/smile.gif It definitely should only be %0D and %0A, not %0D% or %0A% as I incorrectly wrote above.
Kudos for figuring that out, CelticDragon.
TJ_Tigger
06-20-2003, 11:03 AM
go banana, go banana . . . .
Bruce
06-21-2003, 11:47 AM
LOL I only GO because of you Tigg! Thx buddy!
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.