Send emails

gikou
edited November -1 in General Discussions

Hi !

I create an email account in the panel : Admin@cocktillo.ezyro.com
and my website is cocktillo.com
i want send emails with php but it's don't work
the name and the domain of email is not important for me i want just send mails with php

Comments

  • ChrisPAR
    edited November -1

    @gikou said:
    Hi !

    I create an email account in the panel : Admin@cocktillo.ezyro.com
    and my website is cocktillo.com
    i want send emails with php but it's don't work
    the name and the domain of email is not important for me i want just send mails with php

    Hi there,
    what are you trying to actually do?
    To send emails with PHP you won't need an email address.
    If you want to send emails using your email address you should, after creating it, click on "Webmail" on your cpanel and login with the email and password you selected.


    Reccomendation: Use admin@cocktillo.com instead of admin@cocktillo.ezyro.com

  • gikou
    edited August 2018

    actualy i want to send confirmation email but does't work with me

    the code work in other webhost

    $header="MIME-Version: 1.0\r\n";
                        $header.='From:"Support Cocktail"<support@Coctail.com>'."\n";
                        $header.='Content-Type:text/html; charset="uft-8"'."\n";
                        $header.='Content-Transfer-Encoding: 8bit';
                        $message = '
                      <html><head>
    
                          <meta charset="utf-8">
                            <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
                          <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
                        <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
                        <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
                        <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
                        </head><body>
                      <div class="card">
                      <h5 class="card-header">Cocktillo</h5>
                      <div class="card-body">
                        <h5 class="card-title">Hi '.$fname.', '.$lname.'!</h5>
                        <p class="card-text">Help us secure your Cocktillo account by verifying your email address ('.$email.'). This lets you access all of Cocktillo’s features.</p>
                        <a href="http://cocktillo.com/register.php?confirmation='.$email.'&key='.$thekey.'" class="btn btn-primary">Activate my account </a>
                      </div>
                    </div></body></html> ';    
    
                        mail($email, "cocktillo Account confirmation", $message, $header);
    
  • ChrisPAR
    edited November -1

    Yeah.. Unfortunately I do not know PHP so I cannot help you with this.
    @badbot could help you maybe but right now he is not active so you would have to wait for him to login and see this post.

  • gikou
    edited November -1

    @badbot talk with me please since you're here

  • gikou
    edited November -1

    @ChrisPAR the probleme is not from php code

  • gikou
    edited November -1

    ok, can you send me a simple hello word mail send code

  • gikou
    edited November -1

    @Admin & @badbot
    ok, can you send me a simple hello word mail send code

  • ChrisPAR
    edited November -1

    @gikou said:
    @Admin & @badbot
    ok, can you send me a simple hello word mail send code

    There is a code that you can configure:
    https://megaupload.nz/XfW7Ebf1b4/Script.zip

    It was not created from me but it works, you just have to follow the instructions to configure it correctly.

    It requires the use of SMTP like Google or Yandex one, don't worry it guides you how to do so.

  • gikou
    edited November -1

    What about webmail i mean admin@cocktillo.com

  • ChrisPAR
    edited November -1

    @gikou said:
    What about webmail i mean admin@cocktillo.com

    You can send emails from there, using the Webmail link and logging in, then send e-mails like you normally do with Gmail, Outlook or whatever else provider you use.

  • gikou
    edited November -1

    no i mean sending mails from php with adresse of webmail : Admin@cocktillo.com
    all i want is confirmation email it's work in other webhost juste with mail() but not here !! why