Hello Everyone, i have the sendgrid plugin up and working. i can use sendgrid templates to send out emails. works great. The only problem is i have my page being converted to PDF then attached and sent through sendgrid email. working. I also have a multi file uploader where users can upload additional documents. i cant get that to work. sendgrid only allows 3 max attachments. So i tried using links in the email body but all links are “//s3.amazonaws.com/appforest…” i can remove the // using find and replace but not when there are multiple files involved. i cant use the sendgrid attachment because if the user uploads 3 documents, plus the standard pdf page, thats already passed the max limit b sendgrid.
I thought of a workaround that seems to be working the way i wanted it to for now.
Put a new input on the form that is hidden and default value is the multi-file uploader value.
Then added a new item in the database (attachment links) which uses that input but i am able to use the find and replace option to find //s3 and replace it with http://s3 so it completes the link.
And i use that database entry to populate the variable for sendgrid.
This will place the link in a body of text. the user will see the full link instead of clicking on something that looks nicer with a hyperlink but this works fine.