Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Variable Mailto Command
Old 04-05-2008, 06:32 PM Variable Mailto Command
Junior Talker

Posts: 1
Name: Rob
Trades: 0
Hi I have created an HTML page to be used on my computer to automate a monotonous task of sending text messages. I have my email set up so if I enter a telephone number I can send an SMS message to a phone using 07776876543@sms in the TO field.

I have 15 sites where I visit and for each site there are about 12 people. The people always vary by site [so do their mobile numbers]. I have 15 files, one for each site with the mobile numbers of all the people related to each site.

Heres an example of what the txt file contains [its filename is site 1.txt - to match the radio button control value] the text file is in the same directory as the htm file.

Example contents of the txt file would be -
07771123456@sms, 07771123457@sms, 07771123458@sms.... and more.

Depending on the option selected [radio button] under the heading site im trying to reference the corresponding text file to copy the contents into a string to enter into a mailto command.

The next part of the form is made up of two more radio buttons. There are two possible subjects I would like to be able to send out - they vary depending upon what was found when on the site and some have one or more text boxes I would like to insert into the mailto output string. The string will also prefix the string with the Value [as text] of the site name followed by a space then a hyphen - This can come from the site radio button value.

Depending upon selections the form will take the corresponding text and add it to the string. Whatever the options chosen when the form is filled in and the send message button is clicked it will gather the information as strings and insert them into a mailto command.

I have attached the html file of my form with the message to make it more clear.

As an example if the first site on the list was chosen and the first option on the notification list was chosen and in the first text box in the notification was written the number 1 and in the second text box in the notification line had the date of 01/01/2009 the mailto would look like this -

a href="mailto:07771123456@sms, 07771123457@sms, 07771123458@sms?subject=Site 1 - Bird Number 1 has been seen on the site on 01/01/2009"

I know this is quite a big request but can someone start me off. I have a bit of programming knowledge but not enough to work it out on my own.
I appreciate your assistance.

Thanks

Rob

PS - Please forgive me but I have altered the file extension of the htm file to txt to get the attachment to allow. If you alter it back to htm it will work. [I have also removed the images to make it just the one file]
Attached Files
File Type: txt Example mailto form.txt (8.5 KB, 3 views)
schmoose is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-06-2008, 09:41 PM Re: Variable Mailto Command
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
You would be better off using PHP or another Server Side language to take advantage of Linux's email sending features than by trying to mess with HTML methods. Or just use a regular email client, that is what I do...
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Reply     « Reply to Variable Mailto Command
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.37859 seconds with 13 queries