in reply to presentation of email

You are NOT spamming, are you?!?

The code should work fine. If I try it myself I do get just the Joe Shmoe in the From: field. And the only place where I see the joe@pleasework.com is the Return-Path: header. Which is not visible in my client anywhere.

What mailserver do you send this to, what mail client do you use to look at the result and what do the headers look like there? Could you copy the message headers as the mail client got them in here?

Jenda

Replies are listed 'Best First'.
Re: Re: presentation of email
by tbone (Beadle) on Mar 18, 2003 at 19:24 UTC
    I am not spamming...
    I am Reading the email via microsoft outlook and u see joe@pleasework.com. I am now trying to use Net:SMTP which works well in regards to hiding the address, but when I hit reply it sends the email to joe not joe@pleasework.com. If u understand why, please let me know.
    use Net::SMTP; $sender = Net::SMTP->new ('mailhost'); $sender->mail('joe@pleasework.com'); $sender->to ('bob@hotmail.com'); $sender->data(); $sender->datasend ("From: Joe\n"); $sender->datasend ("To: Bob\n"); $sender->datasend ("Subject: $mail{'subject'}\n"); $sender->datasend ("\n"); $sender->datasend ("$mail{'msg'}"); $sender->dataend; $sender->quit;

      It sends the reply to joe, because your from line says 'Joe'. You should use a complete from line, or most people will not be able to reply to you. What you want to appear isn't relevant, it is up to the receivers email client to determine which parts of the address to show.


      We're not surrounded, we're in a target-rich environment!