What should be the PHPMailer settings for GoDaddy for sending email?Sending email in .NET through GmailWhat is the maximum length of a valid email address?Username without Email Extension in PHPMailerPHPMailer - SMTP ERROR: Password command failed when send mail from my serverSending Email using godaddy smtp relay and PHPMailer on codeigniterPHPMailer didn't send email messageGodaddy phpmailer smpt configurationPhpmailer not sending email on same domainHow to set timeout in Account verification through gmail?PHPMailer wont Work 000webhost

What does Fisher mean by this quote?

Short story about a teenager who has his brain replaced with a microchip (Psychological Horror)

Colleagues speaking another language and it impacts work

French equivalent of "Make leaps and bounds"

How does The Fools Guild make its money?

4-dimensional Knight's Tour

What word can be used to describe a bug in a movie?

How to explain to a team that the project they will work for 6 months will 100% fail?

Did silent film actors actually say their lines or did they simply improvise “dialogue” while being filmed?

Independent table row spacing

Why do proponents of guns oppose gun competency tests?

Does bottle color affect mold growth?

Sparse matrix processing: flip sign of top-left entries of the matrix

Could one become a successful researcher by writing some really good papers while being outside academia?

Did WWII Japanese soldiers engage in cannibalism of their enemies?

youtube video IP

Double blind peer review when paper cites author's GitHub repo for code

Why should public servants be apolitical?

Is it true that control+alt+delete only became a thing because IBM would not build Bill Gates a computer with a task manager button?

Is there a loss of quality when converting RGB to HEX?

Unexpected route on a flight from USA to Europe

Secure my password from unsafe servers

Finish the Mastermind

Do the Kraus operators of a CPTP channel need to be orthogonal?



What should be the PHPMailer settings for GoDaddy for sending email?


Sending email in .NET through GmailWhat is the maximum length of a valid email address?Username without Email Extension in PHPMailerPHPMailer - SMTP ERROR: Password command failed when send mail from my serverSending Email using godaddy smtp relay and PHPMailer on codeigniterPHPMailer didn't send email messageGodaddy phpmailer smpt configurationPhpmailer not sending email on same domainHow to set timeout in Account verification through gmail?PHPMailer wont Work 000webhost






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















What will be the settings for the godaddy for sending email?



$mail->isSMTP(); 
$mail->Host = 'mail.trottolaw.com';
$mail->SMTPAuth = true;
$mail->Username = 'info@trottolaw.com';
$mail->Password = 'my password';
$mail->SMTPSecure = 'tls';
$mail->Port = 587;
$mail->addReplyTo('info@trottolaw.com','Mazhar');
$mail->setFrom('info@trottolaw.com', 'Mazhar');
$mail->addAddress('contact@trottolaw.com', 'Mazhar');
$mail->addAddress('contact@trottolaw.com');


I was expecting it to send email but it's not sending any email and also not giving any error message.










share|improve this question


























  • Have you added $mail->Send(); in last?

    – aagjalpankaj
    Mar 27 at 6:00











  • yes i have added

    – MD.Mazharul Islam
    Mar 27 at 10:46

















0















What will be the settings for the godaddy for sending email?



$mail->isSMTP(); 
$mail->Host = 'mail.trottolaw.com';
$mail->SMTPAuth = true;
$mail->Username = 'info@trottolaw.com';
$mail->Password = 'my password';
$mail->SMTPSecure = 'tls';
$mail->Port = 587;
$mail->addReplyTo('info@trottolaw.com','Mazhar');
$mail->setFrom('info@trottolaw.com', 'Mazhar');
$mail->addAddress('contact@trottolaw.com', 'Mazhar');
$mail->addAddress('contact@trottolaw.com');


I was expecting it to send email but it's not sending any email and also not giving any error message.










share|improve this question


























  • Have you added $mail->Send(); in last?

    – aagjalpankaj
    Mar 27 at 6:00











  • yes i have added

    – MD.Mazharul Islam
    Mar 27 at 10:46













0












0








0








What will be the settings for the godaddy for sending email?



$mail->isSMTP(); 
$mail->Host = 'mail.trottolaw.com';
$mail->SMTPAuth = true;
$mail->Username = 'info@trottolaw.com';
$mail->Password = 'my password';
$mail->SMTPSecure = 'tls';
$mail->Port = 587;
$mail->addReplyTo('info@trottolaw.com','Mazhar');
$mail->setFrom('info@trottolaw.com', 'Mazhar');
$mail->addAddress('contact@trottolaw.com', 'Mazhar');
$mail->addAddress('contact@trottolaw.com');


