Vishal Kumar

Vishal Kumar

28p

27 comments posted · 1 followers · following 0

379 weeks ago @ Vishal Kumar - At IIMB. Post 1. · 0 replies · +1 points

Yep - just let me know when! :)

V

456 weeks ago @ Vishal Kumar - PHP Mail using Gmail S... · 0 replies · +1 points

Are you sure you followed instructions to the letter?
First check that normal php pages are being displayed (i.e. wamp is running as it should). Create a test.php page in your www folder, and put in <?php echo "hi"; ?>
Then open the page by going to your http://localhost/test.php. You should see a "hi".
If you don't, check click on the wampserver logo and select Start All Services.
If you have started the services and you were just thinking that yada yada yada I've already done all of that, please make sure that you've edited the php.ini page.
If even that doesn't work, try using XAMPP, and try with the same instructions.

457 weeks ago @ Vishal Kumar - Game: Chat Noir in Jav... · 0 replies · +1 points

We do what we can :) Didn't want to overload the work with animations. I do agree they look cute though.

[WORDPRESS HASHCASH] The poster sent us '0 which is not a hashcash value.

457 weeks ago @ Vishal Kumar - Help: I Can't Open .EX... · 0 replies · +1 points

Hey, what do you mean? Regedit itself isn't opening?

Try this: rightclick and create a new text file, and save it as new.reg. Then paste and save the following text (between the lines):
___

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\exefile\shell\open\command]
@="\"%1\" %*"
"IsolatedCommand"="\"%1\" %*"

___

The system should recognize it as a registry backup file. Double click on the file, and allow it to run (security permissions might be asked).

If you can't open notepad, try going to run (Windowskey+R), and typing "edit" and enter, and use that instead.

457 weeks ago @ Vishal Kumar - Asp.NET Mail using Gma... · 0 replies · +1 points

Hey janani, sorry for the late reply.
Please have a look athttp://msdn.microsoft.com/en-us/library/system.ne...

Critical are these lines:

// Create the file attachment for this e-mail message.
Attachment data = new Attachment(file, MediaTypeNames.Application.Octet);
// Add time stamp information for the file.
ContentDisposition disposition = data.ContentDisposition;
disposition.CreationDate = System.IO.File.GetCreationTime(file);
disposition.ModificationDate = System.IO.File.GetLastWriteTime(file);
disposition.ReadDate = System.IO.File.GetLastAccessTime(file);
// Add the file attachment to this e-mail message.
message.Attachments.Add(data);

457 weeks ago @ Vishal Kumar - PHP Mail using Gmail S... · 0 replies · +2 points

Where have you hosted this? Have you started from fresh? You can also enable error messages by setting STMPDebug to 1.

Also check out that your PHP is working by enabling error messages in php.ini (search for error_reporting ), and making sure theres a line like error_reporting = E_ALL

457 weeks ago @ Vishal Kumar - PHP Mail using Gmail S... · 0 replies · +1 points

Leave those. Just make the changes specified in the code above. Most of the work is already done (thanks to PHPMailer). :)

457 weeks ago @ Vishal Kumar - PHP Mail using Gmail S... · 0 replies · +1 points

You needn't touch the mail function. This works without that. The only change you need to do is the SSL, in php.ini

466 weeks ago @ Vishal Kumar - PHP Mail using Gmail S... · 0 replies · +1 points

Yes, the php.ini needs to be edit. Check the tutorial again.
For the parse error, you might have accidentally deleted a few characters or misspelled a word.

466 weeks ago @ Vishal Kumar - PHP Mail using Gmail S... · 1 reply · +2 points

In your email Form, you would be making use of the <form> tag and assigning it an action (the PHP mail sending page), and a method (either GET-send the data in the URL address, or POST-send it in the request itself, so it doesn't appear in the URL).

So you'll have <form action="sendmail.php" method="post">...

Then in your sendmail.php, you need to receive the variables.
Access the form elements in the previous page with '$_POST['name']'. So instead of the strings in the demo email sending above, you would use the POST variables.