Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

mailto query

New Here ,
Sep 06, 2006 Sep 06, 2006
Hi,

I’m trying use ‘mailto’ to send an email to multiple users whose email addresses are obtained from a database. I’ve got it working OK for a small number of users but it seems to break (at least when using Notes as the email client) if the ‘to’ string exceeds about 250 characters. Has anyone else encountered this and if so is there a solution?

Thanks,

Chris
TOPICS
Server side applications
577
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 06, 2006 Sep 06, 2006
There are only two ways to process form data -

1. Use mailto:name@domain.com as the action of the form
2. Use a server-side scripting method to a) harvest the form's data, b)
process it in some manner, e.g., enter it into a database, c) formulate and
send an email to one or more email recipients, and d) redirect the visitor
to some ending page

Method 1 is quite simple, and is also the least reliable. It depends both
on your visitor having an email client already installed on their computer -
this eliminates public computers, or home users without email clients
installed (more and more it seems) - and on the installed email client
responding to
the mailto call. It is not possible to use this method *and* send the
visitor to a
thank you page as well.

Method 2 is the preferred method, since it eliminates the problems of method
1, but it means that you have to grapple with server-scripting somehow (ASP,
CF, PHP, perl, etc.).

You would have to decide which of these methods is best for your needs,
but if it's Method 2, then start by asking your host what they provide for
form
processing.

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================


"Chris_HSL" <webforumsuser@macromedia.com> wrote in message
news:edmlss$3qm$1@forums.macromedia.com...
> Hi,
>
> I?m trying use ?mailto? to send an email to multiple users whose email
> addresses are obtained from a database. I?ve got it working OK for a small
> number of users but it seems to break (at least when using Notes as the
> email
> client) if the ?to? string exceeds about 250 characters. Has anyone else
> encountered this and if so is there a solution?
>
> Thanks,
>
> Chris
>
>


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Sep 06, 2006 Sep 06, 2006
this could be the server timing out. if you are using php you can use set_time_limit. before it sends so it will not time out. this can get you into more trouble, because your host probably has a limit to the number of emails you can send per hour. the best solution to use is a list mailer, like php lists. you can configure this to time the mailings, etc.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 06, 2006 Sep 06, 2006
On 06 Sep 2006 in macromedia.dreamweaver.appdev, Chris_HSL wrote:

> I?m trying use ?mailto? to send an email to multiple users whose
> email addresses are obtained from a database. I?ve got it working OK
> for a small number of users but it seems to break (at least when
> using Notes as the email client) if the ?to? string exceeds about
> 250 characters. Has anyone else encountered this and if so is there
> a solution?

It could be your hosting provider trying to protect you from becoming a
spammer. Check with them.

--
Joe Makowiec
http://makowiec.net/
Email: http://makowiec.net/email.php
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 07, 2006 Sep 07, 2006
Hi,

Thanks for the responses. However, I’ve looked into this a bit more and it seems that there is a limit of 256 chars when using the ‘mailto’ command. Can anyone confirm this? If this is the case I might have to look into using the server to send the emails using CDO, which I’d rather not do.

Thanks,

Chris
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Sep 07, 2006 Sep 07, 2006
LATEST
yeah, there is a limit to the characters in the query string. if you are using php it is real simple to send mail. check it out on php.net.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines