Reply to Re: mail does not get sent...

Your name:

Reply:


Posted by J.O. Aho on 12/13/06 09:56

Gernot Frisch wrote:
> $mail_to="###valid###email###";
>
> $subj="Mail from :\"kungfu\" ";
>
> $mesg="This is a multi-part message in MIME format. --<br>\n'.
> '==Multipart_Boundary_x2f5b8cde769b7f96b3316263f9f78311x
> Content-Type:text/html;<br>\n'.
> 'charset="iso-8859-1" Content-Transfer-Encoding: 7bit email1 = a@b.c
> <br>\n'.
> 'email2 = a@b.c <br>\n'
>
>
> $text= 'TEst 3';
> Submit1 = Abschicken
>
> $header: From: a@b.c MIME-Version: 1.0 Content-Type: multipart/mixed;

The header is all wrong

$header="From: a@b.c\r\nMIME-Version: 1.0\r\nContent-Type: multipart/related;
boundary=\"".md5(time())"\"";



> $ok = email($mail_to, $subj, $mesg, $header);
> if(!$ok) die ("Does not work");
>
> It seems to work, but no mail gets sent.

Use a valid from address and you will get the response from the mail server
why it don't send the mail. (I'm assuming you are using the mail() and the
email() is just a typo) mail() returns true if the mail server did receive the
mail, no matter if the mail was rejected or sent.

> What's the problem?

My guess: Your smtp server detects the mail as spam and refuses to send it


--

//Aho

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация