Jump to content

Recommended Posts

Alright so I have use the PHP mail() function pretty extensively, however for my new site I will need to collect a filled fillable pdf file downloaded from my site, pull it from the files array, then send it to my e-mail so I can look at it later. I can do all of it except attach the .pdf file. How would I go about this? Please don't give me complete code because that is too easy. :) I wan't to figure it out myself but the tutorials simply don't explain what is happening.

I recommend looking at the PHPMailer class, as it'll help you get past all of the tedium with anti-spam counter measures.

 

To read the file, you'll need file_get_contents () and base64_encode ().

Edited by Christian F.

Well I want to do it with just normal php. Anyone have a snippet they can explain to me?

What do you mean by "just normal php" ?

I'm using swiftmailer. You have to spend maximum 30 min, to configure the script for you....

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.