Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

How to open/what cmd's for a IMAP socket to send email to an Exchange server?

by voodoochile (Initiate)
on Feb 19, 2002 at 15:47 UTC ( [id://146399]=perlquestion: print w/replies, xml ) Need Help??

voodoochile has asked for the wisdom of the Perl Monks concerning the following question:

Replies are listed 'Best First'.
Re: How to open/what cmd's for a IMAP socket to send email to an Exchange server?
by beebware (Pilgrim) on Feb 23, 2002 at 01:49 UTC
    Why not just use a standard SMTP module such as Mime::Lite, Mail::Sender or Net::SMTP? Just configure it to use the Exchange IP address, for example (MIME::Lite code follows as I like it a lot :) ):
    use Mime::Lite MIME::Lite->send('smtp', $exchange_server_name_or_ip_address, TimeOut= +>60); my $msg=MIME::Lite->new ( From=>"$from_name <$from_email_address>", To =>"$to_email_address", Subject=>"$subject_of_email", Type=>'text', Data=>$body_of_email ); $msg->send;
    That way you can easily change which server the mail goes out through and you don't restrict it to an IMAP only mail server. Plus Exchange has a very strange login sequence sometimes (I have to authenticate against mine in the format of 'forename.surname@localdomain.internal' or 'localdomain/forename.surname' dependent on how I'm accessing Exchange2000).
    Otherwise you'll have to try Net::IMAP::Simple or Mail::IMAPClient but as I've never used either of those myself, I can't make any recommendations.
Re: How to open/what cmd's for a IMAP socket to send email to an Exchange server?
by Anonymous Monk on Apr 05, 2004 at 16:46 UTC
    oy sreu, teiyu gi swuie et adsi Sie sind ein ficken, der geteert wird. Mit freundlichen Grüßen Ihr Affe

    Originally posted as a Categorized Answer.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://146399]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (4)
As of 2024-03-28 15:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found