Results 1 to 8 of 8

Thread: send email

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2006
    Posts
    719

    send email

    how to send email using PHP Code?

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: send email

    Moved From The CodeBank

  3. #3
    Frenzied Member
    Join Date
    Apr 2009
    Location
    CA, USA
    Posts
    1,516

    Re: send email

    This is well-detailed on PHP.net's mail() page.

  4. #4
    Fanatic Member
    Join Date
    Jun 2008
    Posts
    1,023

    Re: send email

    you need a smtp server, you could use an email client like mozilla thunderbird and use hotmail for example for your email sender... i gave up in this project because i couldn't get it working so i just bought a http host and used the mail function...

  5. #5
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: send email

    Thunderbird alone is not an SMTP server (mail transfer agent / MTA), it is a mail user agent (MUA).

    MTA's can be downloaded for both Windows (via IIS) and Linux (via Sendmail). The purpose of the MTA is to resolve the mail transfer (MX) record in the domain part of each recipients address and relay the mail to recipients MTA.
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  6. #6
    Fanatic Member
    Join Date
    Jun 2008
    Posts
    1,023

    Re: send email

    true but it can be used to send mails and i couldn't get the smtp connection configured...

  7. #7
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: send email

    Quote Originally Posted by Justa Lol View Post
    you need a smtp server, you could use an email client like mozilla thunderbird and use hotmail for example for your email sender... i gave up in this project because i couldn't get it working so i just bought a http host and used the mail function...
    I don't know what that has to do with the original question but the original poster asked for code to send mail using php not via an email client.

    Edit:

    The only code you need to use is the code SambaNeko linked to as well as a hosting services which can run php.
    Last edited by Nightwalker83; Feb 4th, 2010 at 06:08 PM. Reason: Adding more!
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  8. #8
    Frenzied Member I_Love_My_Vans's Avatar
    Join Date
    Jan 2005
    Location
    In the PHP compiler
    Posts
    1,275

    Re: send email

    @Justa

    I think what you're referring to is setting up a HTML form to use the users default email client in which to mail the form fields, am I right?

    If I am right you seriously need to reconsider how you email forms.

    Like VisualAd said, an email client is not an SMTP server.

Posting Permissions

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



Click Here to Expand Forum to Full Width