PHP Contact Form with PDF attachment sent using PHP Mailer

Поділитися
Вставка

КОМЕНТАРІ • 50

  • @deankennedy4006
    @deankennedy4006 4 роки тому +3

    Thanks! 1st PHPMailer tutorial I've seen that actually explains this in a way someone new to this can understand

    • @mrdigitalau
      @mrdigitalau  Рік тому

      Thank you mate, really appreciate that!

  • @djsaquib
    @djsaquib Рік тому

    Fabulous. Can we arrange this data as in table and put inside the pdf? Do we still need PDFK for this?

    • @mrdigitalau
      @mrdigitalau  Рік тому

      I don't 100% understand what you mean arrange the data as in table.. can you elaborate? Thanks!

  • @gundamizer4352
    @gundamizer4352 3 роки тому

    So HELPFUL!
    You are a lifesaver. Thank you

  • @josealejandrosanchez4180
    @josealejandrosanchez4180 5 років тому +1

    Excellent material

  • @brianpaulkizitoyawe3906
    @brianpaulkizitoyawe3906 4 роки тому

    Lovely tutorial . .works perfectly .

  • @mrbay8816
    @mrbay8816 2 роки тому

    Awesome , thank you . Really appreciate your help.

  • @abhishekpandey817
    @abhishekpandey817 3 роки тому

    Thank you, buddy...you are saviour!!!

  • @funandtechtogether
    @funandtechtogether 5 років тому +1

    Your style of giving tutorials is really good. Thanks very much. Can you please also tell how to format textarea inputs in the email body and also in the pdf? Rename attachment to fname.pdf?

  • @josephmbote4167
    @josephmbote4167 3 роки тому

    Thank you , buddy .. you helped me in this

  • @pedronebrazil
    @pedronebrazil 3 роки тому

    Thank you very much!

  • @MM-uu4hl
    @MM-uu4hl 3 роки тому

    GREAT! Thanks so much for this video

  • @poojanmehta8217
    @poojanmehta8217 4 роки тому

    super quality content! i am very happy

  • @prasadreddy1849
    @prasadreddy1849 2 роки тому

    How to give different stylings to the mail subject and pdf please help

  • @janpieremindermann1942
    @janpieremindermann1942 10 місяців тому

    What xampp and php version did you use?

  • @yannik8271
    @yannik8271 3 роки тому

    So helpful man!:) Thank you

  • @alltimehasan
    @alltimehasan 4 роки тому

    You are just awesome!

  • @kanishkkhetarpal92
    @kanishkkhetarpal92 4 роки тому

    Hi I'm using ajax post for generating pdf everything thing is working, I'm getting success response and even static pdf works well but with ajax post is not working

  • @yvananda
    @yvananda 3 роки тому

    Hello and thank you for this video.
    It is clear and simple.
    I will make it a try.
    If sensible informations (bank account, credit card #) are in the form, is it secure ?
    Do I need to do encryption ?
    Thanks for tipping me.

    • @mrdigitalau
      @mrdigitalau  3 роки тому +1

      Hi Yvan, you will definitely need an SSL - but to be honest capturing card details like that is not PCI Compliant so it would be risky for you to do it this way.

    • @yvananda
      @yvananda 3 роки тому +1

      @@mrdigitalau Thank you very much. I will look into the PCI Compliant information more deeply. As I understand, because I do not store information, it may be easier to do. Btw, I was able to make both pages work in the same day ! Very good job done !

  • @minitimgek4945
    @minitimgek4945 3 роки тому

    it works! thk u s m bro!

  • @rexxy003
    @rexxy003 5 років тому +1

    Nice! Thanks! Could you has a pdf template so that the form inputs being inserted on the allocated space from pdf template on the server and then send it to email like you did?

    • @mrdigitalau
      @mrdigitalau  5 років тому +2

      Hi Jose. I have done this before, but it is a bit more complex because you need to install something called PDFTK onto the server you are using. PDFK is a command line tool which can help you fill pdfs. You also need to create a PDF with fillable areas. It will be a bit of a tough one to put in a tutorial because everyone's server is different.

  • @AyhamKamell
    @AyhamKamell 3 роки тому

    GREAT!

  • @mrtshepo4216
    @mrtshepo4216 3 роки тому

    Thanks bra....

  • @johnny2598
    @johnny2598 3 роки тому

    How to send custom attachment ? I dont need the generation part

  • @zainalariffin9084
    @zainalariffin9084 3 роки тому

    Hi, how do I send it from a legit email? such as Gmail and whatnot. As in the tutorial, it's through mailtrap.

  • @mainoraguilar181
    @mainoraguilar181 4 роки тому

    Hey buddy, thanks for the video, can you please explain to me what should I change to add another attachment? I mean, my form has an input File and I want to send both. addStringAttachment is not working to send the input file. Thanks buddy.

    • @mrdigitalau
      @mrdigitalau  4 роки тому

      Hi Mainor. I might need to do another video to show this.

  • @homepoyya2945
    @homepoyya2945 4 роки тому

    Dear Sir, Can you explain how to create pdf submission details of inquire and sending only data to mail.

  • @yvananda
    @yvananda 3 роки тому

    Hello again, for some reason, the redirect header does not work. Here is error message
    Warning: Cannot modify header information - headers already sent by (output started at C:\wamp64\www\WampDonation\vendor\phpmailer\phpmailer\src\SMTP.php:281) in C:\wamp64\www\WampDonation\mailpdf.php on line 90.
    Any clue?

    • @yvananda
      @yvananda 3 роки тому

      I found it. I needed to put SMTPDebug to false

  • @zakblacki
    @zakblacki 2 роки тому

    Git source code ?

  • @shubhamdurralrawat4727
    @shubhamdurralrawat4727 5 років тому

    How to add image in this

  • @tech4pm
    @tech4pm 4 роки тому

    Can you send source code?

  • @ranamejri1693
    @ranamejri1693 5 років тому

    can you send the code source please?

  • @chudharytayyabjaved890
    @chudharytayyabjaved890 4 роки тому

    i need source code sir

  • @mrdigitalau
    @mrdigitalau  5 років тому

    Watch this video first ua-cam.com/video/MnIps8Yc8CY/v-deo.html - this shows you the initial creation of the form and PDF functionality