Jessica Posted January 20, 2007 Share Posted January 20, 2007 Does anyone know what you have to do to get mail() to work on mt's (gs)?I have contacted them but their support is slow. Link to comment https://forums.phpfreaks.com/topic/34946-mail-on-mts-gs/ Share on other sites More sharing options...
ShogunWarrior Posted January 20, 2007 Share Posted January 20, 2007 Is it only a recent problem, because I used mail() on GS fine.Are there any errors being spit out? Link to comment https://forums.phpfreaks.com/topic/34946-mail-on-mts-gs/#findComment-164791 Share on other sites More sharing options...
Jessica Posted January 20, 2007 Author Share Posted January 20, 2007 no, it returns true, but the mail isn't actually being sent. Did you have to configure anything? Link to comment https://forums.phpfreaks.com/topic/34946-mail-on-mts-gs/#findComment-164793 Share on other sites More sharing options...
ShogunWarrior Posted January 20, 2007 Share Posted January 20, 2007 No actually, the mail code was unchanged between localhost and (mt).Here's exactly my mail code which worked when I last ran it a month ago (emails changed):$mailres = @ mail("[email protected]",'Subject','Content','From: "Shogun" <[email protected]>');I know it is patronizingly obvious but maybe the problem is the From tag or something. Link to comment https://forums.phpfreaks.com/topic/34946-mail-on-mts-gs/#findComment-164799 Share on other sites More sharing options...
Jessica Posted January 20, 2007 Author Share Posted January 20, 2007 I'll try again. I did a simple test one to make sure, because my more complex code didn't work. Here is what I have:[code]<?print mail('[email protected]', 'test', 'test', 'From: "Jessica" <[email protected]>').'<br />';print mail('[email protected]', 'test', 'test');?>[/code]And I get11So the mail was accepted...it's just not being delivered. Their support has a topic on mail in RoR, but nothing for PHP. *pout* Link to comment https://forums.phpfreaks.com/topic/34946-mail-on-mts-gs/#findComment-164803 Share on other sites More sharing options...
ShogunWarrior Posted January 20, 2007 Share Posted January 20, 2007 Hmm, I'm not on (mt) now so I can't test it. If that is the case then it's probably an (mt) problem, and you'll have to suffer their support :( Link to comment https://forums.phpfreaks.com/topic/34946-mail-on-mts-gs/#findComment-164811 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.