hi :)
recently i have been testing a lot of ways to send email using perl. obviously most of the solution use certain perl module such as IO::Socket::INET, Net::SMTP or others. the email can be sent out successfully, but it doesnt suit my need.
actually i need to send the email as an email-to-sms service. i need to send email to the service provider, such as 0123456789@sms.maxis.net.my. everytime when i use the solution as mentioned above to send email, the email can reach my webmail account successfully, but it cannot reach my cell phone. so i start searching what is the reason. then, i found out that there were some additional hearders/information that was attached to the email i send. for example like this:
****************************************************
X-Apparently-To: hweefarn@yahoo.com via 216.136.130.94; Sun, 21 Dec 2
+003 03:35:58 -0800
Return-Path: <chfarn@tm.net.my>
Received: from 202.188.95.15 (EHLO ipop3.tm.net.my) (202.188.95.15) by
+ mta153.mail.sc5.yahoo.com with SMTP; Sun, 21 Dec 2003 03:35:58 -0800
Return-path: <chfarn.net.my@tm.net.my>
Received: from av6 ([172.21.0.21]) by ipop3.tm.net.my (iPlanet Messagi
+ng Server 5.2 HotFix 1.21 (built Sep 8 2003)) with ESMTP id <0HQ8009H
+GTJXGU@ipop3.tm.net.my> for hweefarn@yahoo.com; Sun, 21 Dec 2003 19:3
+5:57 +0800 (SGT)
Received: from hotmail.com ([219.95.188.60]) by ipop1.tm.net.my (iPlan
+et Messaging Server 5.1 HotFix 1.6 (built Oct 18 2002)) with ESMTP id
+ <0HQ80024OTJVEV@ipop1.tm.net.my> for hweefarn@yahoo.com; Sun, 21 Dec
+ 2003 19:35:57 +0800 (SGT)
Date: Sun, 21 Dec 2003 19:35:57 +0800 (SGT)
Date: Date header was inserted by ipop1.tm.net.my
****************************************************
do u observe that there are more than 1 "Receive:" ?
i believe that it is inserted automatically by the module like IO::Socket::INET or Net::SMTP. subsequently this cause my service provider think that i am spammers. therefore, they drops my email and not forward to my cell phone.
so, that's why i need to find the solution to send an email without using any of the modules. i found a script writen in php for send socketmail. it is simple and does not use any module or built-in function. i try to run it and it really works. the sms really reach my cell phone successfully. that's why i am so sure that the problem is come from the perl modules.
so, does anyone know any way to send an email without using any modules?
that's all my problems. thank you very much :)
regards,
hweefarn
20031221 Edit by Corion: Added code tags around mail headers
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.