Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

maito: form trouble 3

Status
Not open for further replies.

Cadwalader

IS-IT--Management
Feb 12, 2002
297
US
Greetings,

I am having a little trouble with this(actually a lot of trouble). Ok, so I want to be able to send an email from a form with out bringing up the users default mail client. The admin where the site is hosted got a cease and desist order to shut down SendMail because of spamming comlaints (it wasn't us doing the spamming, this form I am having trouble with allows users to subscribe or unsuscibe from a monthly news letter). So now the cgi that maintains the mailing list doesn't work and we are going to have to do it manually. It's ok because the list isn't that long.
I didn't write this code, I am just trying to make it work without using SendMail or cgi.
Anyway, here is the code, what am I doing wrong?

<form action=&quot;mailto:me@widgets.com&quot; method=&quot;POST&quot; target=&quot;BLANK&quot;>

<table border=&quot;0&quot;>
<tbody>
<tr>
<td bgcolor=&quot;#FFFFFF&quot;>
<center>
<strong>Join our mailing list<br>
for product discounts as well as new and<br>
updated information!</strong><br>
<input type=&quot;TEXT&quot; size=&quot;10&quot; name=&quot;e&quot;></center>
<input type=&quot;RADIO&quot; name=&quot;subscribe&quot; value=&quot;subscribe&quot;> <input type=&quot;HIDDEN&quot; name=&quot;l&quot; value=&quot;3&quot;> <font size=&quot;2&quot; face=&quot;verdana, arial, helvetica&quot;>subscribe</font><br>
<input type=&quot;RADIO&quot; name=&quot;subscribe&quot; value=&quot;unsubscribe&quot; align=&quot;TOP&quot;> <font size=&quot;2&quot; face=&quot;verdana, arial, helvetica&quot;>unsubscribe</font><br>
<center>
<input type=&quot;SUBMIT&quot; value=&quot; Submit &quot;></center>
</td>
</tr>
</tbody>
</table>
</form>

Could it be that it is not on the server just yet? Or does the code here rely on SendMail? But then again, it's not an SSI script...that's it! I've totally confused myself now!

Please help...:)

Hope I was of some help...
--OR--
Thanks for the help...
--Rich

 
1. You want to send an email with a form action of mailto:me@widgets.com&quot; but without bringing up the mail client?
And you can't use a server side script to do this cos it uses sendmail?

I don't know a lot about these things but it looks to me that you have to do one of these two things, either email the form using the users default mail client or else use a server side script.
______________________

2. If you are paying your host for sendmail and they have shut it down then change host! If your host has had to shut down sendmail then it's up to them to provide you with an alternative method!!

We pay our subcontractors to provide a product or service, if they can't provide it they must provide an alternative, pay compensation or else we find someone else who can provide it! Simple as that!

Ya gotta be harsh sometimes! :)


É

:: ::
 
cian,

Thanks for the info, although it's not what I wanted to hear :-( . That's ok, though. I'll talk to the boss, and see if he wants to maintain the list and move hosting, or just drop the list.

Thanks! Hope I was of some help...
--OR--
Thanks for the help...
--Rich

 
cian is correct. Also even if you did decide to use your clients email you will run into another problem. Browsers are going away from letting you use the mailto in a form so you will be shortly out of luck there as well. However there is another option. Is there a specific reason that you want to use email? If this is just going to you, you could just have the submission written out to a database then just check for new submission that way. Or for that matter instead of email have the submission create a text file on your server. I know these are not the best possible solutions but they are alternatives. Personally I would ditch the host and find one that can do what you need done.

Roj
 
Roj,

I think that is what we are going to have to do. Browsers are really getting away from mailto: support? Wow. Ok, thanks for the advice.

Both of you have been a big help... ;-)
Hope I was of some help...
--OR--
Thanks for the help...
--Rich

 
Hi mate,

Another option is to get another server to remotely host the form script.

I offer this service on my server for users that can't use server side scripts and the user never knows about the other server.

All you do is set the form action to the second server, then set the thank you page back to your server.

Hope this helps Wullie

sales@freshlookdesign.co.uk

The pessimist complains about the wind. The optimist expects it to change. The leader adjusts the sails. - John Maxwell
 
Wullie, you're a genious!

I might jsut be able to pull that off, because there is a huge black cabinet sitting right next to my desk *grin* that I might be able to get to do that.

Thanks!
(wullie, keep your eyes on the linux server forum...I'm sure I'll get stuck in less than 15 minutes ;-) ) Hope I was of some help...
--OR--
Thanks for the help...
--Rich

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top