Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 3 of 3

This is a discussion on i find an problem with mail function in the Shared & Semi-Dedicated forum
mail($mail,$title,$message,"-f from:administration@mydomain.com"); if $message is less of 240 chars aprox it works perfectly but if message contains more than 240(aprox) chars not send how I ...

  1. #1
    JPC Member
    Join Date
    Oct 2007
    Posts
    10

    i find an problem with mail function

    mail($mail,$title,$message,"-f from:administration@mydomain.com");

    if $message is less of 240 chars aprox it works perfectly

    but if message contains more than 240(aprox) chars not send

    how I can make work this?

    Thanks

  2. #2
    Ron
    Ron is offline
    Loyal Client
    Join Date
    Aug 2002
    Posts
    7,307
    I don't know if this is causing your problem, but you're missing a parameter; the "-f from:administration@mydomain.com" should be the 5th parameter, you're missing the 4th. Try adding a comma before it:
    PHP Code:
    mail($mail,$title,$message,,"-f from:administration@mydomain.com"); 
    or maybe
    PHP Code:
    mail($mail,$title,$message,"","-f from:administration@mydomain.com"); 
    Good luck

  3. #3
    JPC Member
    Join Date
    Oct 2007
    Posts
    10
    Quote Originally Posted by Ron View Post
    I don't know if this is causing your problem, but you're missing a parameter; the "-f from:administration@mydomain.com" should be the 5th parameter, you're missing the 4th. Try adding a comma before it:
    PHP Code:
    mail($mail,$title,$message,,"-f from:administration@mydomain.com"); 
    or maybe
    PHP Code:
    mail($mail,$title,$message,"","-f from:administration@mydomain.com"); 
    strange with i find the great problem
    yesterday i try send a loot of message like test , but this not work, then i try with short messages and work perfectly, but not with large messages , then today try some times and ooo surprise work all perfectly i not did change to the code source ... STRANGE but work :P
    Greetings and thanks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •