Jump to content

fazlionline

Member
  • Posts

    204
  • Joined

  • Last visited

Posts posted by fazlionline

  1. i tried the linke posted by jlhaslip

    it is not free

     

    if you see carefully, you will see these steps:

     

    1. Set up your search engine

    2. Try it out

    3. Provide contact information

    4. Purchase your search engine

     

    if you are talking about another link, post it here, i will chek that also.

  2. More problems with Mail ()

    I have a form with some fields on my client site.

    For the time being, I used my own email, if the user check the form and fill it, all the email data comes to my inbox.

    But I received some marketing emails in my inbox and used the email address of that site.

    my code is:

     

     

     

    <?php 
    $to = "123@yahoo.com"; 
    $url = "ACD - Contact Form"; 
    $subject = $_REQUEST['subj'] ; 
    $org = $_REQUEST['org'] ; 
    $tele = $_REQUEST['tele'] ; 
    $city = $_REQUEST['city'] ; 
    $email = $_REQUEST['email'] ; 
    $message = $_REQUEST['message'] ; 
    
    $details = "URL - Form : $url\n
               Subject: $subject\n
               Organization: $org\n
               Telephone: $tele\n
               City: $city\n
               From: $email \n
               Message: $message \n
           ";
    
    $headers = "From: $email"; 
    $sent = mail($to, $subject, $details, $headers, $message) ; 
    if($sent) 
    {print "Your mail was sent successfully"; }
    else 
    {print "We encountered an error sending your mail"; }
    ?> 

     

     

     

    How can I get rid of it?

  3. i have solved this problem and got a new code while googling

    ...
    $email = $_REQUEST['email'] ; 
    ini_set("sendmail_from", $email);
    $headers = $email; 
    $sent = mail($to, $subject, $details, $headers, $message) ; 
    ...

    this code solve the problem and i can resive the email in my yahoo inbox.

     

    but one thing i was so confused with:

     

    the same code i posted at first on this topic, i used it in other site.

    it was working there directly.

     

    but in second site, this have pasted same code and i solve it with this new lines in my code.

     

    i do not know y

  4. Jlhaslip

    i made thsese changes and got this error agian:

     

    Warning: mail(): SMTP server response: 553 5.3.0 ... DISCARD Spam Relay in d:\Customers\user1092190\www\test\contactus.php on line 19
    We encountered an error sending your mail .

     

    oops

  5. i made an email on my domain, like real_email@mydomain.com

    then sit the follwoing code:

     

    <?php 
    $to = "123@yahoo.com"; 
    $subject = $_REQUEST['subj'] ;
    $name = $_REQUEST['name'] ; 
    $city = $_REQUEST['city'] ; 
    $email = $_REQUEST['email'] ; 
    $message = $_REQUEST['message'] ;
    $url = "EG - Contact Form"; 
    
    $details = "\n URL - Form: $url\n
               Subject: $subject\n
               Name: $name\n
               City: $city\n
               From: $email \n
               Message: $message \n
           ";
    
    $headers = "real_email@mydomain.com"; 
    $sent = mail($to, $subject, $details, $headers, $message) ; 
    if($sent) 
    {print "Your mail was sent successfully"; }
    else 
    {print "We encountered an error sending your mail"; }
    ?> 

     

    but i still get error

  6. The "From" header needs an address that the Mail Server does not consider to be Spam.

    I should be an email address from the Domain the Server recognizes. Although the message may be sent from your site, if the from header says it is coming from me@jlhaslip.com and the domain name jlhaslip.com is not hosted there, the Mail server will consider it a Spam email.

     

    how can i fix this problem?

     

    is script in the following code is wrong?

     

    $email = $_REQUEST['email'] ; 
    
    $headers = "From: $email"; 

     

    or i sould change the code here

  7. Hi

    I have copied the same code to another website.

    But I removed two fields form there, the organization and telephone fields.

     

    I have uploaded to other site, and when I fill the form and click on submit button, I recive this error:

     

    Warning: mail(): SMTP server response: 553 5.3.0 ... DISCARD Spam Relay in d:\Customers\user1092190\www\test\contactus.php on line 17

    We encountered an error sending your mail

     

    I think the code is correct, but this may be with website strong security or something else.

     

    My code is here:

     

    <?php 
    $to = "123@yahoo.com"; 
    $url = "EG - Contact Form"; 
    $subject = $_REQUEST['subj'] ; 
    $city = $_REQUEST['city'] ; 
    $email = $_REQUEST['email'] ; 
    $message = "Register me for Monthly Newwsletter" ; 
    
    $details = "URL - Form: $url\n
               Subject: $subject\n
               City: $city\n
               From: $email \n
               Message: $message \n
           ";
    
    $headers = "From: $email"; 
    $sent = mail($to, $subject, $details, $headers, $message) ; 
    if($sent) 
    {print "You are successfully added to our monthly newsletter"; }
    else 
    {print "We encountered an error sending your mail"; }
    ?>

  8. Thanks falkencreative

     

    I have made that form and it works well.

    Thanks for your help.

     

    I upload this form to website, filled it and emails was sent to me with exact information.

    Thanks a lot

     

    The final code was:

     

    <?php 
    $to = "123@yahoo.com"; 
    $subject = $_REQUEST['subj'] ;
    $name = $_REQUEST['name'] ; 
    $org = $_REQUEST['org'] ; 
    $tele = $_REQUEST['tele'] ; 
    $city = $_REQUEST['city'] ; 
    $email = $_REQUEST['email'] ; 
    $message = $_REQUEST['message'] ;
    $url = "KGC - Contact Form"; 
    
    $details = "\n URL - Form: $url\n
               Subject: $subject\n
               Name: $name\n
               Organization: $org\n
               Telephone: $tele\n
               City: $city\n
               From: $email \n
               Message: $message \n
           ";
    
    $headers = "From: $email"; 
    $sent = mail($to, $subject, $details, $headers, $message) ; 
    if($sent) 
    {print "Your mail was sent successfully"; }
    else 
    {print "We encountered an error sending your mail"; }
    ?>

     

    thanks

  9. falkencreative, thanks

    i am Following the steps you told me, I going on?

    But I got a problem now,

    I have logged in to my CP, select PHPMyAdmin, after that, (there is a box, asking my database name), but the database was designed by a developer before me. How can I find the database name to download it?

    Actually, I want to download all my tables in database(s)

    Need help

  10. Hi all

     

    I have this script to send form data to my email

    Everything goes perfect, but there is no ?Message? text in my inbox.

    I receive all information but do not receive which are written in Message text area.

     

    My code is:

     

    <?php 
    $to = "123@yahoo.com"; 
    $subject = $_REQUEST['subj'] ; 
    $org = $_REQUEST['org'] ; 
    $tele = $_REQUEST['tele'] ; 
    $city = $_REQUEST['city'] ; 
    $email = $_REQUEST['email'] ; 
    $message = $_REQUEST['message'] ; 
    
    $details = "Subject: $subject\n
               Organization: $org\n
               Telephone: $tele\n
               City: $city\n
               From: $email \n
           ";
    
    $headers = "From: $email"; 
    $sent = mail($to, $subject, $details, $headers, $message) ; 
    if($sent) 
    {print "Your mail was sent successfully"; }
    else 
    {print "We encountered an error sending your mail"; }
    ?>

     

     

    123@yahoo.com is written just for security purpose here

    need help

×
×
  • Create New...