btrp Posted June 3, 2013 Share Posted June 3, 2013 hi, i don't know much php at all but i've a problem with a website contact form. since switching to siteground (lot's of problems BTW because there are under attack) the form in our little website isn't working. it says "sent succssesfuly" but nothing being sent. we are talking about a form created with the 'phpmailer' script. i wasn't the one who created it. it's a guy i'm not in contact these days with. any help will be appreciated i can send you a link by email and the files and all of that. Quote Link to comment https://forums.phpfreaks.com/topic/278709-phpmailer-script-isnt-working-since-switching-to-another-host/ Share on other sites More sharing options...
trq Posted June 3, 2013 Share Posted June 3, 2013 We can't help without seeing relevant code. Quote Link to comment https://forums.phpfreaks.com/topic/278709-phpmailer-script-isnt-working-since-switching-to-another-host/#findComment-1433777 Share on other sites More sharing options...
btrp Posted June 3, 2013 Author Share Posted June 3, 2013 can i send it by email? i don't want to reveal the whole code to the public. tnx Quote Link to comment https://forums.phpfreaks.com/topic/278709-phpmailer-script-isnt-working-since-switching-to-another-host/#findComment-1433783 Share on other sites More sharing options...
mac_gyver Posted June 3, 2013 Share Posted June 3, 2013 this is a public help forum, where people needing help post the relevant code they need help with and any member(s) with some time and an interest and knowledge about the subject attempt to help find or help solve what is causing the problem. it's also against the forum rules to pm/email members/staff directly to get help with a thread (since you don't know who has the time, interest, or knowledge to help with your subject this would just result in spamming members and get your account banned.) block out (with **** or some other character) any information you don't want to appear in the post, but there's no way of helping with your code without seeing it or you should just hire someone to take a look at your code to solve this for you. Quote Link to comment https://forums.phpfreaks.com/topic/278709-phpmailer-script-isnt-working-since-switching-to-another-host/#findComment-1433841 Share on other sites More sharing options...
btrp Posted June 6, 2013 Author Share Posted June 6, 2013 is that enoght for you? php file http://pastebin.com/KwAR2ZJL class.smtp.php http://pastebin.com/8TqQd2xq class.phpmailer http://pastebin.com/JvBM7hyu html http://pastebin.com/fEu6A5Jz and tnx. p.s. please tell us if this method is good. because maybe we will change the while sending system. Quote Link to comment https://forums.phpfreaks.com/topic/278709-phpmailer-script-isnt-working-since-switching-to-another-host/#findComment-1434470 Share on other sites More sharing options...
mikosiko Posted June 6, 2013 Share Posted June 6, 2013 if your script was working before you move to the new ISP your best bet is call them and ask for the details of how to use their smtp email service and how to configure it. In your script (first one) you are using unauthenticated SMTP setup... probably your ISP require it to be authenticated... PhpMailer has a test folder with examples where you can see the setup details, but ask your provider first. Quote Link to comment https://forums.phpfreaks.com/topic/278709-phpmailer-script-isnt-working-since-switching-to-another-host/#findComment-1434485 Share on other sites More sharing options...
btrp Posted June 6, 2013 Author Share Posted June 6, 2013 hi and thanks, so you are asking me to contact our previous hosting and ask them or call the ISP? i think we should be fine with regular form too without the whole script. please let me know because i don't find the phone number of the guy that installed that. and also i'm still wondering if we really need the phpmailer. once again thanks Quote Link to comment https://forums.phpfreaks.com/topic/278709-phpmailer-script-isnt-working-since-switching-to-another-host/#findComment-1434502 Share on other sites More sharing options...
mikosiko Posted June 6, 2013 Share Posted June 6, 2013 you have to contact your actual hosting provider (siteground?) Quote Link to comment https://forums.phpfreaks.com/topic/278709-phpmailer-script-isnt-working-since-switching-to-another-host/#findComment-1434509 Share on other sites More sharing options...
btrp Posted June 7, 2013 Author Share Posted June 7, 2013 but what if i want to change it and not use the phpmailer? can you help me with that? i don't think that my hosting (now fat cow) will much that helpful but i can try Quote Link to comment https://forums.phpfreaks.com/topic/278709-phpmailer-script-isnt-working-since-switching-to-another-host/#findComment-1434631 Share on other sites More sharing options...
btrp Posted June 7, 2013 Author Share Posted June 7, 2013 they said that they can't help with it Quote Link to comment https://forums.phpfreaks.com/topic/278709-phpmailer-script-isnt-working-since-switching-to-another-host/#findComment-1434636 Share on other sites More sharing options...
mac_gyver Posted June 7, 2013 Share Posted June 7, 2013 (edited) your web host (apparently) expects you to send mail via UNIX sendmail - http://www.fatcow.com/knowledgebase/beta/article.bml?ArticleID=205 that your web host didn't point you toward this information when you inquired, would be typical of cheap web hosting support. see (line 5) of the following phpmailer tutorial on how to tell it to use sendmail - http://phpmailer.worxware.com/index.php?pg=examplebsendmail edit: BTW what is your NEW hosting where this doesn't work? you haven't exactly been clear on what the new hosting is? siteground or fatcow? Edited June 7, 2013 by mac_gyver Quote Link to comment https://forums.phpfreaks.com/topic/278709-phpmailer-script-isnt-working-since-switching-to-another-host/#findComment-1434685 Share on other sites More sharing options...
btrp Posted June 11, 2013 Author Share Posted June 11, 2013 wow, thanks for this we are on fatcow. i will check your suggestion with the "line 5" anyway i've just wandered into another question. i guess the answer is yes. when someone reply with a quote does or does not it writing the whole quote to store again on the server? i mean does it costs storage to quote someone on such message boards? Quote Link to comment https://forums.phpfreaks.com/topic/278709-phpmailer-script-isnt-working-since-switching-to-another-host/#findComment-1435325 Share on other sites More sharing options...
mac_gyver Posted June 11, 2013 Share Posted June 11, 2013 i kind of thought the thread you started after this one was based on the input given in this thread. Quote Link to comment https://forums.phpfreaks.com/topic/278709-phpmailer-script-isnt-working-since-switching-to-another-host/#findComment-1435331 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.