anatak Posted December 29, 2007 Share Posted December 29, 2007 on the mail() page I read this Message to be sent. Each line should be separated with a LF (\n). Lines should not be larger than 70 characters. and then Caution (Windows only) When PHP is talking to a SMTP server directly, if a full stop is found on the start of a line, it is removed. To counter-act this, replace these occurrences with a double dot. <?php $text = str_replace("\n.", "\n..", $text); ?> Here are my questions how do you cut a text in lines ? I was thinking using chunk_split() but maybe you know a better way. how do you know if "php is talking to a SMTP server directly" ? is this depending on where the site is hosted ? Can you test if you are on a windows box and talking to a SMTP server ? do the \n count for the 70 characters ? (so you would cut your string in 68 character pieces and put the \n behind every piece) how can you make sure that you don't chop Unicode characters in half with the chunk_split() functions ? kind regards anatak Quote Link to comment https://forums.phpfreaks.com/topic/83545-mail-questions/ Share on other sites More sharing options...
MadTechie Posted December 29, 2007 Share Posted December 29, 2007 to sum up all your questions into one.. how do i send an email via php.. maybe you should try the class called phpmailer Quote Link to comment https://forums.phpfreaks.com/topic/83545-mail-questions/#findComment-425086 Share on other sites More sharing options...
anatak Posted December 29, 2007 Author Share Posted December 29, 2007 stupid question. is this the class you are talking about ? http://www.phpclasses.org/browse/package/264.html kind regards anatak Quote Link to comment https://forums.phpfreaks.com/topic/83545-mail-questions/#findComment-425089 Share on other sites More sharing options...
MadTechie Posted December 29, 2007 Share Posted December 29, 2007 i'm 99.9% sure its that one but i get it from here http://sourceforge.net/projects/phpmailer Quote Link to comment https://forums.phpfreaks.com/topic/83545-mail-questions/#findComment-425091 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.