Jump to content

IrOnMaSk

Members
  • Posts

    149
  • Joined

  • Last visited

    Never

Posts posted by IrOnMaSk

  1. the error show that the changes is not saved... You still have localhost as your smtp and the port is the still 25... it should be SMTP = smtp.abv.bg and smtp_port = 465. Make sure that those two are changes... go back in there see if the two lines are changed. if not change it and saves and restart the xamp server...

    after that try this one for me... just copy and paste it into your page. and run it (assuming that "man.in.black@abv.bg" is a real email address)

    $to = "man.in.black@abv.bg";
    $subject = "mail testing";
    $message = "Did you get this message?";
    $headers = "MIME-Version: 1.0" . "\r\n";
    $headers.= "Content-type:text/html;charset=iso-8859-1" . "\r\n";	
    $headers .= 'From: <rali__90@abv.bg'>' . "\r\n";
    mail($to,$subject,$message,$headers);
    

     

    most important make sure the smtp and the port is changed and saved

  2. don't be embarassed... if you don't ask you don't know :)

    this code is wrong

    <? mail('target@abv.bg', 'subject', 'message'); ?>

    that's not all the code that neccessary to send email... It need heading in there...

    here follow this example...

    http://www.w3schools.com/PHP/php_mail.asp

    and don't forget to do the setting from here

    so go to your php.ini (in your xamp folder)

    and search for:

    SMTP=localhost (change the localhost to smtp.abv.bg)

    smtp_port = (after the = replace with 465)

    sendmail_from = you@yourdomain.com (your email addres the blabla@abv.bg)

    lastly they use secure socket layer ssl

    search for 'extension=php_openssl.dll' and uncomment it by delet the ; infront of it....

    let me know

  3. Hey, I want to ask how can I actually send emails using php ?  All tutorials show on how to send emails via outlook and I don't want that, I want to send emails from say example@yahoo.com, how do I do that ?

    oh, you can't send email using somebody else's address!!! lol

    I was assuming you're using your own email address... and yes you need the password, if its your email address use your password to that address.

    and can you post the source code that you're working with?

     

  4. so you need their outgoing mail server, and port number

    a quick search I found that this is their out going mail server : smtp.abv.bg

    and their port is : 465

    so go to your php.ini (in your xamp folder)

    and search for:

    SMTP=localhost (change the localhost to smtp.abv.bg)

    and the port number, change it to 465

    lastly they use secure socket layer ssl

    search for 'extension=php_openssl.dll' and uncomment it by delet the ; infront of it....

    follow so far?

    if that's not working you have to confirm with their outgoing mail server that's it's definitly smtp.abv.bg

  5. how do I get my exact ISP name without having to contact them? I'm using a rooter

    who's your ISP? What mailing are you using? gmail, yahoo, hotmail? you can just search for their mailing server online

  6. how to copy from a website specific piece of txt  and insert to mysql

    the easiest way is in 5 steps

    1) to place your mouse pointer at the beginning of where you want to copy, hold the left click and drag the mouse over the text you want to copy and stop at the end of where you don't want the text anymore.

    2) Release the mouse, you should see the text highlight, make sure that all the text you want.

    3) press and hold Ctrl and press letter C at same time.

    4) go to your mysql database table and place the mouse where you want to paste the text to.

    5) press and hold Ctrl and press letter V...

    Done

    forgive me, if that's not the way you want to do it... it's just one of the possibilities :D

  7. hey guys, So I want to throw an error if something goes wrong with fwrite function and send it to my email. Problem is that it will send me email when something goes wrong with the function and also it will send email when there's nothing to write to file. all I want is to send me email only when fwrite() is not working not when there's nothing to write to file....

    here's my email function

              function error_checking($to, $message)//checking error
              {
    $subject = "Error Checking";
    $headers = "MIME-Version: 1.0" . "\r\n";
    $headers.= "Content-type:text/html;charset=iso-8859-1" . "\r\n";	
    $headers .= 'From: <licensetracker@wateva.com>' . "\r\n";
                    mail($to,$subject,$message,$headers);
               }
    

    here's my write to file code

    <?php
            ob_start();//start writing content
             //content is empty nothing to write
    
            $date = date("m/d/y");
            $time = date("h:i:s");				
            $page = ob_get_contents();
            ob_end_flush();
            $fp = fopen("content.html", "w");
             fwrite($fp, $page);
             if(!fwrite($fp, $page))
             {					
    error_checking(emailme@wateva.com, 'cannot write to file. please check hompepage.php for more info');
              }else{
                   fclose($fp);
              }
    ?>
    

    thanks in advance

  8. XAMP is a geeky spelling of EXAM where the E is converted to a P and then is moved from its first indice to the last...

    AMP is an abbriviation for AMPLIFICATION... just means to crank up the sound...

    and the first two already answered by Nodral and Sensei,

    oh and Senei means Teacher in Japanese (i think)  :D

  9. if that's all your code for login in and register... it will never work... unless some magical scripting done in your JSFunctions.js. you fail to register because there's no code to process that register form. what you need is php to take your registering info and save it to a database. but i don't see any php in that code you provided....

  10. oh ok so you don't want them to log into your database (don't do that :))

    If everything is done using web application, maybe create a profile for your users, and when they login to that profile you display all the info that you want them to see (you're in control). And if they want to update their info, just do a simple update or alter table statment from there... (if you update the db base on user input dont forget to sanitize the query)

     

    hope this somewhat help or point u in the right direction... let me know

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.