Tag Archives: attachement

Requirements for sending e-mails from PHP

Description: We need to send e-mails directly from a PHP script. Solution: First, in php.ini┬áthe smtp port should be set to 25, but this is usually by default. To locate your php.ini file in the server configuration you can use … Continue reading

Posted in Linux, PhP, Wordpress | Tagged , , , , , , | Leave a comment

Send emails with attachment in PHP

Description: How to send e-mails with attachments from a PHP script? Solution: The mail function of PHP supports also attachments. So, in creating the mail object we can add the attachment like this: $to = ‘myname@mail.com’; $subject = ‘Hello world … Continue reading

Posted in PhP, Tools | Tagged , , , | Leave a comment