Results 1 to 7 of 7

Thread: Email confirmation in PHP

  1. #1
    Join Date
    Mar 2010
    Posts
    184

    Email confirmation in PHP

    Hello,
    PHP sends the confirmation email, but this is not working for me. Any help is appreciated . Thanks in advance
    Here is my code
    Code:
    / / Prepare the mail
    $ rec=$ Var_courriel; 
    $ subj="Confirmation of your eng ..."; 
    $ Msg="Hello var_civilite t $ t $ var_nomn"; 
    $ Msg.="E-mail: t $ var_courrieln"; 
    $ Msg.="Thank you for registering on our mailing list. You are now part of this vast réseaunn"; 
    $ Msg.="This is an automated email, please do not respond."; 
    $ Mailheaders="From: toto.com <> n"; 
    / / Echo $ msg; 
    / / exit ();
    
    / / Send mail
    Mail($ rec, $ subj, $ Msg, $ Mailheaders); 
    
    )?>

  2. #2
    Join Date
    Apr 2008
    Posts
    240

    Re: Email confirmation in PHP

    Hello,
    Even I do have a simialr kind of a problem with my code. I tested it with " echo exit ). By cons when it comes to the mail function, the following error message: error message wrote
    Code:
    Server Error 
    500 - Internal server error.
    There Is a Problem With The resource you are looking for, and it can not be displayed.
    Code:
    In my ini file 
    SMTP localhost 
    smtp_port "25"
    But my smtp server is a remote mail server. So, what may be the solution for this. Any help is welcomed.

  3. #3
    Join Date
    Nov 2009
    Posts
    583

    Re: Email confirmation in PHP

    Hello,
    You can try the following code, though I have not tested it you can give a try to it

    Code:
    <?php 
    / / Replace with your address just [email protected] Mail so it must contain a @ 
    / / Do nothing replaces
    Mail('[email protected]','My test mail','My Message market) 
    ?>
    These are just the syntax you have to use in your code and not the full code. Hope this will help you.

  4. #4
    Join Date
    Nov 2009
    Posts
    518

    Re: Email confirmation in PHP

    Hello,
    I put the ip of my mail server for example ... : 222.222.2.2). Then I put the name of my server ... (Example: mail.test.com)
    Here is the code
    [Mail function]
    Code:
    ; For Win32 only. 
    ; SMTP = localhost 
    ; originally two next line is changed by aspkiddy 
    mail.toto.com = SMTP 
    , SMTP = 222.222.2.2
    smtp_port = 25
    I do not know whether to also put userName password and ... and if yes, how can I put them. In addition, I watched as another application (in aspDotNet) that sends the email. In their file (Web.Config) (equivalent to php.ini) there userName and password.

  5. #5
    Join Date
    Nov 2009
    Posts
    343

    Re: Email confirmation in PHP

    Hello,
    If you want you can boot the server with php
    Code:
    ini_set ("SMTP", "smtp.test.provider")
    and send an email I think you should add the pop if you ping another server because the mail server is remote also search has also ping your own server
    Code:
    = pop pop._provider 
    auth_user = login_mail 
    auth_pass = pass_mail
    After if AC does not need to know that some ISP does send the mail with servers with which they have written agreements is to limit spam, what is more you're going to find very quickly with a port 25. I know aol is flexible enough for this side because I managed to send mails with the ISP.

  6. #6
    Join Date
    Nov 2009
    Posts
    330

    Re: Email confirmation in PHP

    Hello,
    You can try this code
    Code:
    <?php 
    $ Username="user2"; 
    $ Password="pass"; 
    $ POPserver="222.222.2.2"; 
    # # # Php.ini 's SMTP must correspond to this server 
    # # # and sendmail_from Must Be from this server (?)
    
    $ Msg=POP_authenticate($ Username, $ Password, $ POPserver) 
    if ($ Msg===FALSE) ( 
    Mail("[email protected]", 'Test email ", "2 lignenLine 2") 
    $ Msg="Mail was envoyer.rn"; 
    ) 
    exit ($ Msg) 
    ?>

  7. #7
    Join Date
    Nov 2009
    Posts
    356

    Re: Email confirmation in PHP

    Hello,
    Whatever the error message I think that the current state of Net access from any vendor no longer supports this technique and when the mail servers are unable to identify the source of emails they go directly to spam the emptying of their contents. Abandoning clear what sort of techniques and through conventional mail servers, plus it offers obvious advantages such as a list of mail not delivered, or shell scripts to the mass mailing is completed on time or we could send mails free of her fiddling with the Apache server initialization file server.

Similar Threads

  1. Replies: 4
    Last Post: 29-10-2011, 09:15 AM
  2. Got confirmation of Shipment of Forza Motorsport 4
    By Stavita in forum Video Games
    Replies: 6
    Last Post: 13-10-2011, 11:15 PM
  3. Confirmation of PAYDAY: The Heist Demo
    By Mayoor in forum Video Games
    Replies: 5
    Last Post: 11-10-2011, 11:04 PM
  4. how do i delete Human confirmation pop up
    By Dirck in forum Networking & Security
    Replies: 3
    Last Post: 04-02-2011, 07:47 AM
  5. How to turn off delete confirmation
    By Sawantji in forum Tips & Tweaks
    Replies: 2
    Last Post: 26-01-2009, 07:56 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,751,660,929.71490 seconds with 16 queries