SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Feb 2000
    Location
    provincetown, ma, usa
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,
    I am working on availability request form - and when I put just one e-mail address in recipient field, everything works fine. But how can I have more than one recipient? Please help.

  2. #2
    SitePoint Member
    Join Date
    Feb 2000
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can try separating too addresses by a space or a comma. You can also make a "cc" field and a "bcc" field.

    -Jason Weinstein
    webmaster@maximumedge.com
    http://www.maximumedge.com/

    [This message has been edited by fluffer (edited February 14, 2000).]

  3. #3
    SitePoint Enthusiast
    Join Date
    Jan 2000
    Location
    Portland, OR, USA
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    what is the site addy? I'll take a look at it and tell you how.. you can just add like the last guy said a comma right after your email addy... anyways.... later..

    ------------------
    ~Alex~

  4. #4
    Your Lord and Master, Foamy gold trophy Hierophant's Avatar
    Join Date
    Aug 1999
    Location
    Lancaster, Ca. USA
    Posts
    12,305
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    It all depends on how his email server is setup and which on program is being used for the server. Microsoft Exchange uses semi-colons to separate addresses.

    The simplest way is to use the power of your email program. In Microsoft Outlook, Outlook Express or Eudora Pro you can have the email program pre-filter your messages as they arrive. You can move those messages to a new folder, forward them to one or more users, delete them, send an auto-reply and much more.

    In Outlook and Outlook Express look on the tools menu and choose Rules. In Eudora Pro you would choose Filters off the tools menu. Check the respective help files to find the correct steps.

    For a server bsaed solution you could modify your script to send the emails to each individual mailbox. All you need to do is separate the actual sending part into its own function with a string parameter of address and have it send the emails.

    An example for ASP using VBSCRIPT would be:

    <%

    function sendMail(recipient as String)
    Set jmail=Server.CreateObject ("jmail.smtpmail")
    jmail.ServerAddress="mail.company.com"
    jmail.AddRecipient recipient
    jmail.Sender=Request.Form("fromaddr")
    jmail.SenderName=Request.Form("fromname")
    jmail.Subject=Request.Form("subject")
    jmail.Body=Request.Form("body")
    jmail.Execute
    Set jmail = Nothing
    End Function

    Call sendMail ("address1@company.com")
    Call sendMail ("address2@company.com")
    Call sendMail ("address3@company.com")
    %>

    I would give a PERL example but I don't know that language and find it completely confusing to learn.. Maybe one day.

    Note: The above code is a modified version of code published by Alan Mendelevich and he posts here as Ailon


    ------------------
    Wayne Luke
    Internet Media Provider


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •