Im new to php. I wan a create email form for a website that can be attached multiple attachments and send mail.
I want 1 file field then i can browse image and hit upload, so it will upload and massage come beside as done. and then i should be able to upload another image. ( like gmail attachments )
can anyone help me to do this.
check this link, i want it like this
http://www.web2pyslices.com/slice/show/1473/sending-email-from-a-form-with-multiple-documents-options
( see number 6 )
If you are ready to jquery, then I have something for you.
You may use Uploadify (requires flash support) or AxUploader (doesn't require flash). These uploaders has got progress bars as on Gmail. Both of them have customizable options.
Related
I'm doing a WordPress page and I need that the people that visit the page can send to me (the owner) images.
I don't want them to be able to upload them to the page, I just want to be able to receive the images via mail.
Is there any wordpress plugin that can do this?
use contact form 7, create a form like this
[text* your-name placeholder "Name"]
[tel* your-phone placeholder "Phone Number"]
[email* your-email placeholder "Email Address"]
Attach Image (upto 2mb)// normal hosting space is having this much upload limit only
[file* your-file filetypes:jpeg|png limit:2mb]
[textarea* your-message 40x3 placeholder "Message if any"]
[submit "Send Now"]
Go to Second Tab called as 'mail'-> Go Down and add this in file attachments - [your-file]
Save contact form and use the shortcode to display on your page as a form.
You will receive image in your email as an attachment.
You can use google forms:
https://www.google.com/forms/about/
Here is the example:
https://www.iamm-kw.net/
scroll down to the button "Send Video"
when you click or tap the button, you will go to google forms website where you can log in with your google account and submit almost any heavy file.
You will be notified via email that somebody sent you a file.
The file may be logged in google sheets (kind of excel doc) with all the form values.
For example:
Name Joe Last Name Dow File Description this is my first attempt to take a good photo in the woods. Comments: please, accept this file
This Google sheets file will keep a log of all their uploads and whatever fields you specify in the upload form.
Cons: to upload a file they will need a Google account
Every time somebody visits the forms site, even without uploading anything, Google will send you a letter, that you have 15 GB left and if you don't want your users to have problems with upload, please upgrade your storage.
Pros: Fast and convenient. No plugins, no codes. big files, you can keep logs.
This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
php image display without download in mail
I have a PHP web application which create wishes card and send them with the PHP mail() function.
The wishes card is build with HTML and part of the card are illustrations, those illustrations use jpg images inside an IMG tag. The images are hosted on a server so images paths use a complete link (like http:/domain.com/img.jpg).
When the card is received, for exemple with thunderbird, it says images are blocked and the user has to click on a button to show the images.
I understand it's a security mesure.
That's still annoying for a whishes card which is meant to be discover with its illustrations.
So, i'm looking for any though, any light, in a way to prevent email clients from blocking images.
Thanks.
Image blocking is done on the receiver's end, by the mail client. There's nothing you can do about it.
It is because of this that you often see the
Can't see this email? View it here
(Or something similar) at the top of many emails. This is your best alternative.
Embed the image in the email, I strongly recommend something like phpMailer to do this.
From their documentation:
Inline Attachments
There is an additional way to add an attachment. If you want to make a
HTML e-mail with images incorporated into the desk, it's necessary to
attach the image and then link the tag to it.
For example, if you add an image as inline attachment with the CID
my-photo, you would access it within the HTML e-mail with <img
src="cid:my-photo" alt="my-photo" />.
In detail, here is the function to add an inline attachment:
$mail->AddEmbeddedImage(filename, cid, name); By using this function
with this example's value above, results in this code:
$mail->AddEmbeddedImage('my-photo.jpg', 'my-photo', 'my-photo.jpg ');
I want to make a interactive uploading option like Facebook and gmail have where they show the progress of the current file in uploading and then show the respective image or name of the file over there after the upload.
Right now, i'm using php and normal html for uploading where i send the file from one page to another where php handles it accordingly but i want a interactive one which show the progress also on the same page and then the name of the file after uploading without page refresh.
I knew, it can be done with ajax and css but i don't know how. All i want a interactive upload-er which uploads the file and then provide me the respective file name.
Gmail uses firefox file api, read more about it here https://developer.mozilla.org/en/Using_files_from_web_applications
Or check this live demo
http://robertnyman.com/html5/fileapi-upload/fileapi-upload.html
Hope this will help/solve ur problem ;) best luck
I want to create a programme that can
take text input from user and adjust anywhere in specific div
change font, fontcolor and size as per user selection
upload image as background
save whole customization and send as email
with help of PHP/JavaScript
Can anyone suggest how to do this.
Main issue is create image from user customization.
An existing programme to do this is also acceptable
I am programmer and working on php javascript magento
EDIT
Reading your description, it doesn't sound like you really need a screencapture-like version of the content the user created, you just need an HTML embedded editor and a way for someone to upload an image as the background with a way to preview the result. You can send emails with backgrounds using CSS.
(Not sure what you mean, but I presume you can figure this one out)
Use TinyMCE for an editor: http://tinymce.moxiecode.com/
Use jQuery AJAX file upload plugins (maybe http://www.uploadify.com/)
Submit the form (with the selected settings and edited html) to server and process as email
Try here for how to add an image to the background of an email:
http://www.campaignmonitor.com/blog/post/3170/adding-background-images-to-your-email-in-two-simple-steps/
I am trying to send email as html with embedded images (not attachment) and as background.
I was trying to use Xpert Mailer but their documantion has small amount of information so I didnt succeed.
I was also trying to use Swiftmailer, with Swiftmailer I succeed to send email with embedded images but not as background.
Anyone has any clue how to send embbed images as background / has good PHP Email Sender?
Thanks!
Don't know about the apps you're using but this can be done by embedding the images in base64 format, looks like this:
<img src="data:image/gif;base64,R0lGODlhUAABLABLAMOREBASE64HERE">
Quick google search shows the following converter site: click
I found the answer. the problem was not my html or how I embedded the image. tha problem was that gmail doesnt support css property background / background-image and therefore it didnt work for me.
I had to use