Send Email Via outlook?

Discussion in 'PHP' started by ahkip, May 10, 2006.

  1. #1
    I am writing a small program using php for my company. My boss want me to set up a button so she could send a invoice to her client.

    The php will be hosted on her laptop and she will travel around so the php mail function doesn't work here:(

    Anyone knows if there is a way to send mail via outlook on a php page?
     
    ahkip, May 10, 2006 IP
  2. mad4

    mad4 Peon

    Messages:
    6,986
    Likes Received:
    493
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You can set up a mailto link and populate the message body and subject but thats as far as it goes.
     
    mad4, May 10, 2006 IP
    ahkip likes this.
  3. TwistMyArm

    TwistMyArm Peon

    Messages:
    931
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I can't see why the mail function doesn't work: it should be fine with remote servers. All you would need to do would be hook PHP up with the remote SMTP server.

    If not with the mail function, you can definitely use remote SMTP servers with the PHPMailer class.
     
    TwistMyArm, May 10, 2006 IP
  4. ahkip

    ahkip Prominent Member

    Messages:
    9,205
    Likes Received:
    647
    Best Answers:
    0
    Trophy Points:
    310
    #4
    thx for the respond but it doesn't work for me
    Let me be give more detail.
    The program will generate an php invoice page. And there will be customer's email address on the page. My boss wanted it set up so that when she click on the email address, the invoice page will be translate to a PDF file. Then a email will be send to the customer with the PDF file as attachment.. i hope that's something that can be achieve with PHP
     
    ahkip, May 10, 2006 IP
  5. mad4

    mad4 Peon

    Messages:
    6,986
    Likes Received:
    493
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Do you want to send the email using Outlook with a pdf attachment or do you want to send it using PHP?

    If you want to send it with outlook you might be better either getting some invoicing software or just saving the pdf and emailing it the normal way.

    Alternatively if you have php on the laptop then you could install some apache webserver software and turn the laptop into a webserver which would allow you to send emails whenever there was a connection.

    Otherwise you could build a backend to your website with an 'email invoice' application where your boss just goes in a clicks a button and the email with pdf attachment is sent.
     
    mad4, May 10, 2006 IP
  6. ahkip

    ahkip Prominent Member

    Messages:
    9,205
    Likes Received:
    647
    Best Answers:
    0
    Trophy Points:
    310
    #6
    oh yea. i am so stupid, i keep thinking i have to install mail server on the laptop and send out the mail from the laptop...

    Thx mad4, i thinik i will do a email invoice script on my server. Thx man
     
    ahkip, May 10, 2006 IP