I was expecting it to send email but it's not sending any email and also not giving any error message.










share|improve this question
















What will be the settings for the godaddy for sending email?



$mail->isSMTP(); 
$mail->Host = 'mail.trottolaw.com';
$mail->SMTPAuth = true;
$mail->Username = 'info@trottolaw.com';
$mail->Password = 'my password';
$mail->SMTPSecure = 'tls';
$mail->Port = 587;
$mail->addReplyTo('info@trottolaw.com','Mazhar');
$mail->setFrom('info@trottolaw.com', 'Mazhar');
$mail->addAddress('contact@trottolaw.com', 'Mazhar');
$mail->addAddress('contact@trottolaw.com');


I was expecting it to send email but it's not sending any email and also not giving any error message.







php email phpmailer email-integration






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 27 at 10:08









NewOnStackoverflow

481 silver badge11 bronze badges




481 silver badge11 bronze badges










asked Mar 27 at 5:55









MD.Mazharul IslamMD.Mazharul Islam

62 bronze badges




62 bronze badges















  • Have you added $mail->Send(); in last?

    – aagjalpankaj
    Mar 27 at 6:00











  • yes i have added

    – MD.Mazharul Islam
    Mar 27 at 10:46

















  • Have you added $mail->Send(); in last?

    – aagjalpankaj
    Mar 27 at 6:00











  • yes i have added

    – MD.Mazharul Islam
    Mar 27 at 10:46
















Have you added $mail->Send(); in last?

– aagjalpankaj
Mar 27 at 6:00





Have you added $mail->Send(); in last?

– aagjalpankaj
Mar 27 at 6:00













yes i have added

– MD.Mazharul Islam
Mar 27 at 10:46





yes i have added

– MD.Mazharul Islam
Mar 27 at 10:46












2 Answers
2






active

oldest

votes


















2














Search before you post; This has been asked and answered many times before. Also, why would you not look at GoDaddy's support area before posting here?



GoDaddy blocks outbound SMTP; you cannot use any SMTP servers other than GoDaddy's own. This also means you usually cannot use your own email addresses as from addresses because it will cause SPF failures (unless you add GoDaddy to your SPF, which isn't a good idea).



To send through GoDaddy's servers, either do not use SMTP at all (which means that PHPMailer will fall back to using mail(), which will send via localhost, and that works with GoDaddy's shared hosting), or use these settings:



$mail->isSMTP();
$mail->Host = 'relay-hosting.secureserver.net';
$mail->Port = 25;
$mail->SMTPAuth = false;


You don't need to provide a username or password as it whitelists shared hosts.






share|improve this answer

























  • now i am using $mail->isSMTP(); $mail->Host = 'relay-hosting.secureserver.net'; $mail->Port = 25; $mail->SMTPAuth = false; $mail->addAddress('info@trottolaw.com', 'Mazhar'); $mail->addAddress('info@trottolaw.com'); Now it's showing " Message could not be sent.Mailer Error: SMTP connect() failed. github.com/PHPMailer/PHPMailer/wiki/Troubleshooting"

    – MD.Mazharul Islam
    Mar 27 at 10:43












  • You could also try setting Host to localhost or relay.secureserver.net. Beyond that, ask GoDaddy support - it's what you're paying them for.

    – Synchro
    Mar 27 at 11:51


















0














I also went through the same issue of mails not being sent and recieved from Godaddy.
The following steps solved my issue:



1) Go to Cpanel

2) Click on MX Entry under Email Section

3) Check Email Routing

4) If you are using Cpanel emails then you need to select Local Mail Exchanger and If you are using Google or any external email service then you need to select Remote Mail Exchanger.






