You are here: Re: Mailer « PHP Programming Language « IT news, forums, messages
Re: Mailer

Posted by nemo on 10/25/06 19:51

On Wed, 25 Oct 2006 10:44:11 GMT, "Shelly"
<sheldonlg.news@asap-consult.com> wrote:

>
>"Rik" <luiheidsgoeroe@hotmail.com> wrote in message
>news:64989$453edcfb$8259c69c$12384@news1.tudelft.nl...
>> Shelly wrote:
>>> I am looking for suggestions for the best way to do this. I can hack
>>> it out to make it happen, but I thought I would make use of the
>>> expertise to do it the best way.
>>>
>>> I have a form with a drop-down list of users. I want to use a button
>>> to send mail to the user that is currently showing in the drop-down
>>> list. When this button is pressed, I want the user's default email
>>> program to come up with the email address of that person filled in.
>>> (the email addresses are in the database and can be retrieved easily).
>>>
>>> I can go to the process of having a separate mail form with a text
>>> box and gathering all the info and then using mail() to send it. Or,
>>> I can have the button exercise some code that runs separate window
>>> and exercises a mailto in the html area with the address filled out
>>> and then kills the window, leaving the user's email reader up there.
>>>
>>> Both seem rather cumbersome. Is there an easier way?
>>
>> No.
>> Either use javascript for a emulate a click on a 'mailto:' link, which is
>> highly unreliable, or use a form. That would not neccesarily require
>> another page, just another textarea & button.
>>
>> Even if (and that's a big if) the UA will grant the 'mailto:' option,
>> there
>> is no way to know for sure this UA:
>> 1. Knows which is the default email-program.
>> 2. Succeeds in opening the emailprogram.
>>
>> There is another way: give the users emailadress, and let them open their
>> emailclient themselves.
>> --
>> Rik Wasmus
>
>Thanks, Rik. That is what I was afraid of. The users in this case is the
>owner of the site (and not technically savvy). Part of the spec is to be
>able to send email to a person on the client list. So, I will simply have a
>full page available with a text area and look like a mail form - or just a
>text field for the subject and a text area for the message. I will then use
>the mail() function. While I am at it, I guess I'll include another button
>to send to his entire client list.
When I do that, I make sure that all the addresses go into the Bcc:
field, otherwise everyone gets to learn everyone else's address. I
read somewhere that if just one machine is infected with worms'n'stuff
everyone then starts to get shed-loads of spam.
>
>It would have been nice if there were a function to open the default email
>client from php.
>
>Shelly
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация