You are here: Re: Can't overwrite Return-path « All PHP « IT news, forums, messages
Re: Can't overwrite Return-path

Posted by Adam R on 04/07/07 13:47

On Fri, 6 Apr 2007 23:53:46 -0500, Steve wrote:

>| When I use -f parametr I can't receive messages even when I use e-mail
>| address at $from. Can be Return-Path compared with Message-ID to avoid
>| spam?
>|
>| I would simply like to create a script which will enable sending sms
>| notifications about new e-mails in my mailbox.
>
> are you saying you want to change the sms return-path to match the
> return-path of the email that kicked off your sms script? i would assume
> this so that you could easily respond to the original email from the sms.
> why not include the address of the person who sent the email in the sms
> body? don't you get mailto:someone@example.com functionality that way as
> well?

Problem is with Return-Path overwriting. When I did with -f option I can't
receive SMS message. When I leave it not changed I will, but with junk at
the beginning of the message and this junk looks like default server
Return-Path (ex.: return-path-junk@apache.com / Subject / Message)

Little bit of code:

$eol='\r\';

$to = $my_pho_no.'@tmomail.net';

$subject = 'You have got e-mail!';
$message = 'From: '.$from_emailaddrs;

# Common Headers
$headers = 'From: <'.$from_emailaddrs.'>'.$eol;
$headers .= 'Reply-To: <'.$from_emailaddrs.'>'.$eol;
$headers .= 'Return-Path: <'.$from_emailaddrs.'>'.$eol;
$headers .= 'X-Mailer: PHP v'.phpversion().$eol;
$headers .= 'MIME-Version: 1.0'.$eol;
$headers .= 'Content-Type: text/plain; charset=us-ascii'.$eol;

// This is not working as SMS but I can send as normal e-mail:
// mail($to, $subject, $message, $headers,'-f'.$from_emailaddrs);

// This is working as SMS but with junk inside message
mail($to, $subject, $message, $headers);


--
--------------------------------------
Adam Raszkiewicz
Brothers-in-arts.com
--------------------------------------

 

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

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