GorGor1
asked on
how to use IO::Socket
Maneshr...to answer your question.
Yes, I do know the smtp and pop3 server names to test out the IO::Socket module. I will also be running my own mail server from IIS in Win2k server in the near future.
Is it safe to be opening up new sockets on the fly? Maybe that was a dumb question.
Yes, I do know the smtp and pop3 server names to test out the IO::Socket module. I will also be running my own mail server from IIS in Win2k server in the near future.
Is it safe to be opening up new sockets on the fly? Maybe that was a dumb question.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
GorGor1,
"..BLAM! It worked like a freakin charm! .."
Super!!! I would have been surprised with anything less that that :-)
"..Is there an easy way to format the message of the e-mail or do I pretty much have to use the '\n' and '\t' stuff for formatting?..."
Yes. There is an easy way to format it.
You can use the following approach...
$message=qq{
Here is the first line
Here is the 2nd line?
Thanks!!!
Rgds,
GorGor1
};
&sendMail('mail.server.com ','from_yo ur_email_i d@server.c om','recip eient@serv er.com','T esting',$m essage);
"..Also, is it capable of attachments?.."
Right off the bat, my answer would be yes. However, i have not yet extended this script to do that. Therefore, i cannot post any sample code here :-(
"..And finally, does it close the PeerPort after it's finished?.."
Yes. The Socket port is closed with the following statement.
close $remote;
Hope that helps.
"..BLAM! It worked like a freakin charm! .."
Super!!! I would have been surprised with anything less that that :-)
"..Is there an easy way to format the message of the e-mail or do I pretty much have to use the '\n' and '\t' stuff for formatting?..."
Yes. There is an easy way to format it.
You can use the following approach...
$message=qq{
Here is the first line
Here is the 2nd line?
Thanks!!!
Rgds,
GorGor1
};
&sendMail('mail.server.com
"..Also, is it capable of attachments?.."
Right off the bat, my answer would be yes. However, i have not yet extended this script to do that. Therefore, i cannot post any sample code here :-(
"..And finally, does it close the PeerPort after it's finished?.."
Yes. The Socket port is closed with the following statement.
close $remote;
Hope that helps.
ASKER
U da man! Once again, you've saved me a ton of headache. I'll post again someday when I need to do an attachment and I'll see if you've come up with anything yet. Thanks again!
GorGor1,
"..U da man! Once again, you've saved me a ton of headache..."
Thank you!!!
Glad to know i could be of help to you.
".. I'll post again someday when I need to do an attachment and I'll see if you've come up with anything yet. .."
Hopefully by then i should have the attachement piece added, tested and working fine.
Till then...................... ..
"..U da man! Once again, you've saved me a ton of headache..."
Thank you!!!
Glad to know i could be of help to you.
".. I'll post again someday when I need to do an attachment and I'll see if you've come up with anything yet. .."
Hopefully by then i should have the attachement piece added, tested and working fine.
Till then......................
ASKER
Also, is it capable of attachments?
And finally, does it close the PeerPort after it's finished?
Thanks!