SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Guru
    Join Date
    Jul 2003
    Location
    england
    Posts
    823
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Question Developing Form Mailer to Email User

    Can someone please point me to a tutorial on how to email an autoresponder from a web form while the form mailer is being sent to form receiver?

    Thank you.

  2. #2
    rajug.replace('Raju Gautam'); bronze trophy Raju Gautam's Avatar
    Join Date
    Oct 2006
    Location
    Kathmandu, Nepal
    Posts
    4,013
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just add another email sending PHP script (with the different autoresponder message) just below/after successfully an email is sent to receiver.
    Mistakes are proof that you are trying.....
    ------------------------------------------------------------------------
    PSD to HTML - SlicingArt.com | Personal Blog | ZCE - PHP 5

  3. #3
    SitePoint Guru
    Join Date
    Jul 2003
    Location
    england
    Posts
    823
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Smile

    The auto responder needs to include an image within the email. Sorry, but I've only sent form mailers to an email address and never created auto responders.

  4. #4
    SitePoint Wizard rguy84's Avatar
    Join Date
    Sep 2005
    Location
    Durham, NC
    Posts
    1,659
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    Well the form has an e-mail field correct? Just as rajug said, just shoot off another mail().
    PHP Code:
    mail($YourEmail,'Subject...',$message);
    mail($VisitorEmail,'Thank You for...',$autoMessage); 
    Ryan B | My Blog | Twitter

  5. #5
    rajug.replace('Raju Gautam'); bronze trophy Raju Gautam's Avatar
    Join Date
    Oct 2006
    Location
    Kathmandu, Nepal
    Posts
    4,013
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    To send HTML emails, you need to change some header information. Better use some third party libraries to send the emails so that you don't have to bother yourself about setting headers.

    Download proper version of PHP mailer for your server http://phpmailer.worxware.com/ and you can use it as i said before two times with two different messages. You can see some examples http://phpmailer.worxware.com/index.php?pg=examples how to send emails with phpmailer.
    Mistakes are proof that you are trying.....
    ------------------------------------------------------------------------
    PSD to HTML - SlicingArt.com | Personal Blog | ZCE - PHP 5


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
  •