Can PHP Recieve Emails?
I know that Perl can handle emails (ie you can forward emails to a perl script on your server and it can do something) but can the same be achieved with PHP? If so, how?
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Recieve Zip File Via Xml
I am connecting to a supllier via SOAP that sends me with the price list zipped inside an xml message. I can connect and I can retrieve the xml information (see the message, save the content, etc...) however i am unable to unzip the information contained in the tag here is my code:
CURL Issues, Sending Info, Need To Recieve Headers
I have just started playing with cURL and it seems to be pretty awesome. I was wondering however if any of you might be able to lend a helping hand with something. I am trying to build a client Library for ActionScript 3 to access Googles Calendar API. Because of a combination of Flash Player sand box issues, and adobe documentation being incorrect ::sigh:: this is impossible without building some sort of proxy server. This is Where PHP comes in. I am looking to build a PHP script (or series of scripts) that take in information (POST, GET, PUT, etc) and 'pushes' it off to the google server, then gets the response from the google server (along with the headers). I have been able to get the contents of the page back, but thats about it. Code:
<br> In Emails
I'm trying to sent an email with new lines in it but it only prints <br> tags rather than doing it? PHP Code:
Php Emails
When a client submits a form an email is dispatched via php to the email address. The problem is mainly with hotmail. When the email is sent, the message has a "!" sign next to it and at the top of the email the following message is listed: The sender of this message, confirm+XCACaMXx@facebookmail.com, could not be verified by Sender ID. Learn more about Sender ID. Some of my clients might get worried and delete the message. Is there a way I can overcome this problem ? Here is my script: Code:
Sending Out 26,000 Emails - How!?!
I need to send out 26,000 emails - on a regular basis... however, this consumes quite some time and I need to find a way to execute the PHP scriptm, without a timeout and without the user ahving to wait for it (at a rate of 10 emails/second, it's still 70 minutes).
Validating Emails
I have this page where if u add an email address it will send an email to u....PHP Code:
Grab Emails
Basically I had an old site which had a guest book where people could leave messages with their email addresses. Well I want to create a script where I can just copy the html into and the php script will grab all the emails for me. I got a program that does this but I want to be able to store those emails directly into my database.
Returned Emails
When sending email from a php script, is there a way to tell if the email was returned as undeliverable? My server uses MailEnable and when I send emails from php I never know if they got to their destination or were returned. I would think that if the email was returned, it should be put in the log files somewhere. But I couldnt find anything in my logs about returned mail. Any one know how I might do this?
Get Emails From A POP Account.
I would like to make a script where i would get all the emails form a POP# account and send it all to a email, what code would i use to do this ...
Emails & PHP / PEAR ?
Ive found this nifty script that does what I want - in PEAR.. (to send emails) However i'm getting an error.. - Can anyone advise a suitable course of action to correct this :-
Multiple Emails
Does anyone know how to send an online app form to more than one email address??? in php here's my code but for only one email address: Code:
Html In Emails
I am having some trouble with html and emails. I have this script which is suppost to send a html email, although the html is just appearing in plain text. PHP Code:
HTML-emails
Does anybody know how to send an email in html-format? (content-type:text/html)
How Do U Send Emails
i'm writing this new Job Card system... every time a new job is entered or an old one modified an email must be sent to the head of dept on form submission with all the details for that job.does anyone know how?
HTML Emails
I have made a simple form that sends the message in an email etc etc but was wondering (im a bit of a newbie) how to make the email html? What im doing is i have a form that sends info to another script that sends the email, using mail() etc.
Incoming Emails
sometimes, when an action is done on my web site, i send an email to another application. This application send me automatically a confirmation by email with an auto-generated number. How can i automatically get the email to parse it and save this number in a table? Do I need a specific mail server that starts a task when it receives an email? Suppose I install this mail server, how can I communicate the email content to a php script (so it can parse the email and save the number in a table)? Maybe I can't do that with and need to use a perl script? So the mail server run the perl script with the email content?
Messages Being Sent In Emails
I'd like to have the users of a web site to be able to send a note to a friend to tell them about the site. As such, I paint a screen with a canned message and they fill in the email of the friend and submit the page. the stripped down code looks something like this (minus some validations): PHP Code:
Schedule Emails
Has anybody every attempting scheduling emails or trigering any event from a php site? for example, everyday at 10:00am call function x(); ?
Automating Emails
I have a hockey league and would like to send out an email every week. I would like this to happen at the same time every week (say Sat. night). All the info in the email will be from MySQL database so I won't need to change anything that often.
Banned Emails
i have a dating website that will get some spammers so when some one like this joins and i find out i will delete the account and block the ip but most of the time its a router ip so its kind of hard to do what im trying to do is add a table in the database with the list of emails used to spam so if this person signs up again using the same email it will check to see if this email is in the talble and say its band .
Php Emails Do Not Match ??
i have created a registration script for my website and i have added a new featurer that makes you enter your email address twice and then it is supposed to check if they are the same and then if they are submit the form but if not show an error but even if the email addresses are the same it still shows the error below is the code for the email checking Code:
Checkboxes And Emails
I am trying to build a form that changes the email addresses depending on the checkboxes that are checked. I am at a total loss getting multiple checkboxes to populate the email variable. I'm not sure if the checkboxes need differing names or the same name. I get an error that says checkboxes with the same name needs to be in brackets[]. With different names I can't get anything to work.
Duplicate Emails From Formmail.php
Can anyone tell me why I might be getting 2 email returns for every form post using formmail.php? Both are identical, both have the same time sent. I'm using the recipient in the formmail.php script because when I use recipient in my form, it doesn't work.
Sending HTML Emails In PHP
I have a form that my customers can complete, and based on their answers, a results page will display. There are many if/elses in the page to display the proper results based on their answers. This works beautifully. Now my problem: I'd like to send them an email with their answers. I'm using the mail() function, and it works fine sending them the email in HTML format when I put static text in there like "Hello World!". However, I need to be able to perform if/then statements and include files into that email based on their answers. I can't get the includes to work at all. Can anyone offer me some insight here?
Script To Receive Emails ?
I am working in a project and I want to write a script to receive emails from users and store it in the database. User send to regular email but the script is receiving it.
Emails To Hotmail Not Working
I was hoping someone can point me to right direction. I'm trying to send email to hotmail accounts using mail() in PHP. It used to work few months back but it stopped recently. I have Reverse DNS setup as well. Here is my code: $from_name = "Name"; $from_email = "Name@test.com"; $subject = "Subject goes here"; $to_email = "harjot@hotmail.com"; $message = "test message"; $from1 = "From: ".$from_name." <".$from_email.">"; $from2 = "-f".$from_email; mail($to_email, $subject, $message, $from1, $from2); This code works for Gmail and other email services.
PHP Obtaining Emails - New Server
I am keeping my existing web host, but have changed email hosts for my domain name - ALL PHP / web scripts etc remain on my existing host.... START CODE :- ============================= $server = "mail.DOMAIN.com"; $server = "{".$server.":143/notls"."}"."INBOX"; echo "<PRE>Using NEW password server / Userid. - JAN 18th 2007"; $user = "mail"; $password = "password"; $subjectMatch = "Test"; // subject of the email messages you want processed $delete = "N"; // if delete is Y then processed mail will be deleted $maxdelete="Y"; #$host = "{".$server.":143"."}"."INBOX"; $msgStream = imap_open($server, $user, $password); ============================= END CODE I'm using the above code... It HAS been working on my existing host (checking my POP account.. ) Due to some issues, I am changing hosts for emails, but keeping all my web / HTTP services on my existing host... QUESTION :- I'll assume that when the above is run, it searches for the Email/POP DNS settings & not http (EG http://mail.DOMAIN.com ) :- my new POP account is represented by "mail" & "password" represents my actual password (both are correct in my script)... QUESTION :- Is there any code I can add to the script, to advise it has TRIED to connect, but something (error) has occurred. (or just connected sucessfully- But no messages received...) & possibly the DNS / IP address of the host it has tried to connect to? PS, I opened my new email service 1-2 days ago (my time), but advised my current website/host to change the DNS settings etc - only about 4-5 hours ago.... QUESTION :- I'll assume as the WWW DNS for email points to my web host - The web-host DNS will re-direct emails to the new-host - in the mean-time (till DNS propegation occurs for all emails... )
Sending Multiple Emails
I have a little problem with sending multiple e-mails to multiple people. I can't just add recipients onto the "To:" because each e-mail will be different for each person I am sending to. I have a page sending me multiple variables that relate to different users. Then I go through those variables with a loop, get the related e-mail address, get other info related to that person and other info relating to that variable out of the database and try to send it. It seems to do it and I even get a mailsent - i.e. $mailsent = mail(); - of 1 for all of them, but only the first email ever gets sent. PHP Code:
Encrypting Emails With A Certificate?
I need to encrypt emails sent with PHP and have Outlook automatically decrypt them when they are opened. I have a certificate, but I am not sure how to use it with PHP.
Using Mail() With .info Emails?
I am trying to send an email with the mail() function to an email address on a .info domain. I get an error. Everything else is correct, because as soon as I switch the email address to a .com address, it works fine.
Sending Lots Of Emails
Is there anything I should note when sending emails to lots of people from a database. i.e. do I need to stop the script to allow the server to send the mails or anything like that? I am running PHP on Linux, and am looking to send out approximately 12,000 emails. I'm using a web form to populate the email, then just the normal mail function to send, looping round once for each email (i.e. a separate call to mail() ).
Sending Emails In Arabic
I been creating and sending emails in english using the the code given below, $to = $user_email; Code:
$_POST['emails'] Empty !?
I have a problem concerning the $_POST array. In my script I display checkboxes as much emails my textfiles contains. It's normaly stored in the $_POST array. Now I make a mark on the email's checkboxes to output - and it doesn't work. The array $_POST['emails'] is totally empty. Register globals are on and I'm using PHP 4.22 Here's the code:
Sends Anonymous Emails
I have this script that sends anonymous emails. It worked until i added the super spam mode. I'm not good with php by the way. Here is both my html file (with the form) and my php file (does the work): Code:
Bouncing Emails Relay.
I have created a php Mailing list and everything works perfect, but i need to know if there's a code which relays back to me a email address that is non-functional (a bounce back). I've tried the "Return-Path: <you@you.com>n"; , but that seems to dismantle the whole email to HTML code. any ideas? currently it's just sending them all out and we're non the wiser if most emails still exist.
Why Are Emails Being Sent To Peoples Junk?
I hear it may be my webhost, but I dont want to think that. I am just using the mail() function. It works completely fine with most people, but every now and then someone has a problem.
Sending Emails (locally).
is anyone familiar with WAMP5 or the like? for building and testing php/mysql applications locally. This is basically how I build my site, and it would save a lot of trouble if I could build and properly test emails locally and not need to upload to my web host just for it to work. I use the mail() function.
Php Mail Stopping After A Few Emails
I am trying to mass mail a newspaper with PHP mail. I am using a local SMTP server. I am trying to send 300 emails at one time (with a for loop i.e. sending the same email to the same recipient 300 times) but it only sends a few them, sometimes about 100, sometimes about 130 and so on.. Then the php script stops, it doesn't even gives me an error. I tried several different SMTP servers. I tried the same script on a domain and it worked perfectly. I don't think that the problem is coming from the SMTP server as the script is not sending the 300 emails, it is stopping.
Send HTML Emails?
How can i make it where my script below can send html emails? Right now it works, it sends emails, but how can i make it so it can send html emails Code:
Form That Posts And Emails...
I have a script that is working for an individual to update a dog ad on this site I built. What I would like to have happen is not only for the data to post to the MySQL, but also for it to email me and tell me that someone has placed an ad. I know this is probably extra simple, but I am dumb. Please, if you could, just tell me how it would work in the script I have, what I need to ad where... Code:
My Website Can't Send Emails
I tried the regular mail() function, and a script that sends messages to an email address (that worked the last time i checked.. like half a year ago) and neither of them work. I don't think its a problem with the coding, I think its more like the settings on my site has changed somehow and maybe I have to fix it so I can send emails from my site? I'm not sure if that makes sense, but if it does, is that possible and how can I fix this?
Server Isn't Sending Emails
It's not a problem with a specific email service. There are people from hotmail, gmail, aol, yahoo and a few others who haven't received the validation link, but others with the same email service have. I have signed up with 2 of my gmail accounts and my hotmail account and I received the validation email each time, and it never shows up in the spam folder. When I set-up the domain on the server I did nothing to the mail server settings, I just left it with the default settings and it seemed to be working fine, but obviously not. I don't know jack about mail servers, so is there something I need to do to make sure all email are being sent? Code:
Not Getting Emails From Email Script
i belive the email script is correct as im getting no errors but im not reciving any of that email on my uni/website or hotmail account...is there something missing within the script or is this a common error on email servers side Code:
Mail() Duplicating Emails
I've got a nice email sending script that works a charm - except any email sent is sent twice, despite there only being a single call to the mail() function. It's a simple script, no loops that could have cause it to be called twice. Infact, it's a problem I'm having on two different scripts. Is there some horrible secret about mail() I should be aware of? Or does my server have a double-email complex? The actual code is: $recipient = 'contact@domain.com' $message = 'A message.' $message = wordwrap($message, 70); // Define Header $headers .= 'To: My Dear Friend <'. $recipient .'>' . ""; $headers .= 'From: My Dear Self <NOREPLY>' . ""; // Send mail($recipient, $subject, $message, $headers); (OK, so it's not the actual code, but for all intents and purposes it is)
Blank Emails Using Mail()
I've made an newsletter mailing system which should sent newsletters to my website's members using php mail function. It gets the mail data from an html file, the html file is generated using MS word(save as html). The mail is sent in Japanese Language(Shift_Jis). The html file is HUGE! 150 kb each, there are 5 such html files, the script gets email from database and sends data to the users. Problem is when the cron is executed i'm getting complains of blank mails the subject is okay but the body is blank. I tested the same function using a for loop sending me 25 mails, all mails were fine but the next day when cron was executed i also recieved a blank mail. i checked the message source in outlook express the last line is: Content-Type: text/html; charset=shift_jis which is of the header. Every time it sends a mail, i use a function to read the html file and return the data, is this slowing down the script and causing problems? The word generated html files have some headers of their own and i get an error saying "security settings may prohibit active x to run on this page , this page may not be displayed correctly": Whenever i test the same function it works fine but in actual execution blank mails are sent!
Eregi And Domains/emails
I'm still doing my validation script slowly! I'm lost on the whole Eregi thingy! I visited php.net/eregi but that did not help! It just bombarded me with all this code! Can someone explain to me how eregi works and what would be suitable experssions for a domain and an email address cos there are so many on the web!
Mail() Sending Two Same Emails
<?php $mymail = '*******'; $mymail2 = "******"; $cc = $_POST['subject']; $FrOm = $_POST['email']; $BoDy .= 'First Name: '; $BoDy .= $_POST['first_name']; $BoDy .= ""; $BoDy .= 'Last Name: '; $BoDy .= $_POST['last_name']; $BoDy .= ""; $BoDy .= 'Email: '; $BoDy .= $_POST['email']; $BoDy .= ""; $BoDy .= 'Message: '; $BoDy .= $_POST['message']; $BoDy .= ""; $send = mail("$mymail", "$cc", "$BoDy", "From: $FrOm"); $send2 = mail("$mymail2", "$cc", "$BoDy", "From: $FrOm"); if ( $_POST['subject'] == "Lunches"){ $send2; } if($send2){ echo '<html><head>'; echo '<meta http-equiv="refresh" content="0;URL=contactus_return.html">'; echo '</head><body>Sending, Please hold...'; echo '</body></html>'; } else { ($send); } if($send) { echo '<html><head>'; echo '<meta http-equiv="refresh" content="0;URL=contactus_return.html">'; echo '</head><body>Sending, Please hold...'; echo '</body></html>'; } ?> When there is Lunches or any other value it sends both emails mymail and mymail2 are active and both send emails. Where is my mistake?
|