in reply to email activation link

You could use Mail::Send to send your mails, so you wouldn't have to care about creating an RFC-compliant header and stuff. IMHO you should send mails in plaintext whenever possible because all MUA's can display them, which is not true for HTML.
use Mail::Send; $msg = new Mail::Send; $msg->to('user@host'); $msg->subject('example subject'); $fh = $msg->open('sendmail'); print $fh "Body of message"; $fh->close;
What you could do to make registration easier is: Allow the user to reply, keeping subject intact. So he hasn't go trough the hassle of fireing up his browser and visit any links.

Replies are listed 'Best First'.
Re^2: email activation link
by boboson (Monk) on Mar 23, 2006 at 23:14 UTC
    Thanks for the guidance. Now I understand a little bit more how the different modules work. One problem though. I am now using the MIME::Lite module to send my mail with sendmail.
    my $msg = MIME::Lite->new( From =>'johan@domain.com, To =>'user@hotmail.com', Subject =>'Registration', Data =>"Klick on the link.\n\n$link\n\n ); $msg->send;
    However, probably because of all spam being sent nowdays, I can't send the same email twice to a hotmail, gmail address. If I change the from field it's ok but otherwise it won't even hit the spambox. Does anyone now if this is within a timeframe or...just curious
Re^2: email activation link
by Scott7477 (Chaplain) on Mar 23, 2006 at 19:14 UTC
    I agree with both of timos's points here. Allowing the user to register by simply replying with an email where
    the subject line is automatically filled in is a good practice. More generally, making subscribing and unsubscribing
    to email lists as simple as possible should be the goal of any list operator.

Re^2: email activation link
by boboson (Monk) on Mar 23, 2006 at 20:34 UTC
    basically, I make sure that the registered users emailadress is valid and belongs to the user.
    How would my application know that the user replied?
Re^2: email activation link
by Anonymous Monk on Mar 24, 2006 at 00:08 UTC
    Thanks for the guidance. Now I understand a little bit more how the different modules work. One problem though. I am now using the MIME::Lite module to send my mail with sendmail.
    my $msg = MIME::Lite->new( From =>'johan@domain.com, To =>'user@hotmail.com', Subject =>'Registration', Data =>"Klick on the link.\n\n$link\n\n ); $msg->send;
    However, probably because of all spam being sent nowdays, I can't send the same email twice to a hotmail, gmail address. If I change the from field it's ok but otherwise it won't even hit the spambox. Does anyone now if this is within a timeframe or...just curious