Skip to content
Advertisement

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 string. I have even tried to encode it but it just shows the

Add an email attachment to WooCommerce notifications based on product category

For some of my product I need to send an additional pdf (not an invoice) to my customers. With the help of this post: https://wordpress.org/support/topic/attach-pdf-to-confirmation-email-for-specific-product/ I was able to attach an attachment to every order confirmation email. Then I tried to change the code to filter by product sku. In this post I found some infos about the variables that

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. Note: Use a file path, not a URL. For multiple attachments

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.

Advertisement