Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Closed Thread
PHP Mail() Function through my 1and1 account
Old 10-10-2008, 03:00 AM PHP Mail() Function through my 1and1 account
Junior Talker

Posts: 2
Name: Craig
Trades: 0
Hi. I have a very annoying yet seemingly simple problem that I can't figure out. I have a 1and1.com business linux account and I use PHP heavily on the site. I can't get the mail() function to email more than 10240 characters. If the email 'message' contains 10241 characters in the string then the email doesn't ever send. If I send 10240 or less characters then it alwasy sends ok. I've also used PHPMailer quite a bit and it produces the same results. Here is the simple code below I use to test... only the top mail() will send out. This problem is drving me mad, it seems like a 1and1 problem but I've called them several times with no help.

<?php

for( $i=0; $i<10240; $i++ )
{
$body .= "X";
}

//I RECEIVE THE EMAIL WITH 10240 CHARACTERS
mail("craigjohnsonaz@yahoo.com", "10240 Characters", $body, "To: The
Receiver <craigjohnsonaz@yahoo.com>\n" . "From: The Sender <craigjohnsonaz@yahoo.com>\n" . "MIME-Version: 1.0\n" . "Content-type: text/html; charset=iso-8859-1");

$body .= "X";

//I RECEIVE NO EMAIL WITH 10241 CHARACTERS
mail("craigjohnsonaz@yahoo.com", "10241 Characters", $body, "To: The Receiver <craigjohnsonaz@yahoo.com>\n" . "From: The Sender <craigjohnsonaz@yahoo.com>\n" . "MIME-Version: 1.0\n" . "Content-type: text/html; charset=iso-8859-1");

?>
craigphp is offline
View Public Profile
 
 
Register now for full access!
Old 10-10-2008, 03:28 AM Re: PHP Mail() Function through my 1and1 account
mtishetsky's Avatar
King Spam Talker

Posts: 1,226
Name: Mike
Location: Mataro, Spain
Trades: 0
It seems like they have body size limit on their MTA, you cannot do anything with it on your side. You may use phpmailer sending though external smtp using login and password, e.g. gmail, but only if sockets are enabled on your server.
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE

And don't forget to give me talkupation!
mtishetsky is offline
View Public Profile Visit mtishetsky's homepage!
 
Old 10-10-2008, 12:51 PM Re: PHP Mail() Function through my 1and1 account
Junior Talker

Posts: 2
Name: Craig
Trades: 0
Yea, I figured that. Bummer. I have been trying for 2 days to get that PHPMailer to work with smtp with no luck. Then last night I replaced smtp.1and1.com with 74.208.5.2 and it worked!!! I can send huge emails now. Actually the 10240 size limit seems big, but when you start trying to send html emails it gets used up very quick.
craigphp is offline
View Public Profile
 
Old 10-10-2008, 10:25 PM Re: PHP Mail() Function through my 1and1 account
Banned

Posts: 4,083
Trades: 0
Seeing as how you are using the mail() function to send mail to yourself from it appears a script on your site, you hopefully have some kind of security feature installed on the submit button to prevent mass emails?
dWhite is offline
View Public Profile
 
Closed Thread     « Reply to PHP Mail() Function through my 1and1 account
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.14291 seconds with 12 queries