You are here: Re: sending mail problem « PHP Programming Language « IT news, forums, messages
Re: sending mail problem

Posted by Richard Brooks on 11/02/05 14:53

>>Shailesh<< wrote:
> hi,
> my script(IMAP email client) is sending mail using imap_mail()
> function.
>
>
> imap_mail($To, $Subject, $Body, $headers);
>
>
> $headers = "From: <$From>\n";
> $headers .= "X-Sender: <$U@$DOMAIN>\n";
>
>
> i hv given imap host address of mauj(my server).but while sending mail
> it is
> sending from my server not from mauj server.(while runnig tht script
> from my end) please help me how to solve this problem.
> Thank you.
>
>
> Shailesh.
>

This might sound silly but have you tried reversing the lines thereby
setting up the $headers variable before calling the function ?


> $headers = "From: <$From>\n";
> $headers .= "X-Sender: <$U@$DOMAIN>\n";
>
> imap_mail($To, $Subject, $Body, $headers);
>


Richard.
--
Celebrate Diwali safely!

Keep an eye on those naked flames.

 

Navigation:

[Reply to this 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

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