wappy
Jul 3 2006, 09:28 PM
| | Hi, can someone please give me an example of how to send a zip or other filetype as an attachment using the mail() command? Im also interested in sending to mail email address, for example i have a .txt file full of email addy's like: mail1@blah.net mail2@blah.net mail3@blah.net how can i send the file and or mail to all these addy's in one go? Mmm.. |
Reply
truefusion
Jul 3 2006, 10:26 PM
http://us3.php.net/manual/en/function.mail.php Informs you how for multiple contacts: QUOTE Parameters to
[/tab]Receiver, or receivers of the mail.
[tab]The formatting of this string must comply with RFC 2822. Some examples are:
[/tab]user@example.com [tab]user@example.com, anotheruser@example.com [/tab]User <user@example.com> [tab]User <user@example.com>, Another User <anotheruser@example.com>
Reply
jlhaslip
Jul 3 2006, 11:48 PM
To send an attachment, I think you need to send a different Header and/or Mime -type to allow for the attachment. The different Header is "multi-part", I think. Reference the php.net site from the last posting for the details and particulars. Or here is a link to a Tutorial posted over at Astahost ( a sister Forum to the trap17 ). http://www.astahost.com/using-php-mail-fun...nts-t12553.htmlI hope this will help you solve the problem.
Reply
DjLuki
Jul 4 2006, 07:26 AM
what yo do is make a ZIP folder, left click and go to New than new compressed zip folder. put whatever files you need to put there, you can just drag them there. to rename the zip folder, right click and click rename than jsut type the name.. i duno if u have the .zip thing, but it hink it comes with all computers now. or you can download winrar, i think you can do it with that one to. than you go to your email, click add attachments, than browse than find the location of the folder, click on it, click open, than click upload on the site, wait for it.. and than jsut type the email address or message that you need to type. very easy!
Reply
farsiscript
Jul 4 2006, 08:47 AM
mail header with attachment is different , You can send many email with mail() so example : CODE mail ("mail1@mail.com,mail2@mail.com,mail3@mail.com","Text subject" ,"body text"); i think if you want send attachment you must know file type and more if you dont find source for attach file you can paste file address in email body its easy , some users dont like open mail attachment but if you type some tip in body and then type url of file users download it better Sorry my en is not ver well
Reply
Similar Topics
Keywords : mail attachments mail attachments- Form To Php Mail. Attachment
- (14)
i know there are a few topics talk about attachment problem, but i want to know if anyone could show
me a basic code for attaching files like pictures with the message. I made a html form, and
redirect the information to my mail.php file to process the information and send it to my email. I
want to know what do i have to do to attach files like pictures. I tried to search on google, and
the codes are so complicated (i'm an amateur at this). Would it be possilbe if you could show me
the code and explain to me what it does and how i could customize it to fit my needs?...
Requirements For Mail()
- (2)
Mail() Clone
- A PHP mail() function clone (5)
A lot of free web hosts have disabled the mail() function so you cannot send emails using PHP. Does
anybody know of a script that makes a function "like" mail but is able to be installed in a web
accessible directory and called included into another script and called like that? Or maybe you know
how to make such a function? I just really need to find a way around the free hosts turning of the
mail() function. I need to figure out a way to send emails....
Php Functions To Send Mail
- (4)
Which other methods to send mail from a form? I just know mail function, like: mail(string to,
string subject, string message) Has anyother?...
Prequirement For Mail()
- (1)
I'm asking because I often see so many books told me to use mail() feely, but I don't really
understand. Can we really use this without even have a mail server or anything related to that? Or
even if we need something before using this function, can anyone tell me waht those are? Right now
my website had not have this function yet, but I'm trying to, because it's necessary
sometimes when I got another project....
Want To Send Mail But Smtp Disabled, Help Me!
- (7)
heyy...I have a problem, I have an account in another hosting service, but the SMTP and sendmail
was disabled for my account. and I want to send mail to all people who join my site (with php script
to send that mail), so I can't send mail to them. for more information, my operating sistem is
Linux and php version 4.4.1. I hear when drupal send e-mail without SMTP, is that true??? and can
I send mail when I already installed Drupal in my hosting service???? Please give me solution,
how can I send an e-mail when my sendmail and SMTP disabled!!!!...
Wappymail_v1.50
- wap free mail/ email admin script :-) (15)
Here is my new wap mail script. You can use it as a free email sending service or an email admin
form (can set this option in config.php) its extremly simple to install and you will find full
instructions in the zip file. Please feel free to comment, rate, or update this script :-)
/tongue.gif" style="vertical-align:middle" emoid=":P" border="0" alt="tongue.gif" /> ...
Bulk Mail
- How to do that (5)
Hey , I have a problem . I wanted a script to send emails using PHP to more than 5000 email
addresses for my software. But if you use the regular mail() function it will cause tremendous
overload o the servers. I tried searching on the net but no use and i found some pre-built ones
which are either copyrited or using PHP 5 only. But I want to make my own function to send Bulk
Mails. If someone could give me a start I would be thankful. So does any one know how to send
bulkmail. Also I needed to give an option of using SMTP servers if PHP mail is not supported on...
Question About The Mail() Function
- (2)
Hi, Is there any way of using the mail() function with an SMTP connection? Is there any way of
sending messages let's say for example using an email of yahoo? Any help about this woul be very
thankfull. Thanks in advance....
How To Enable Mail() Function In Php
- (1)
im just trying to send mail by using a very simple php function mail() but it is not working.the
format is CODE $to = "email@example.com"; $subject = "Hi!";
$body = "Hi,\n\nHow are you?"; if (mail($to, $subject,
$body)) { echo("<p>Message successfully
sent!</p>"); } else { echo("<p>Message delivery
failed...</p>"); } I think there is something wrong with php.ini
setting..maybe something to do with SMTP ...
Send Mail In Strict Xhtml
- form elements atribute Name (2)
Im using xhtml strict, and trying to send a form to 'mail.php' which actually sends the
data, but it seems that php does not detect the $_POST ; if i do not assign a "name" attribute
in the form, but strict xhtml does not accept the name attribute in my form elements... When i try
to validate, it says... "there is no name attribute" and stuff... and what i say is yeah yeah
whatever you perverse Markup Validation Service, i knew that... but php does not recognize an id
attribute to use with $_POST so i can not send info, or tell me if i'm wrong? Wha...
Sending Attachments Using Email Function In Php
- (2)
I'm trying to send an attachment using the mail Php function. It gets caught by the email
server with an error. It seems to have a problem with the separator or who knows what. The server
says something like "invalid separator on mime type." The code is: Code: CODE // subject
$subject = "Hello There "; $mime_boundary =
"<<<--==-->>>"; // headers $headers =
"From: " . 'Tom' . " <" . 'texample@aol.com' .
">\r\n"; ...
Build Contact Mail
- (3)
Hi I Write One Contact Mail and i want to share with u at first File index.htm : in this file
build one form and post this form to and i find this php code on internet you can use this for
send mail : CODE <?php $MailToAddress = "Here"; // your email address
$redirectURL = "So Example Final.htm :blink: "; // the URL of the thank you
page. # optional settings $MailSubject = "Sample"; // the subject of the email
$MailToCC = "Back UP Mail"; // CC (carbon copy) also send the email to th...
Php G-mail Login
- Compatable on all browsers (8)
I fount a PHP G-mail login script to login to your g-mail using any browser. Even IE1, I installed
it on my site at http://www.gmail.mbd5882.trap17.com/ I tested it myself, Its safe. gmail-lite is
an html-only interface of GMail. It was develope it with PDA browser (mostly Netfront) in mind, it
should be workable with any browser on Earth (e.g. lynx, ie3, netscape4, opera5. The only tags being
used are A, B, FORM, H1, I, INPUT, P, SELECT, TEXTAREA, TABLE, TR, and TD (and META and STYLE in
HEAD). It alows you to send 10 invites at once and is fast. It uses cookies i, An...
Contact Form
- Contact form using mail() function (2)
In first place, make an html page with the form. My first form with PHP Name:
E-Mail: Subject: Mesage: OK, now, lets make
sendmail.php: $myemail = 'yourmail@blah.com'; // Put here your e-mail address
mail($myemail,$subject,$mesage,$email) // To, Subject, Mesage and From echo
'Thank you for your e-mail!'; ?> Simple, huh? Any questions just post here....
Php Mail Script Wont Work :(
- (8)
My script wont work and I cant figure out where I did go wrong The form looks like this: CODE
<form name="member-request" action="index.php?page=request"
method="post"> <p><b>Gender:</b></p>
<ul> <input type="radio" name="gen" value="1" />Male
<input type="radio" name="gen" value="2" />Female </ul>
<p><b>Your Name:</b></p> <p><input
type="text...
Multi-mail
- (4)
Hi ! I'd need to create a PHP script that would allow me to send an e-mail to many persons
at the same time (newsletter). All the e-mail adresses are ine a MySQL database. So how do I do with
the function mail() to send many e-mails ? Do I use loops or maybe an array ? But how to put the
MySQL request in an array ? Please help me. Thanks in advance....
Looking for mail, attachments, mail, attachments
|
|
Searching Video's for mail, attachments, mail, attachments
|
advertisement
|
|