share|improve this answer



























    Your Answer






    StackExchange.ifUsing("editor", function ()
    StackExchange.using("externalEditor", function ()
    StackExchange.using("snippets", function ()
    StackExchange.snippets.init();
    );
    );
    , "code-snippets");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "1"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55370639%2fwhat-should-be-the-phpmailer-settings-for-godaddy-for-sending-email%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    2














    Search before you post; This has been asked and answered many times before. Also, why would you not look at GoDaddy's support area before posting here?



    GoDaddy blocks outbound SMTP; you cannot use any SMTP servers other than GoDaddy's own. This also means you usually cannot use your own email addresses as from addresses because it will cause SPF failures (unless you add GoDaddy to your SPF, which isn't a good idea).



    To send through GoDaddy's servers, either do not use SMTP at all (which means that PHPMailer will fall back to using mail(), which will send via localhost, and that works with GoDaddy's shared hosting), or use these settings:



    $mail->isSMTP();
    $mail->Host = 'relay-hosting.secureserver.net';
    $mail->Port = 25;
    $mail->SMTPAuth = false;


    You don't need to provide a username or password as it whitelists shared hosts.






    share|improve this answer

























    • now i am using $mail->isSMTP(); $mail->Host = 'relay-hosting.secureserver.net'; $mail->Port = 25; $mail->SMTPAuth = false; $mail->addAddress('info@trottolaw.com', 'Mazhar'); $mail->addAddress('info@trottolaw.com'); Now it's showing " Message could not be sent.Mailer Error: SMTP connect() failed. github.com/PHPMailer/PHPMailer/wiki/Troubleshooting"

      – MD.Mazharul Islam
      Mar 27 at 10:43












    • You could also try setting Host to localhost or relay.secureserver.net. Beyond that, ask GoDaddy support - it's what you're paying them for.

      – Synchro
      Mar 27 at 11:51















    2














    Search before you post; This has been asked and answered many times before. Also, why would you not look at GoDaddy's support area before posting here?



    GoDaddy blocks outbound SMTP; you cannot use any SMTP servers other than GoDaddy's own. This also means you usually cannot use your own email addresses as from addresses because it will cause SPF failures (unless you add GoDaddy to your SPF, which isn't a good idea).



    To send through GoDaddy's servers, either do not use SMTP at all (which means that PHPMailer will fall back to using mail(), which will send via localhost, and that works with GoDaddy's shared hosting), or use these settings:



    $mail->isSMTP();
    $mail->Host = 'relay-hosting.secureserver.net';
    $mail->Port = 25;
    $mail->SMTPAuth = false;


    You don't need to provide a username or password as it whitelists shared hosts.






    share|improve this answer

























    • now i am using $mail->isSMTP(); $mail->Host = 'relay-hosting.secureserver.net'; $mail->Port = 25; $mail->SMTPAuth = false; $mail->addAddress('info@trottolaw.com', 'Mazhar'); $mail->addAddress('info@trottolaw.com'); Now it's showing " Message could not be sent.Mailer Error: SMTP connect() failed. github.com/PHPMailer/PHPMailer/wiki/Troubleshooting"

      – MD.Mazharul Islam
      Mar 27 at 10:43












    • You could also try setting Host to localhost or relay.secureserver.net. Beyond that, ask GoDaddy support - it's what you're paying them for.

      – Synchro
      Mar 27 at 11:51













    2












    2








    2







    Search before you post; This has been asked and answered many times before. Also, why would you not look at GoDaddy's support area before posting here?



    GoDaddy blocks outbound SMTP; you cannot use any SMTP servers other than GoDaddy's own. This also means you usually cannot use your own email addresses as from addresses because it will cause SPF failures (unless you add GoDaddy to your SPF, which isn't a good idea).



    To send through GoDaddy's servers, either do not use SMTP at all (which means that PHPMailer will fall back to using mail(), which will send via localhost, and that works with GoDaddy's shared hosting), or use these settings:



    $mail->isSMTP();
    $mail->Host = 'relay-hosting.secureserver.net';
    $mail->Port = 25;
    $mail->SMTPAuth = false;


    You don't need to provide a username or password as it whitelists shared hosts.






    share|improve this answer













    Search before you post; This has been asked and answered many times before. Also, why would you not look at GoDaddy's support area before posting here?



    GoDaddy blocks outbound SMTP; you cannot use any SMTP servers other than GoDaddy's own. This also means you usually cannot use your own email addresses as from addresses because it will cause SPF failures (unless you add GoDaddy to your SPF, which isn't a good idea).



    To send through GoDaddy's servers, either do not use SMTP at all (which means that PHPMailer will fall back to using mail(), which will send via localhost, and that works with GoDaddy's shared hosting), or use these settings:



    $mail->isSMTP();
    $mail->Host = 'relay-hosting.secureserver.net';
    $mail->Port = 25;
    $mail->SMTPAuth = false;


    You don't need to provide a username or password as it whitelists shared hosts.







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Mar 27 at 7:26









    SynchroSynchro

    20.6k9 gold badges55 silver badges72 bronze badges




    20.6k9 gold badges55 silver badges72 bronze badges















    • now i am using $mail->isSMTP(); $mail->Host = 'relay-hosting.secureserver.net'; $mail->Port = 25; $mail->SMTPAuth = false; $mail->addAddress('info@trottolaw.com', 'Mazhar'); $mail->addAddress('info@trottolaw.com'); Now it's showing " Message could not be sent.Mailer Error: SMTP connect() failed. github.com/PHPMailer/PHPMailer/wiki/Troubleshooting"

      – MD.Mazharul Islam
      Mar 27 at 10:43












    • You could also try setting Host to localhost or relay.secureserver.net. Beyond that, ask GoDaddy support - it's what you're paying them for.

      – Synchro
      Mar 27 at 11:51

















    • now i am using $mail->isSMTP(); $mail->Host = 'relay-hosting.secureserver.net'; $mail->Port = 25; $mail->SMTPAuth = false; $mail->addAddress('info@trottolaw.com', 'Mazhar'); $mail->addAddress('info@trottolaw.com'); Now it's showing " Message could not be sent.Mailer Error: SMTP connect() failed. github.com/PHPMailer/PHPMailer/wiki/Troubleshooting"

      – MD.Mazharul Islam
      Mar 27 at 10:43












    • You could also try setting Host to localhost or relay.secureserver.net. Beyond that, ask GoDaddy support - it's what you're paying them for.

      – Synchro
      Mar 27 at 11:51
















    now i am using $mail->isSMTP(); $mail->Host = 'relay-hosting.secureserver.net'; $mail->Port = 25; $mail->SMTPAuth = false; $mail->addAddress('info@trottolaw.com', 'Mazhar'); $mail->addAddress('info@trottolaw.com'); Now it's showing " Message could not be sent.Mailer Error: SMTP connect() failed. github.com/PHPMailer/PHPMailer/wiki/Troubleshooting"

    – MD.Mazharul Islam
    Mar 27 at 10:43






    now i am using $mail->isSMTP(); $mail->Host = 'relay-hosting.secureserver.net'; $mail->Port = 25; $mail->SMTPAuth = false; $mail->addAddress('info@trottolaw.com', 'Mazhar'); $mail->addAddress('info@trottolaw.com'); Now it's showing " Message could not be sent.Mailer Error: SMTP connect() failed. github.com/PHPMailer/PHPMailer/wiki/Troubleshooting"

    – MD.Mazharul Islam
    Mar 27 at 10:43














    You could also try setting Host to localhost or relay.secureserver.net. Beyond that, ask GoDaddy support - it's what you're paying them for.

    – Synchro
    Mar 27 at 11:51





    You could also try setting Host to localhost or relay.secureserver.net. Beyond that, ask GoDaddy support - it's what you're paying them for.

    – Synchro
    Mar 27 at 11:51













    0














    I also went through the same issue of mails not being sent and recieved from Godaddy.
    The following steps solved my issue:



    1) Go to Cpanel

    2) Click on MX Entry under Email Section

    3) Check Email Routing

    4) If you are using Cpanel emails then you need to select Local Mail Exchanger and If you are using Google or any external email service then you need to select Remote Mail Exchanger.






    share|improve this answer





























      0














      I also went through the same issue of mails not being sent and recieved from Godaddy.
      The following steps solved my issue:



      1) Go to Cpanel

      2) Click on MX Entry under Email Section

      3) Check Email Routing

      4) If you are using Cpanel emails then you need to select Local Mail Exchanger and If you are using Google or any external email service then you need to select Remote Mail Exchanger.






      share|improve this answer



























        0












        0








        0







        I also went through the same issue of mails not being sent and recieved from Godaddy.
        The following steps solved my issue:



        1) Go to Cpanel

        2) Click on MX Entry under Email Section

        3) Check Email Routing

        4) If you are using Cpanel emails then you need to select Local Mail Exchanger and If you are using Google or any external email service then you need to select Remote Mail Exchanger.






        share|improve this answer













        I also went through the same issue of mails not being sent and recieved from Godaddy.
        The following steps solved my issue:



        1) Go to Cpanel

        2) Click on MX Entry under Email Section

        3) Check Email Routing

        4) If you are using Cpanel emails then you need to select Local Mail Exchanger and If you are using Google or any external email service then you need to select Remote Mail Exchanger.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Mar 27 at 9:43









        NewOnStackoverflowNewOnStackoverflow

        481 silver badge11 bronze badges




        481 silver badge11 bronze badges






























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55370639%2fwhat-should-be-the-phpmailer-settings-for-godaddy-for-sending-email%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

            Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

            Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript