I've problem with send email using php. I used this code:
$mail = new PHPMailer();
$mail->SMTPAuth = true; // enable SMTP authentication
$mail->SMTPSecure = "ssl"; // sets the prefix to the server
$mail->Host = "smtp.gmail.com"; // sets GMAIL as the SMTP server
$mail->Port = 465; // set the SMTP port for the GMAIL server
$mail->Username = "email@example.com"; // GMAIL username
$mail->Password = "mypassword"; // GMAIL password
Thank you for your previous answer.. I've tried your idea but it is still not working with error message:
"SMTP -> ERROR: Failed to connect to server: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP? (118706120)
SMTP Error: Could not connect to SMTP host. Mailer Error: SMTP Error: Could not connect to SMTP host."
What do you think?
Ok, basically doesn't matter, it works anyway but I like to have my HTTP verbs used the right way.
Since ever I've been using GET to handle all the data pulling actions. So everytime I need to pull data from the server I use a GET, everytime I push data to the server I use a POST.
Yesterday I had this discussion with a guy that argued that search operations (like an AJAX request that implements a grid filtering mechanism) must be a POST because it doesn't return a resource... (I really couldn't understand this answer... I tried to but it was impossible to make him explain to me what it meant by that in other words)
Search operations, for me, naturally fit in the data pulling logic. Although it may be filtered data, and we may need to pass a bunch of filter options to the server, the operation itself is to retrieve data from the server.
On your answer you actually give me one more reason why a search should be a GET (for bookmarking).
Although this is not the case, is for internal ajax requests handling, but the same concept still applies.
The only circonstance I can imagine using a POST instead of a GET on this is it the data to be passed to the server is such that there's a chance of overloading the URL max size standards. Otherwise, its a GET!!!
Not a real answer, but a bit more info. I saved your source and looked at it with Chrome21 and FF15. In print preview, FF gets it right but Chrome behaves as you describe.
Me, I'd be tempted to use CSS rather than inline styling. Then you can use media-specific stuff to control screen and print styling independently.
Did the research I should have done before posting. I looked at one of my sites where I have alternate divs styled background-color:#EEEEEE and it's the same - browser views and FF print preview good, Chrome print preview broken.
So it looks to not be related to where the style is set. But again, I haven't got any @media print styling on that page.[/edit]
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
I'm new comer in development web with jquery. I've problem when I developed my web using jquery. My case is I use two ajax in one jquery that defined in file A. In file A there are dropdown menu and button. the first ajax is triggered when dropdown menu is changed. And then ajax call html from file B. so html in file A replaced by html from file, and now the button coming from html in file B. Dropdown menu html isn't replaced by html from file B, after that I clicked that button, but ajax not triggered. Does anyone have problem with me? Please help me for this matter...
we have started a very new company.
and got some customer as well for website development.
Now I am confused, from where to buy hosting space.
Local hosting will be good or internet websites.
Where I will not face any user complain.
and how much it will cast in average?
My Web site has some text fields, text area. I want the user to use an option of browsing the files and once he browses the files the contents of the file should be displayed in the textarea. Once the textarea is filled with the contents of the chosen file then I want to submit the form. Language: JSP only but you can use any scripting language.
No pHp please.
I have one have one problem please help me out in this.
I want to display pop in php. Like whenever user fills the form and submit it then after Successful submission of form if the data is inserted in database the it should pop up like Thanks for contacting this is ur enquiry number....blah blah..
Can anyone please help me with this that how can i show this popor only div after successful insertion of data from php.
Awaiting for reply
Once in the check_and_pop.php file you can show the message you want.
after you check that the post was made then exit php and run the js code for the alert box and echo in any dynamic content. then open php back up and continue with the rest of your query.. this error always occurred in php development so just try this one.
hi guess, i was developed a dynamic website in asp.net. there i make a login page through facebook. i want when a user login in this page with their facebook username and password. after login user is able to use their facebook without login and as well as also register in my website.
I wanted TO use a DATABASE to store My data collected From User Into a Database Without net Connection And the HTML files being not hosted on some server.
By creating a MHTML archive, and using VBScript to talk to the database. A bit more complex than using a server, and not a recommended technique.
gaurish thakkar wrote:
So it can Be used anywhere and finally i can export my data to a file using some plugin which loops through the Records and gives and option which is save as On to the Disk.
If you want your app to be distributed and use a local database, you'll need to write a Windows-Application. Browsers navigate from page to page, meaning that they'll always be multiple files. You can zip those off course, but that does not help much either.
gaurish thakkar wrote:
Is Sq lite supported In Mozilla Firefox.
FireFox is not a programming environment.
gaurish thakkar wrote:
And how can i use Access OR SQLCE from a offline HTML App without a server side Language
You don't. What kind of application are you trying to build exactly?
Bastard Programmer from Hell
if you can't read my code, try converting it here[^]