Skip to content

Tag: email-attachments

Attaching / Sending .ics event via email in php

I am having trouble trying to send an .ics file ‘meeting invitation’ via email. I am using this class to quickly generate the contents of the .ics file: https://gist.github.com/jakebellacera/635416 The content generates correctly but I cannot get it to show as an attachment… so far only as s…

File not sending via cron job (PHP script)

I’m trying to create a cron job that sends an email with a file attachment once a day. I’m using a simple PHP script to test this and it works fine when I go to the URL and run it. However, when running it via the cron job, the email is sent but not the file attachment. Here’s my PHP

Codeigniter send email with attach file

I am trying to send email on codeigniter with attach file. I always receive email successfully. However , I never receive with attach file. Below is code and highly appreciate for all comments. Answer $this->email->attach() Enables you to send an attachment. Put the file path/name in the first parameter…

How to attach PDF to email using PHP mail function

I am sending an email using PHP mail function, but I would like to add a specified PDF file as a file attachment to the email. How would I do that? Here is my current code: Answer You should consider using a PHP mail library such as PHPMailer which would make the procedure to send mail much simpler and better…