A small correction:
iMsg.AddAttachment("<path of the file>")
Again, thanks José
iMsg.AddAttachment("<path of the file>")
Again, thanks José

' Create the attachment body section IF LEN(m_Attachments) > 0 THEN REM NumAttachments = PARSECOUNT( m_Attachments, ";," ) [B]NumAttachments = PARSECOUNT( m_Attachments, ANY ";," ) '8/17/13[/B] REDIM sArray(1 TO NumAttachments) AS STRING REM PARSE m_Attachments, sArray(), ";," [B]PARSE m_Attachments, sArray(), ANY ";," '8/17/13[/B]
If sending IP address <> MX record of sender's domain Then Handle as spam/Drop connection Else Accept email End If
If domain part of PTR record of sending IP address <> sender's domain Then Handle as spam/Drop connection Else Accept email End If
' Tell the mailhost who we are TCP PRINT hTCP, "MAIL FROM:<" & m_From & ">"
y = INSTR(m_from, "<") IF y THEN TCP PRINT hTCP, "MAIL FROM:" & MID$(m_from,y) ELSE TCP PRINT hTCP, "MAIL FROM:<" & m_From & ">" END IF
FUNCTION ISEMAIL(BYVAL e AS STRING, MailAddr as string) AS LONG '------------------------------------------------------------ ' verifies that the passed string contains at least one ' valid e-mail address and returns a fixed up version '------------------------------------------------------------ LOCAL Mask AS STRING LOCAL p AS LONG LOCAL l AS LONG MailAddr = "" IF LEN(e) = 0 THEN FUNCTION = 0 EXIT FUNCTION END IF Mask = "([a-z0-9._-]+)(@[a-z0-9._-]+)(\.[a-z]+)" REGEXPR Mask IN e TO p,l if l > 0 then MailAddr = "<" + mid$(e,p,l) + ">" FUNCTION = (l > 0) END FUNCTION
szFormat = "ddd',' dd MMM yyyy" GetDateFormat %[B]LANG_INVARIANT[/B], 0, t, szFormat, szTemp, SIZEOF(szTemp) sResult = szTemp szFormat = "HH':'mm':'ss" GetTimeFormat %[B]LANG_INVARIANT[/B], 0, t, szFormat, szTemp, SIZEOF(szTemp)
We process personal data about users of our site, through the use of cookies and other technologies, to deliver our services, and to analyze site activity. For additional details, refer to our Privacy Policy.
By clicking "I AGREE" below, you agree to our Privacy Policy and our personal data processing and cookie practices as described therein. You also acknowledge that this forum may be hosted outside your country and you consent to the collection, storage, and processing of your data in the country where this forum is hosted.
Comment