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?
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.
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
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.
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