Git Product home page Git Product logo

skpsmtpmessage's People

Watchers

 avatar

skpsmtpmessage's Issues

Several build errors

I have incorporated the required SKPSMTPMessage.[m|h] and
NSStream+SKPSMTPExtension.[m|h] and used the test message code in the
senderAppDelegate example shown and incorporated that into a function of mine.

I am getting build errors in the SKPSMTPMessage.[m|h] and
NSStream+SKPSMTPExtension.[m|h]...

any thoughts?


Original issue reported on code.google.com by [email protected] on 12 Jan 2009 at 8:29

-[NSConcreteMutableData encodeBase64ForData]: unrecognized selector sent to instance 0x3f9e440

Hey,

I keep getting a crash as followed in the headline, when I try to send a 
message.

I use the skpsmtpmessage framework as a staic library in my project.
I verified I'm setting a valid config and that an outgoing SMTP server is 
defined properly on my iPhone.

The log until the crash looks like that :
2011-03-15 16:08:16.996 Faceworking[11357:307] Selected 1 index... Going to 
send mail...
2011-03-15 16:08:17.007 Faceworking[11357:307] C: Attempting to connect to 
server at: smtp.gmail.com:587
2011-03-15 16:08:17.401 Faceworking[11357:307] *** stopping watchdog ***
2011-03-15 16:08:17.407 Faceworking[11357:307] S: 220 mx.google.com ESMTP 
r10sm180408faa.47
2011-03-15 16:08:17.417 Faceworking[11357:307] C: EHLO localhost
2011-03-15 16:08:17.424 Faceworking[11357:307] *** starting short watchdog ***
2011-03-15 16:08:17.544 Faceworking[11357:307] *** stopping watchdog ***
2011-03-15 16:08:17.549 Faceworking[11357:307] S: 250-mx.google.com at your 
service, [212.231.83.63]
2011-03-15 16:08:17.553 Faceworking[11357:307] *** stopping watchdog ***
2011-03-15 16:08:17.557 Faceworking[11357:307] S: 250-SIZE 35651584
2011-03-15 16:08:17.562 Faceworking[11357:307] *** stopping watchdog ***
2011-03-15 16:08:17.566 Faceworking[11357:307] S: 250-8BITMIME
2011-03-15 16:08:17.574 Faceworking[11357:307] *** stopping watchdog ***
2011-03-15 16:08:17.584 Faceworking[11357:307] S: 250-STARTTLS
2011-03-15 16:08:17.588 Faceworking[11357:307] C: STARTTLS
2011-03-15 16:08:17.593 Faceworking[11357:307] *** starting short watchdog ***
2011-03-15 16:08:17.597 Faceworking[11357:307] *** stopping watchdog ***
2011-03-15 16:08:17.603 Faceworking[11357:307] S: 250-ENHANCEDSTATUSCODES
2011-03-15 16:08:17.607 Faceworking[11357:307] *** stopping watchdog ***
2011-03-15 16:08:17.612 Faceworking[11357:307] S: 250 PIPELINING
2011-03-15 16:08:17.702 Faceworking[11357:307] *** stopping watchdog ***
2011-03-15 16:08:17.715 Faceworking[11357:307] S: 220 2.0.0 Ready to start TLS
2011-03-15 16:08:17.719 Faceworking[11357:307] Beginning TLSv1...
2011-03-15 16:08:17.724 Faceworking[11357:307] C: EHLO localhost
2011-03-15 16:08:18.316 Faceworking[11357:307] *** starting short watchdog ***
2011-03-15 16:08:18.517 Faceworking[11357:307] *** stopping watchdog ***
2011-03-15 16:08:18.528 Faceworking[11357:307] S: 250-mx.google.com at your 
service, [212.231.83.63]
2011-03-15 16:08:18.532 Faceworking[11357:307] *** stopping watchdog ***
2011-03-15 16:08:18.537 Faceworking[11357:307] S: 250-SIZE 35651584
2011-03-15 16:08:18.541 Faceworking[11357:307] *** stopping watchdog ***
2011-03-15 16:08:18.546 Faceworking[11357:307] S: 250-8BITMIME
2011-03-15 16:08:18.551 Faceworking[11357:307] *** stopping watchdog ***
2011-03-15 16:08:18.555 Faceworking[11357:307] S: 250-AUTH LOGIN PLAIN XOAUTH
2011-03-15 16:08:18.559 Faceworking[11357:307] *** stopping watchdog ***
2011-03-15 16:08:18.564 Faceworking[11357:307] S: 250-ENHANCEDSTATUSCODES
2011-03-15 16:08:18.569 Faceworking[11357:307] *** stopping watchdog ***
2011-03-15 16:08:18.581 Faceworking[11357:307] S: 250 PIPELINING

Does anyone figured that out before ??

Thanks !

Guy.

Original issue reported on code.google.com by [email protected] on 15 Mar 2011 at 4:04

Failure to run... compiles just fine

What steps will reproduce the problem?
1. Compile the src provided via svn
2. run the code in the simulator
3.

What is the expected output? What do you see instead?
I expected it to attempt to send an email 

What version of the product are you using? On what operating system?
r 16

Please provide any additional information below.

2008-11-13 09:44:13.976 SMTPSender[1202:20b] C: Attempting to connect to server 
at: 
smtp.mac.com:25
2008-11-13 09:44:13.978 SMTPSender[1202:20b] *** +[NSStream 
getStreamsToHostNamed:port:inputStream:outputStream:]: unrecognized selector 
sent to class 
0xa004a5c0
2008-11-13 09:44:13.979 SMTPSender[1202:20b] *** Terminating app due to 
uncaught 
exception 'NSInvalidArgumentException', reason: '*** +[NSStream 
getStreamsToHostNamed:port:inputStream:outputStream:]: unrecognized selector 
sent to class 
0xa004a5c0'
2008-11-13 09:44:13.979 SMTPSender[1202:20b] Stack: (
    2418803019,
    2433416763,
    2418832394,
    2418825548,
    2418825746,
    17656,
    10655,
    816174362,
    816210018,
    2428929518,
    2418305861,
    2418306296,
    829005112,
    829005309,
    816175835,
    816221412,
    9636,
    9490
)


Original issue reported on code.google.com by support%[email protected] on 13 Nov 2008 at 4:47

Errors.... Lots.

When I move the 4 files into my project, I get a heap of errors.
 It also says I need to include the OTHER files, so I move them too and I
get even more errors. 
So I move the library across, add -ObjC to the links make a new target like
in the example, try everything, and I still have 8 errors.
Better explanation of what you have to do to set this up?
This is a critical component of an application I'm making for a client
(being able to email images).

Original issue reported on code.google.com by [email protected] on 23 Feb 2009 at 6:32

SpamAssassin Scores SKPSMTPMessages Higher Than It Should

What steps will reproduce the problem?
1. Create an app to send an email with rev 21 of the software.
2. Send a test email with content and a subject line.
3. SpamAssassin assigns a score of 2+ to the email and indicates that there are 
missing header fields in the email. 

What is the expected output? 
Low SpamAssassin score. 

What do you see instead?
We see missing header fields causing the higher score. Here is the field from 
the received email:
X-Spam-Score: 2.419 (AWL,MISSING_DATE,MSGID_FROM_MTA_HEADER)

What version of the product are you using? On what operating system?
Mail is being received through Yahoo on a Mac running Mac OS X (10.5.6).

Please provide any additional information below.

There are basically two fields missing from the mail header: Message-id and 
Date. After the addition of this code the spam score drops significantly and 
the 
spam field in the email looks like this:
X-Spam-Score: 1.351 (AWL)

The patch is trivially simple add the following to SKPSMTPMessage.m in the 
method sendParts staring at line 576:

    CFUUIDRef   uuidRef   = CFUUIDCreate(kCFAllocatorDefault);
    NSString    *uuid     = (NSString *)CFUUIDCreateString(kCFAllocatorDefault, uuidRef);
    NSDate      *now;
    NSDateFormatter *dateFormatter;

    now = [NSDate date];
    dateFormatter = [[NSDateFormatter alloc] init];
    [dateFormatter setDateFormat:@"EEE, dd MMM yyyy HH:mm:ss Z"];

    [message appendFormat:@"Date: %@\r\n", [dateFormatter stringFromDate:now]];
    [message appendFormat:@"Message-id: <%@@%@>\r\n", [(NSString *)uuid stringByReplacingOccurrencesOfString:@"-" withString:@""], self.relayHost];
    CFRelease(uuidRef);




Original issue reported on code.google.com by [email protected] on 17 Feb 2009 at 12:16

Simulator can run,but Device can't run why?

This is Device Console Output


Fri Jul 31 00:34:59 unknown SpringBoard[27] <Warning>: Setting springboard 
visible = 1
Fri Jul 31 00:35:00 unknown kernel[0] <Debug>: launchd[1167] Builtin profile: 
container 
(seatbelt)
Fri Jul 31 00:35:00 unknown kernel[0] <Debug>: launchd[1167] Container: 
/private/var/mobile/Applications/AA214C2F-D745-475E-85B7-A063323B24E7 (seatbelt)
Fri Jul 31 00:35:00 unknown XSS Mail[1167] <Notice>: MS:Notice: Installing: 
com.yourcompany.XSS_Mail (478.47)
Fri Jul 31 00:35:00 unknown XSS Mail[1167] <Notice>: MS:Notice: Loading: 
/Library/MobileSubstrate/DynamicLibraries/SimulatedKeyEvents.dylib
Fri Jul 31 00:35:01 unknown SpringBoard[27] <Warning>: Setting springboard 
visible = 0
Fri Jul 31 00:35:04 unknown XSS Mail[1167] <Warning>: 1111
Fri Jul 31 00:35:04 unknown XSS Mail[1167] <Warning>: 2222
Fri Jul 31 00:35:04 unknown XSS Mail[1167] <Warning>: C: Attempting to connect 
to server at: 
smtp.126.com:25
Fri Jul 31 00:35:04 unknown XSS Mail[1167] <Warning>: 3333
Fri Jul 31 00:35:04 unknown XSS Mail[1167] <Error>: *** +[NSStream 
getStreamsToHostNamed:port:inputStream:outputStream:]: unrecognized selector 
sent to class 
0x38204780
Fri Jul 31 00:35:08 unknown SpringBoard[27] <Warning>: Setting springboard 
visible = 1
Fri Jul 31 00:35:09 unknown SpringBoard[27] <Warning>: Lock called
Fri Jul 31 00:35:09 unknown SpringBoard[27] <Warning>: Lock called


Original issue reported on code.google.com by [email protected] on 30 Jul 2009 at 4:35

Sending to multiple recipients is no supported

To add multiple recipient send replace the full case statement code on line
475 ( case kSKPSMTPWaitingFromReply: ) of SKPSMTPMessage.m to:

                case kSKPSMTPWaitingFromReply:
                {
                    if ([tmpLine hasPrefix:@"250 "])
                    {
                        sendState = kSKPSMTPWaitingToReply;

                        NSString *rcptTo;

                        // Check for multiple recipients
                        if( [toEmail rangeOfString:@";"].location != NSNotFound || [toEmail
rangeOfString:@","].location != NSNotFound )
                        {
                            NSCharacterSet *splitSet = [NSCharacterSet
characterSetWithCharactersInString:@";,"];
                            NSArray *addressParts = [toEmail
componentsSeparatedByCharactersInSet:splitSet];

                            // Filter spaces before and after entered email addres
                            NSCharacterSet *whitespaceCharSet = [NSCharacterSet
whitespaceCharacterSet];

                            NSMutableString *multipleRcptTo = [NSMutableString string];
                            for( NSString *address in addressParts )
                            {
                                [multipleRcptTo appendFormat:@"RCPT TO:<%@>\r\n", [address
stringByTrimmingCharactersInSet:whitespaceCharSet]];
                            }
                            rcptTo = multipleRcptTo;
                        }
                        else
                        {
                            rcptTo = [NSString stringWithFormat:@"RCPT TO:<%@>\r\n", toEmail];
                        }

                        NSLog(@"C: %@", rcptTo);

CFWriteStreamWriteFully((CFWriteStreamRef)outputStream, (const uint8_t
*)[rcptTo UTF8String], [rcptTo
lengthOfBytesUsingEncoding:NSUTF8StringEncoding]);
                        [self startShortWatchdog];
                    }
                    break;
                }

Original issue reported on code.google.com by [email protected] on 18 Feb 2009 at 7:54

SMTP Fails with TLS timeout from iPhone but not from XCode Simulator

The current (and prior) versions of skpsmtpmessage fails when connecting to my 
mail server with an SSL_accept error.  This is happening with several iPhone 
programs that I have 
purchased which use the library (Emailer and Multi-Photo).

I have built the latest version but can only run it in Simulator as I don't 
have a developer key to allow me to deploy a build on my iPhone.  In the 
simulator the code seems to work just 
fine and I'm able to send from SMTPSender without problems.  However, from the 
iPhone it fails using the two programs from other developers and they are also 
using the latest 
versions.

This has been tested from several different networks for both iPhone and 
Simulator as well as via ATT Edge.

From the iPhone console:

unknownMulti-Photo[1124] <Warning>: C: Attempting to connect to server at: 
mail.SERVER.net:25
unknownMulti-Photo[1124] <Warning>: Got bytes: 220 mars.SERVER.net ESMTP 
Postfix\r\n
unknownMulti-Photo[1124] <Warning>: *** stopping watchdog ***
unknownMulti-Photo[1124] <Warning>: S: 220 mars.SERVER.net ESMTP Postfix
unknownMulti-Photo[1124] <Warning>: C: EHLO localhost\r\n
unknownMulti-Photo[1124] <Warning>: *** starting short watchdog ***
unknownMulti-Photo[1124] <Warning>: Got bytes: 
250-mars.SERVER.net\r\n250-PIPELINING\r\n250-SIZE 
16240000\r\n250-VRFY\r\n250-ETRN\r\n250-STARTTLS\r\n250 
8BITMIME\r\n
unknownMulti-Photo[1124] <Warning>: S: 250-mars.SERVER.net
unknownMulti-Photo[1124] <Warning>: S: 250-PIPELINING
unknownMulti-Photo[1124] <Warning>: S: 250-SIZE 16240000
unknownMulti-Photo[1124] <Warning>: S: 250-VRFY
unknownMulti-Photo[1124] <Warning>: S: 250-ETRN
unknownMulti-Photo[1124] <Warning>: S: 250-STARTTLS
unknownMulti-Photo[1124] <Warning>: C: STARTTLS\r\n
unknownMulti-Photo[1124] <Warning>: S: 250 8BITMIME
unknownMulti-Photo[1124] <Warning>: Got bytes: 220 Ready to start TLS\r\n
unknownMulti-Photo[1124] <Warning>: S: 220 Ready to start TLS
unknownMulti-Photo[1124] <Warning>: Beginning TLSv1...
unknownkernel[0] <Debug>: Multi-Photo 1124 FS_WRITE_DATA SBF 
/System/Library/Frameworks/Security.framework/TrustStore.sqlite3 13 (seatbelt)
unknownkernel[0] <Debug>: Multi-Photo 1124 FS_WRITE_DATA SBF 
/private/var/Keychains/TrustStore.sqlite3 13 (seatbelt)
unknownMulti-Photo[1124] <Warning>: *** starting short watchdog ***
unknownMulti-Photo[1124] <Warning>: *** stopping watchdog ***

From the mail server log:

postfix/smtpd[25399]: connect from plns.epix.net[207.7.164.1]
postfix/smtpd[25399]: setting up TLS connection from plns.epix.net[207.7.164.1]
postfix/smtpd[25399]: SSL_accept error from plns.epix.net[207.7.164.1]: -1
postfix/smtpd[25399]: lost connection after STARTTLS from 
plns.epix.net[207.7.164.1]
postfix/smtpd[25399]: disconnect from plns.epix.net[207.7.164.1]


From XCode:
SMTPSender[21667:20b] C: Attempting to connect to server at: mail.SERVER.net:25
SMTPSender[21667:20b] *** stopping watchdog ***
SMTPSender[21667:20b] S: 220 mars.SERVER.net ESMTP Postfix
SMTPSender[21667:20b] C: EHLO localhost
SMTPSender[21667:20b] *** starting short watchdog ***
SMTPSender[21667:20b] *** stopping watchdog ***
SMTPSender[21667:20b] S: 250-mars.SERVER.net
SMTPSender[21667:20b] *** stopping watchdog ***
SMTPSender[21667:20b] S: 250-PIPELINING
SMTPSender[21667:20b] *** stopping watchdog ***
SMTPSender[21667:20b] S: 250-SIZE 16240000
SMTPSender[21667:20b] *** stopping watchdog ***
SMTPSender[21667:20b] S: 250-VRFY
SMTPSender[21667:20b] *** stopping watchdog ***
SMTPSender[21667:20b] S: 250-ETRN
SMTPSender[21667:20b] *** stopping watchdog ***
SMTPSender[21667:20b] S: 250-STARTTLS
SMTPSender[21667:20b] C: STARTTLS
SMTPSender[21667:20b] *** starting short watchdog ***
SMTPSender[21667:20b] *** stopping watchdog ***
SMTPSender[21667:20b] S: 250 8BITMIME
SMTPSender[21667:20b] *** stopping watchdog ***
SMTPSender[21667:20b] S: 220 Ready to start TLS
SMTPSender[21667:20b] Beginning TLSv1...
SMTPSender[21667:20b] C: EHLO localhost
SMTPSender[21667:20b] *** starting short watchdog ***
SMTPSender[21667:20b] *** stopping watchdog ***
SMTPSender[21667:20b] S: 250-mars.SERVER.net
SMTPSender[21667:20b] *** stopping watchdog ***
SMTPSender[21667:20b] S: 250-PIPELINING
SMTPSender[21667:20b] *** stopping watchdog ***
SMTPSender[21667:20b] S: 250-SIZE 16240000
SMTPSender[21667:20b] *** stopping watchdog ***
SMTPSender[21667:20b] S: 250-VRFY
SMTPSender[21667:20b] *** stopping watchdog ***
SMTPSender[21667:20b] S: 250-ETRN
SMTPSender[21667:20b] *** stopping watchdog ***
SMTPSender[21667:20b] S: 250-AUTH PLAIN LOGIN
SMTPSender[21667:20b] *** stopping watchdog ***
SMTPSender[21667:20b] S: 250-AUTH=PLAIN LOGIN
SMTPSender[21667:20b] *** stopping watchdog ***
SMTPSender[21667:20b] S: 250 8BITMIME
SMTPSender[21667:20b] C: AUTH PLAIN AG53ja1WFuY233EAdGl03YTVzbXg=
SMTPSender[21667:20b] *** starting short watchdog ***
SMTPSender[21667:20b] *** stopping watchdog ***
SMTPSender[21667:20b] S: 235 Authentication successful
SMTPSender[21667:20b] C: MAIL FROM:<[email protected]>
SMTPSender[21667:20b] *** starting short watchdog ***
SMTPSender[21667:20b] *** stopping watchdog ***
SMTPSender[21667:20b] S: 250 Ok
SMTPSender[21667:20b] C: RCPT TO:<[email protected]>
SMTPSender[21667:20b] *** starting short watchdog ***
SMTPSender[21667:20b] *** stopping watchdog ***
SMTPSender[21667:20b] S: 250 Ok
SMTPSender[21667:20b] C: DATA
SMTPSender[21667:20b] *** starting short watchdog ***
SMTPSender[21667:20b] *** stopping watchdog ***
SMTPSender[21667:20b] S: 354 End data with <CR><LF>.<CR><LF>
SMTPSender[21667:20b] C: Date: Sun, 22 Feb 2009 09:46:28 -0500
dSMTPSender[21667:20b] *** starting long watchdog ***
SMTPSender[21667:20b] *** stopping watchdog ***
SMTPSender[21667:20b] S: 250 Ok: queued as 1589E65C024
SMTPSender[21667:20b] C: QUIT
SMTPSender[21667:20b] *** starting short watchdog ***
SMTPSender[21667:20b] *** stopping watchdog ***
SMTPSender[21667:20b] S: 221 Bye
SMTPSender[21667:20b] delegate - message sent
SMTPSender[21667:20b] *** stopping watchdog ***


postfix/smtpd[25713]: connect from epix.net[207.7.164.1]
postfix/smtpd[25713]: setting up TLS connection from epix.net[207.7.164.1]
postfix/smtpd[25713]: TLS connection established from epix.net[207.7.164.1]: 
TLSv1 with cipher AES128-SHA (128/128 bits)
postfix/smtpd[25713]: 1589E65C024: client=epix.net[207.7.164.1], 
sasl_method=PLAIN, sasl_username=username
postfix/cleanup[25750]: 1589E65C024: 
message-id=<[email protected]>
postfix/qmgr[22699]: 1589E65C024: from=<[email protected]>, size=791, nrcpt=1 
(queue active)
deliver(username): msgid=<[email protected]>: 
saved mail to INBOX
postfix/local[25768]: 1589E65C024: to=<[email protected]>, relay=local, 
delay=1, status=sent (delivered to command: /usr/local/libexec/dovecot/deliver)
postfix/qmgr[22699]: 1589E65C024: removed
postfix/smtpd[25713]: disconnect from epix.net[207.7.164.1]


Original issue reported on code.google.com by [email protected] on 22 Feb 2009 at 2:55

CC & BCC Are Not Supported

What steps will reproduce the problem?
1. Create an app to send an email with rev 21 of the software.
2. Try to send an email with CC and/or BCC.

What is the expected output? 
To, CC, and BCC are supported.

What do you see instead?
Only To is supported at the moment

What version of the product are you using? On what operating system?
Rev 21 on a Mac running OS X.

Please provide any additional information below.
See the attached zip file for patches to SKSMTPMessage.[mh] for patches to 
support CC & BCC.

I've refactored some code to add the additional functionality -- specifically 
I've added 
_formatAddresses: and _formatAnAddress: and reworked parts of sendParts and 
parseBuffer. I also 
incorporated changes from issues 17 (thaddeus.cooper) reducing spam score & 18 
(mdesaro) -- 
multiple email addresses not supported.


Original issue reported on code.google.com by [email protected] on 18 Feb 2009 at 11:24

Attachments:

oliver.shikaloski,

What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?


What version of the product are you using? On what operating system?


Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 6 Jan 2011 at 9:37

Compile warning: NSStreamDelegate protocol not implemented

What steps will reproduce the problem?
Compile project.

What is the expected output? What do you see instead?
Expected: Build with no errors or warnings
Actual:2 build warnings:
/skpsmtpmessage/SMTPSender/Classes/SKPSMTPMessage.m:208: warning: class 
'SKPSMTPMessage' does not implement the 'NSStreamDelegate' protocol
/skpsmtpmessage/SMTPSender/Classes/SKPSMTPMessage.m:209: warning: class 
'SKPSMTPMessage' does not implement the 'NSStreamDelegate' protocol


What version of the product are you using? On what operating system?
revision 27
Build on Mac OS X10.6.6, iOS SDK 4.2

Please provide any additional information below.

Declaring NSStreamDelegate protocol in SKPSMTPMessage.h resolves the warning.

Original issue reported on code.google.com by [email protected] on 31 Jan 2011 at 5:53

Image attachments seems to be oriented counterclockwise by 90 degree

What steps will reproduce the problem?
1. Using ImagePickerController, grabbed the image and sent it as attachment
2. Open mail in Gmail, and choose the view option
3. The image is oriented counter clockwise

What is the expected output? What do you see instead?
Expected would be the image maintains its orientation

What version of the product are you using? On what operating system?
I am running it on iPhone OS 2.2.1

Please provide any additional information below.
This happens with images in the photo library which are in portrait mode
only, if i use the camera to capture a image in landscape mode, I don't see
this behaviour.

Original issue reported on code.google.com by [email protected] on 5 May 2009 at 6:43

TLS not working on device?

TLS connections seem to work fine in the Simulator. As soon as I switch to the 
iPhone, SKP 
throws an exception because it appears the stream can't be written to.

2009-01-07 16:06:23.745 App[1504:20b] C: Attempting to connect to server at: 
my.server.com:5465
2009-01-07 16:06:25.316 App[1504:20b] *** stopping watchdog ***
2009-01-07 16:06:25.322 App[1504:20b] S: 220 my.server.com ESMTP Postfix
2009-01-07 16:06:25.328 App[1504:20b] C: EHLO localhost
2009-01-07 16:06:25.335 App[1504:20b] bytes written: 16
2009-01-07 16:06:25.341 App[1504:20b] *** starting short watchdog ***
2009-01-07 16:06:26.338 App[1504:20b] *** stopping watchdog ***
2009-01-07 16:06:26.347 App[1504:20b] S: 250-my.server.com
2009-01-07 16:06:26.353 App[1504:20b] *** stopping watchdog ***
2009-01-07 16:06:26.358 App[1504:20b] S: 250-PIPELINING
2009-01-07 16:06:26.364 App[1504:20b] *** stopping watchdog ***
2009-01-07 16:06:26.370 App[1504:20b] S: 250-SIZE 10240000
2009-01-07 16:06:26.376 App[1504:20b] *** stopping watchdog ***
2009-01-07 16:06:26.391 App[1504:20b] S: 250-VRFY
2009-01-07 16:06:26.397 App[1504:20b] *** stopping watchdog ***
2009-01-07 16:06:26.404 App[1504:20b] S: 250-ETRN
2009-01-07 16:06:26.410 App[1504:20b] *** stopping watchdog ***
2009-01-07 16:06:26.416 App[1504:20b] S: 250-STARTTLS
2009-01-07 16:06:26.421 App[1504:20b] C: STARTTLS
2009-01-07 16:06:26.428 App[1504:20b] bytes written: 10
2009-01-07 16:06:26.436 App[1504:20b] *** starting short watchdog ***
2009-01-07 16:06:26.442 App[1504:20b] *** stopping watchdog ***
2009-01-07 16:06:26.448 App[1504:20b] S: 250 8BITMIME
2009-01-07 16:06:26.726 App[1504:20b] *** stopping watchdog ***
2009-01-07 16:06:26.732 App[1504:20b] S: 220 Ready to start TLS
2009-01-07 16:06:26.738 App[1504:20b] WARNING: Will not validate SSL chain!!!
2009-01-07 16:06:26.745 App[1504:20b] Beginning TLSv1...
2009-01-07 16:06:26.751 App[1504:20b] C: EHLO localhost
*** Terminating app due to uncaught exception 'HSK_CFUtilitiesErrorDomain', 
reason: 'Error 
writing bytes to stream!'
2009-01-07 16:06:27.588 App[1504:20b] Stack: (
    808221155,
    806100816,
    808035743,
    808035647,
    174565,
    178581,
    177177,
    812621199,
    808007687,
    808007573,
    808007199,
    824152885,
    808006801,
    808006183,
    807836299,
    807834407,
    827735648,
    816119480,
    816158236,
    8343,
    8244
)


Original issue reported on code.google.com by [email protected] on 8 Jan 2009 at 12:23

Iphone ios 4 Background Execution

What steps will reproduce the problem?
1. Smtp send email as well in foreground,sometimes switch to another 
application .Now i want to send the mail as background .
2.
3.

What is the expected output? What do you see instead?


What version of the product are you using? On what operating system?


Please provide any additional information below.


Original issue reported on code.google.com by *[email protected] on 15 Dec 2010 at 6:14

From formating

I'm trying to send a message where the from is stated as "My 
Name<[email protected]>"  I've 
tried numerous different formats in the fromEmail property, but using anything 
other than the 
typical [email protected] value yields an error stating "501 5.1.7 Bad sender 
address syntax"  
What is the correct way to set this up?

Thanks,

James

Original issue reported on code.google.com by [email protected] on 18 Sep 2009 at 2:15

all attachment files download as .vcf

Hello,

I am using this SMTP code to send emails from iPhone.  There is, however a 
weird side-effect, 
and I'm not sure what I am doing wrong.  

In the example code, you are sending a file called test.vcf, which already 
exists in the filesystem.  
I, on the other hand, am creating a file from an NSString using the writeToFile 
method.  For 
example:

BOOL result = [exportString writeToFile:writablePath atomically:YES 
encoding:NSASCIIStringEncoding error:&error];

My data file is written property (with an extension of .csv), and the SMTP code 
successfully sends 
an email.  However, when I download the attachment on a mac, the file ALWAYS 
gets a .vcf 
extension appended to the end of the filename.  For example, if my filename is 
test.csv, the file 
will download as test.csv.vcf.  

Any idea why this would happen?

- Jeremy Jacob


What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?


What version of the product are you using? On what operating system?


Please provide any additional information below.



Original issue reported on code.google.com by [email protected] on 6 Feb 2009 at 2:23

User's Attachments

Understand from the framework that we are able to attach a file and send 
however that only happens if the file is in the bundle. Can user select their 
own files from their phone (example: Photo Library) and send as a attachment?

Regards,
Jeremy

Original issue reported on code.google.com by [email protected] on 13 Oct 2010 at 7:48

wrong base64 crashes Thunderbird

Just send a message with big file and try to open in it Thunderbird3.0b2pre 

Solution is available:
AFAIK base64 data should be splitted to lines of 64 symbols.

So solution for the problem is quite simple:
in NSData+Base64Additions.m line 
encodedString = [NSString stringWithCString:outBuffer
encoding:NSASCIIStringEncoding];

should be replaced with the following code:
        encodedString = [NSMutableString stringWithCString:outBuffer
encoding:NSASCIIStringEncoding];

        int numInsertions = ([encodedString length])/64;
        if ([encodedString length] % 64 == 0)
            numInsertions--;

        for (int i = 0; i < numInsertions; i++) {
            [encodedString insertString:@"\r\n" atIndex:(64*(i+1))+(i*2)];

Produced data doesn't crash Thunderbird.




Original issue reported on code.google.com by [email protected] on 31 Jan 2009 at 1:47

How to embed an image?

If I want to embed a local image as part of the email body (thus making the 
email an HTML mail), 
what change in code should be done? The image should not go as an attachment, 
but embedded 
or inline in the message body.
Some changes that I did are:
NSDictionary *plainPart = [NSDictionary 
dictionaryWithObjectsAndKeys:@"text/html",kSKPSMTPPartContentTypeKey,
                               @"This is a tést messåge. <img src=\"mail.jpg\" width=\"638\" height=\"425\" 
/>",kSKPSMTPPartMessageKey,@"8bit",kSKPSMTPPartContentTransferEncodingKey,nil];
NSString *imagePath = [[NSBundle mainBundle] pathForResource:@"mail" 
ofType:@"jpg"];
NSData *imageData = [NSData dataWithContentsOfFile:imagePath];
NSDictionary *imagePart = [NSDictionary 
dictionaryWithObjectsAndKeys:@"image/jpeg;\r\n\tx-
unix-mode=0644;\r\n\tname=\"mail.jpg\"",kSKPSMTPPartContentTypeKey,         
@"attachment;\r\n\tfilename=\"mail.jpg\"",kSKPSMTPPartContentDispositionKey,[ima
geData 
encodeBase64ForData],kSKPSMTPPartMessageKey,@"base64",kSKPSMTPPartContentTransfe
rEnco
dingKey,nil];
Rest of the code remains unchanged. The mail.jpg file is added in Resources. 
But this is not 
sending the image embedded. It goes as an attachment. The image placeholder on 
the received 
HTML-format mail is empty.
Pls give some suggestions.

Thanks,
Raktim.

Original issue reported on code.google.com by raktimd on 14 Apr 2009 at 7:04

Implement support for large file attachments

Hi, becouse my app iStorage need send large files, i implement it to your smtp 
client.

usage:
NSString     *contentType = [NSString stringWithFormat: 
@"application/octet-stream; 
name=\"%@\"", fileName]; 
NSString     *disposition = [NSString stringWithFormat: @"attachment; 
filename=\"%@\"", fileName];

NSDictionary *attachment  = [NSDictionary dictionaryWithObjectsAndKeys: 
contentType, 
kSKPSMTPPartContentTypeKey, disposition, kSKPSMTPPartContentDispositionKey, 
fileName, 
kSKPSMTPPartContentDescriptionKey, @"base64", 
kSKPSMTPPartContentTransferEncodingKey, file 
fullPath, kSKPSMTPPartAttachmentPathKey, nil];

Original issue reported on code.google.com by [email protected] on 3 Nov 2008 at 5:36

Attachments:

What to change to attach JPEG file

I tried attaching a 91KB jpg file and the file appears to be corrupted when 
received.  Can't open with 
iPhone or Photoshop when email to my Windows account.

I took the brute force approach of changing all vcf references to jpg and 
test.vcf to my own file 
name in the SMTPSenderAppDelegate.m file.  This apparently was not adequate.  I 
saw other people 
talking about attaching jpg files so this must be possible.

Any help is appreciated.

Original issue reported on code.google.com by francis.tse8 on 20 Oct 2009 at 10:02

SMTP Date does not conform to RFC 2822

Line 764 of SKPSMTPMessage.m sends the date, but the way it's coded now the 
date gets localized. 
Technically this does not conform to RFC 2822 and some spam filters will mark 
this as spam 
because of it. Attached is a diff that is what we used to fix this.

Original issue reported on code.google.com by averagejake on 14 Jul 2009 at 1:29

Attachments:

Sending thru Yahoo dont seem to work

I dont know if this is the right place to post this. But.... there is also a 
program called ssmtp 
which is like a slimmed down sendmail (it only sends smail and not receive so 
its perfect for this 
purpose). It supports SSL and MD5 and written in plain old C language. Maybe 
you guys can 
"borrow" some code from ssmtp so that you can add SSL and MD5 to skpsmtpmessage.

By the way I downloaded your code and ran it on my iphone, it cant seem to send 
any e-mails 
thru my yahoo account, but it does work thru my local  ISP. I set 
testMsg.relayHost=@"smtp.mail.yahoo.com" but it always fail with invalid 
password or something 
like that even though I have the right login and password on there. see console 
log below.

Has anybody tried sending mail thru yahoo with this program?

    testMsg.fromEmail = @"[email protected]";
    testMsg.toEmail =   @"[email protected]";
    testMsg.relayHost = @"smtp.mail.yahoo.com";
    testMsg.requiresAuth = YES;
    testMsg.login = @"mylogin";
    testMsg.pass = @"mypassword";
    testMsg.subject = @"test message";
    testMsg.wantsSecure = NO; // I tried both YES and NO, neither works

Log follows:
2008-12-30 22:40:21.837 SMTPSender[1355:20b] C: Attempting to connect to server 
at: 
smtp.mail.yahoo.com:25
2008-12-30 22:40:25.369 SMTPSender[1355:20b] *** stopping watchdog ***
2008-12-30 22:40:25.375 SMTPSender[1355:20b] S: 220 
smtp112.plus.mail.re1.yahoo.com 
ESMTP
2008-12-30 22:40:25.381 SMTPSender[1355:20b] C: EHLO localhost
2008-12-30 22:40:25.387 SMTPSender[1355:20b] *** starting short watchdog ***
2008-12-30 22:40:26.146 SMTPSender[1355:20b] *** stopping watchdog ***
2008-12-30 22:40:26.154 SMTPSender[1355:20b] S: 
250-smtp112.plus.mail.re1.yahoo.com
2008-12-30 22:40:26.160 SMTPSender[1355:20b] *** stopping watchdog ***
2008-12-30 22:40:26.166 SMTPSender[1355:20b] S: 250-AUTH LOGIN PLAIN XYMCOOKIE
2008-12-30 22:40:26.171 SMTPSender[1355:20b] *** stopping watchdog ***
2008-12-30 22:40:26.177 SMTPSender[1355:20b] S: 250-PIPELINING
2008-12-30 22:40:26.183 SMTPSender[1355:20b] *** stopping watchdog ***
2008-12-30 22:40:26.198 SMTPSender[1355:20b] S: 250 8BITMIME
.... [snip]

2008-12-30 22:40:26.205 SMTPSender[1355:20b] C: AUTH PLAIN 
... [snip]

2008-12-30 22:40:26.666 SMTPSender[1355:20b] S: 535 authorization failed 
(#5.7.0)
2008-12-30 22:40:26.694 SMTPSender[1355:20b] delegate - error(535): 
login/password invalid
2008-12-30 22:40:29.865 SMTPSender[1355:20b] *** stopping watchdog ***



Original issue reported on code.google.com by [email protected] on 31 Dec 2008 at 4:07

Last Part of Multipart message missing trailing -- in separator

What steps will reproduce the problem?

1. Send an email with a multipart attachment
2. Use google SMTP server to send the email to an address that you will open 
with outlook.
3. In the outlook client, you end up with an ATTNNNNNN.txt (where N's are 
numbers). This is 
because the last part in the email doesn't have the trailing "--" characters 
that should be in the 
final part's separator string.

We changed the source to use the trailing "--" at the end of the last part and 
Outlook no longer 
gets the ATTNNNNN.txt file.

We stumbled across the solution to fix ATTNNNNN.txt files here:
http://stackoverflow.com/questions/690430/attnnnnn-txt-attachments-when-e-mail-i
s-
received-in-outlook

Thanks.


Original issue reported on code.google.com by [email protected] on 2 Jun 2009 at 7:29

Problem attaching .wav and .caf files.

When I attach certain .wav files or any .caf file the file either becomes 
completely or partially corrupted and comes out sounding like white noise 
or having some white noise appended. It also seems that if you are 
recieving these attachments on another iPhone they are corrupted but if 
you open the same email on a desktop the sound file plays just fine. 

Original issue reported on code.google.com by [email protected] on 2 Apr 2009 at 6:59

unrecognized selector sent to instance

I copied in your code to do a test.
 SKPSMTPMessage *testMsg = [[SKPSMTPMessage alloc] init];
    testMsg.fromEmail = @"[email protected]";
    testMsg.toEmail = @"[email protected]";
    testMsg.relayHost = @"collinssolutions.com";
    testMsg.requiresAuth = YES;
    testMsg.login = @"[email protected]";
    testMsg.pass = @"taken out for internet post";
    testMsg.subject = @"GPS Download";
    testMsg.bccEmail = @"[email protected]";
    testMsg.wantsSecure = NO; // smtp.gmail.com doesn't work without TLS!

    // Only do this for self-signed certs!
    // testMsg.validateSSLChain = NO;
    testMsg.delegate = self;
    NSDictionary *plainPart = [NSDictionary 
dictionaryWithObjectsAndKeys:@"text/plain",kSKPSMTPPartContentTypeKey,
                               @"This is a tést 
messåge.",kSKPSMTPPartMessageKey,@"8bit",kSKPSMTPPartContentTransferEncodingKey
,nil];
    NSString *vcfPath = [[NSBundle mainBundle] pathForResource:@"test" ofType:@"vcf"];
    NSData *vcfData = [NSData dataWithContentsOfFile:vcfPath];

    NSDictionary *vcfPart = [NSDictionary dictionaryWithObjectsAndKeys:@"text/directory;\r\n\tx-
unix-mode=0644;\r\n\tname=\"test.vcf\"",kSKPSMTPPartContentTypeKey,

@"attachment;\r\n\tfilename=\"test.vcf\"",kSKPSMTPPartContentDispositionKey,[vcf
Data 
encodeBase64ForData],kSKPSMTPPartMessageKey,@"base64",kSKPSMTPPartContentTransfe
rEnco
dingKey,nil];

    testMsg.parts = [NSArray arrayWithObjects:plainPart,vcfPart,nil];  
    [testMsg send];

I get this:
2009-03-22 19:46:41.072 LocateMe[1780:20b] C: Attempting to connect to server 
at: 
collinssolutions.com:25
2009-03-22 19:46:49.092 LocateMe[1780:20b] C: Attempting to connect to server 
at: 
collinssolutions.com:465
2009-03-22 19:46:57.099 LocateMe[1780:20b] C: Attempting to connect to server 
at: 
collinssolutions.com:587
2009-03-22 19:46:57.882 LocateMe[1780:20b] *** stopping watchdog ***
2009-03-22 19:46:57.888 LocateMe[1780:20b] S: 220 bighorn.nexcess.net ESMTP
2009-03-22 19:46:57.893 LocateMe[1780:20b] C: EHLO localhost
2009-03-22 19:46:57.899 LocateMe[1780:20b] *** starting short watchdog ***
2009-03-22 19:46:57.943 LocateMe[1780:20b] *** stopping watchdog ***
2009-03-22 19:46:57.952 LocateMe[1780:20b] S: 250-bighorn.nexcess.net
2009-03-22 19:46:57.963 LocateMe[1780:20b] *** stopping watchdog ***
2009-03-22 19:46:57.973 LocateMe[1780:20b] S: 250-STARTTLS
2009-03-22 19:46:57.984 LocateMe[1780:20b] *** stopping watchdog ***
2009-03-22 19:46:57.994 LocateMe[1780:20b] S: 250-PIPELINING
2009-03-22 19:46:58.005 LocateMe[1780:20b] *** stopping watchdog ***
2009-03-22 19:46:58.017 LocateMe[1780:20b] S: 250-8BITMIME
2009-03-22 19:46:58.027 LocateMe[1780:20b] *** stopping watchdog ***
2009-03-22 19:46:58.035 LocateMe[1780:20b] S: 250-SIZE 20971520
2009-03-22 19:46:58.041 LocateMe[1780:20b] *** stopping watchdog ***
2009-03-22 19:46:58.046 LocateMe[1780:20b] S: 250 AUTH LOGIN PLAIN CRAM-MD5
2009-03-22 19:46:58.080 LocateMe[1780:20b] *** -[MainViewController 
messageFailed:error:]: 
unrecognized selector sent to instance 0x11e9b0
2009-03-22 19:46:58.088 LocateMe[1780:20b] *** Terminating app due to uncaught 
exception 
'NSInvalidArgumentException', reason: '*** -[MainViewController 
messageFailed:error:]: 
unrecognized selector sent to instance 0x11e9b0'
2009-03-22 19:46:58.098 LocateMe[1780:20b] Stack: (
    808221155,
    806100816,
    808224837,
    807957033,
    807851552,
    60763,
    51397,
    812621199,
    808007687,
    808007573,
    808007199,
    824152885,
    808006801,
    808006183,
    807836299,
    807834407,
    827752032,
    816118388,
    816157144,
    8381,
    8244
)
terminate called after throwing an instance of 'NSException'

I am needing to email a sqlite database that is stored in the apps Documents Dir


Original issue reported on code.google.com by [email protected] on 23 Mar 2009 at 12:53

Licensing Headers

Can you please clarify the licensing on all the files? We see certain files
that don't have proper header and clarifications.

Original issue reported on code.google.com by [email protected] on 15 Dec 2008 at 3:14

LGPL

can i use skpsmtpmessage in commercial project ?

Original issue reported on code.google.com by [email protected] on 25 Feb 2009 at 6:27

No Need to Link to UIKit in static library

There is no need to link to UIKit in the model classes, especially when 
building the static library. Included below are diffs I made to minimize 
required libraries, with success in the resulting build.

Index: SMTPSender/Classes/NSStream+SKPSMTPExtensions.h
===================================================================
--- SMTPSender/Classes/NSStream+SKPSMTPExtensions.h (revision 27)
+++ SMTPSender/Classes/NSStream+SKPSMTPExtensions.h (working copy)
@@ -30,7 +30,7 @@
 //  OTHER DEALINGS IN THE SOFTWARE.
 //

-#import <UIKit/UIKit.h>
+#import <Foundation/NSStream.h>
 #import <CFNetwork/CFNetwork.h>

 @interface NSStream (SKPSMTPExtensions)
Index: SMTPSender/Classes/HSK_CFUtilities.h
Index: SMTPSender/Classes/SMTPSenderAppDelegate.m
===================================================================
--- SMTPSender/Classes/SKPSMTPMessage.h (revision 27)
+++ SMTPSender/Classes/SKPSMTPMessage.h (working copy)
@@ -27,7 +27,7 @@
 //  OTHER DEALINGS IN THE SOFTWARE.
 //

-#import <UIKit/UIKit.h>
+#import <Foundation/Foundation.h>
 #import <CFNetwork/CFNetwork.h>

 enum 

Original issue reported on code.google.com by [email protected] on 31 Jan 2011 at 5:45

messageFailed Delegate Fails to Fire When Sending Email To Invalid Gmail Address

What steps will reproduce the problem?
1. Create a message with the follow parameters:

    SKPSMTPMessage *testMsg = [[SKPSMTPMessage alloc] init];
    testMsg.fromEmail = @"[email protected]";
    testMsg.toEmail = @"[email protected]";
    testMsg.relayHost = @"aspmx.l.google.com";
    testMsg.requiresAuth = NO;
    testMsg.subject = @"test message";

2. The server will respond with a user not found 550 error
3. The messageFailed delegate is never raised.

What is the expected output? What do you see instead?
1.The messageFailed delegate should be raised.

Please provide any additional information below.
1. The "aspmx.l.google.com" server is a valid incoming SMTP server and does
not require authentication.

It appears that the reason this happens is that there is no catch for a 550
error in the kSKPSMTPWaitingToReply state in the parseBuffer method.

Adding a 550 error catch to the kSKPSMTPWaitingToReply state appears to fix
the problem. Following is a snippet of the code I used to fix the problem:


case kSKPSMTPWaitingToReply:
                {
                    if ([tmpLine hasPrefix:@"250 "])
                    {
                        sendState = kSKPSMTPWaitingForEnterMail;

                        NSString *dataString = @"DATA\r\n";
                        NSLog(@"C: %@", dataString);

CFWriteStreamWriteFully((CFWriteStreamRef)outputStream, (const uint8_t
*)[dataString UTF8String], [dataString
lengthOfBytesUsingEncoding:NSUTF8StringEncoding]);
                        [self startShortWatchdog];
                    }
                    else if ([tmpLine hasPrefix:@"530 "])
                    {
                        error =[NSError errorWithDomain:@"SKPSMTPMessageError" 
                                                   code:kSKPSMTPErrorNoRelay 
                                               userInfo:[NSDictionary
dictionaryWithObject:@"relay rejected - server probably requires auth" 

         forKey:NSLocalizedDescriptionKey]];
                        encounteredError = YES;
                    }
                    else if ([tmpLine hasPrefix:@"550 "])
                    {
                        error =[NSError errorWithDomain:@"SKPSMTPMessageError" 

code:kSKPSMTPErrorInvalidMessage 
                                               userInfo:[NSDictionary
dictionaryWithObject:@"error sending message" 

         forKey:NSLocalizedDescriptionKey]];
                        encounteredError = YES;
                    }
                    break;
                }

Original issue reported on code.google.com by jheising on 5 Feb 2009 at 1:39

Timeouts are hard-coded

Currently, the timeout for connection is hardcoded at 20 seconds. This should 
be a configurable 
property.

Original issue reported on code.google.com by [email protected] on 30 Oct 2008 at 3:15

[NSStream getStreamsToHostNamed:port:inputStream:outputStream:]: unrecognized selector sent to class

What steps will reproduce the problem?
1. I retrieved the skpsmtpmessage project from 
http://github.com/kailoa/iphone-smtp
2. I build and deploy for OS 3.1.3 on real device
3. I enter the mail details (using smtp.gmail.com as the mail server) and 
click Send

What is the expected output? What do you see instead?

Application hangs.
Debug says:

[NSStream getStreamsToHostNamed:port:inputStream:outputStream:]: 
unrecognized selector sent to class 0xa004a5c0
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', 
reason: '*** +[NSStream 
getStreamsToHostNamed:port:inputStream:outputStream:]: unrecognized 
selector sent to class'



What version of the product are you using? On what operating system?

I retrieved the skpsmtpmessage project from 
http://github.com/kailoa/iphone-smtp

on Leopard.


Please provide any additional information below.

It works fine on the simulator.

Thanks for any help!



Original issue reported on code.google.com by [email protected] on 1 Apr 2010 at 1:28

File extension inappropriately renamed to .VCF

I have successfully used SKPSMTPMessage to attach files and communicate
with Gmail SMTP servers.  I am, however, experiencing a strange side
affect.  When I download the file from the email, on a Mac the file gets
renamed to the .VCF file extension, even though the actual file is a
different extension (.txt, .csv, etc.).  It seems like Mac OS is actually
renaming the file, because in my email client, the file extension looks
right.  Also, downloading on a PC works just fine.  

I have debugged literally the entire code path that executes when the
message is sent, and everything seems to be in order.  Is there some
metadata that gets associated with the attached file that is not correct?  

Thanks in advance for any help.

Jeremy

Original issue reported on code.google.com by [email protected] on 5 Mar 2009 at 5:52

The error that the other server returned was: 552 552 message line is too long

i send image in e-mail and have this is an automatically generated Delivery 
Status Notification

Technical details of permanent failure:
Google tried to deliver your message, but it was rejected by the recipient 
domain. We recommend 
contacting the other email provider for further information about the cause of 
this error. The error 
that the other server returned was: 552 552 message line is too long (state 18).


how chnge long ?

Original issue reported on code.google.com by [email protected] on 15 Apr 2009 at 3:38

oliver.shikaloski,

What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?


What version of the product are you using? On what operating system?


Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 6 Jan 2011 at 9:37

another prefix to check for: Gmail returns prefix 553 for invalid To address

Gmail returns prefix 553 when it encounters an invalid TO address.

i just changed line 670 from:

else if ([tmpLine hasPrefix:@"550 "])

to this:

else if ([tmpLine hasPrefix:@"550 "]  || [tmpLine hasPrefix:@"553"])



here's the exact response message if you're interested:
S: 553-5.1.2 We weren't able to find the recipient domain. Please check
S: 553-5.1.2 for any spelling errors, and make sure you didn't enter any
S: 553-5.1.2 spaces, periods, or other punctuation after the recipient's
S: 553 5.1.2 email address. 33sm16240276yxr.57

Original issue reported on code.google.com by [email protected] on 24 Feb 2009 at 7:59

Send on some wireless networks fails

What steps will reproduce the problem?
    Just a normal send like in the sample code.

What is the expected output? What do you see instead?
    My code gets/reports a generic 'unable to connect to server' failure instead of a success.

What version of the product are you using? On what operating system?
    iPod touch unknown OS version

Please provide any additional information below.
    My customers are seeing this.  I haven't been able to reproduce the issue.  It is not related to 
the email address.  The information about the email server is hard coded into 
the app.  So that is 
a constant.  The only thing the end user enters is an email address.  I haven't 
been able to figure 
out the common component to the scenario.  Most customers are able to send 
without problems.




Original issue reported on code.google.com by [email protected] on 6 Apr 2009 at 11:28

Multiple recipients does not work

Hi,

I was testing the functionality of skpsmtpmessage, and came across a
problem not being able to send a message to multiple recipients. I use
gmail  account.
I tried to set CC and TO but only one mail is sent. Also tried to set two
email addresses in the TO field but same issue. Can anyone else  confirm
this issue?

Best regads,
Oliver

Original issue reported on code.google.com by [email protected] on 30 Mar 2010 at 1:58

unable to send a .png file as attachment.

I was able to send the .vcf file as attachment, but when I try to send a
.png file, the attachment is not proper. The image at the receiver is seen
as 1k file with a '?'. I have added an image.png to my resources and am
trying to attach it.

What version of the product are you using? On what operating system?
iPhone

Please provide any additional information below.
File Size: 4-12 KB
My Source:
    testMsg.delegate = self;

    NSDictionary *plainPart = [NSDictionary
dictionaryWithObjectsAndKeys:@"text/plain",kSKPSMTPPartContentTypeKey,
                 @"[File] Uploaded
Picture",kSKPSMTPPartMessageKey,@"8bit",kSKPSMTPPartContentTransferEncodingKey,n
il];

    NSString *vcfPath = [[NSBundle mainBundle] pathForResource:@"image"
ofType:@"png"];
    NSData *vcfData = [NSData dataWithContentsOfFile:vcfPath];

    NSDictionary *vcfPart = [NSDictionary
dictionaryWithObjectsAndKeys:@"text/directory;\r\n\tx-unix-mode=0644;\r\n\tname=
\"image.png\"",kSKPSMTPPartContentTypeKey,

@"attachment;\r\n\tfilename=\"image.png\"",kSKPSMTPPartContentDispositionKey,[vc
fData
encodeBase64ForData],kSKPSMTPPartMessageKey,@"base64",kSKPSMTPPartContentTransfe
rEncodingKey,nil];

    testMsg.parts = [NSArray arrayWithObjects:plainPart,vcfPart,nil];

    [testMsg send];

Please find enclosed the image I see at receiver.

Thanks for help.
Svaths

Original issue reported on code.google.com by ahr.srivaths on 21 Apr 2009 at 11:08

Attachments:

Sending via comcast.net in rapid success causes NSException.

What steps will reproduce the problem?
1. This seems to occur when trying to send multiple emails in rapid succession 
while using 
smtp.comcast.net as a relay server
2. Cannot reproduce using my own postfix server
3.

What is the expected output? What do you see instead?
Expected to see a bunch of successfully sent emails.  Comcast seems to have a 
rate limiter, but 
skpsmtpmessage doesn't seem to handle rejection gracefully.

What version of the product are you using? On what operating system?
r22

Please provide any additional information below.
run
Running…
[Switching to thread 10755]
[Switching to thread 10755]
(gdb) continue
2009-01-16 10:40:06.246 RingItUp[3311:20b] C: Attempting to connect to server 
at: 
smtp.comcast.net:25
2009-01-16 10:40:08.051 RingItUp[3311:20b] C: Attempting to connect to server 
at: 
smtp.comcast.net:25
2009-01-16 10:40:09.835 RingItUp[3311:20b] C: Attempting to connect to server 
at: 
smtp.comcast.net:25
2009-01-16 10:39:59.315 RingItUp[3311:20b] C: Attempting to connect to server 
at: 
smtp.comcast.net:25
2009-01-16 10:40:02.017 RingItUp[3311:20b] C: Attempting to connect to server 
at: 
smtp.comcast.net:465
2009-01-16 10:40:02.466 RingItUp[3311:20b] C: Attempting to connect to server 
at: 
smtp.comcast.net:25
2009-01-16 10:40:03.273 RingItUp[3311:20b] *** stopping watchdog ***
2009-01-16 10:40:03.285 RingItUp[3311:20b] S: 421 
OMTA13.westchester.pa.mail.comcast.net 
comcast Too many sessions opened
2009-01-16 10:40:03.292 RingItUp[3311:20b] No buffer!
2009-01-16 10:40:03.299 RingItUp[3311:20b] delegate - error(-4): connection was 
interrupted
2009-01-16 10:40:03.795 RingItUp[3311:20b] C: Attempting to connect to server 
at: 
smtp.comcast.net:465
2009-01-16 10:40:05.575 RingItUp[3311:20b] C: Attempting to connect to server 
at: 
smtp.comcast.net:465
2009-01-16 10:40:07.173 RingItUp[3311:20b] *** stopping watchdog ***
2009-01-16 10:40:07.179 RingItUp[3311:20b] S: 220 
OMTA02.westchester.pa.mail.comcast.net 
comcast ESMTP server ready
2009-01-16 10:40:07.185 RingItUp[3311:20b] C: EHLO localhost
2009-01-16 10:40:07.191 RingItUp[3311:20b] *** starting short watchdog ***
2009-01-16 10:40:07.764 RingItUp[3311:20b] *** stopping watchdog ***
2009-01-16 10:40:07.771 RingItUp[3311:20b] S: 250-
OMTA02.westchester.pa.mail.comcast.net hello [32.159.164.32], pleased to meet 
you
2009-01-16 10:40:07.777 RingItUp[3311:20b] *** stopping watchdog ***
2009-01-16 10:40:07.783 RingItUp[3311:20b] S: 250-HELP
2009-01-16 10:40:07.788 RingItUp[3311:20b] *** stopping watchdog ***
2009-01-16 10:40:07.795 RingItUp[3311:20b] S: 250-AUTH LOGIN PLAIN CRAM-MD5
2009-01-16 10:40:07.800 RingItUp[3311:20b] *** stopping watchdog ***
2009-01-16 10:40:07.831 RingItUp[3311:20b] S: 250-SIZE 15728640
2009-01-16 10:40:07.841 RingItUp[3311:20b] *** stopping watchdog ***
2009-01-16 10:40:07.852 RingItUp[3311:20b] S: 250-ENHANCEDSTATUSCODES
2009-01-16 10:40:07.863 RingItUp[3311:20b] *** stopping watchdog ***
2009-01-16 10:40:07.875 RingItUp[3311:20b] S: 250-8BITMIME
2009-01-16 10:40:07.886 RingItUp[3311:20b] *** stopping watchdog ***
2009-01-16 10:40:07.895 RingItUp[3311:20b] S: 250-STARTTLS
2009-01-16 10:40:07.902 RingItUp[3311:20b] C: STARTTLS
2009-01-16 10:40:07.911 RingItUp[3311:20b] *** starting short watchdog ***
2009-01-16 10:40:07.919 RingItUp[3311:20b] *** stopping watchdog ***
2009-01-16 10:40:07.927 RingItUp[3311:20b] S: 250 OK
2009-01-16 10:40:08.539 RingItUp[3311:20b] *** stopping watchdog ***
2009-01-16 10:40:08.546 RingItUp[3311:20b] S: 220 2.0.0 Ready to start TLS
2009-01-16 10:40:08.553 RingItUp[3311:20b] Beginning TLSv1...
2009-01-16 10:40:08.558 RingItUp[3311:20b] C: EHLO localhost
2009-01-16 10:40:10.059 RingItUp[3311:20b] C: Attempting to connect to server 
at: 
smtp.comcast.net:587
Program received signal:  “EXC_BAD_ACCESS”.
(gdb) backtrace
#0  0x300c8c1c in objc_msgSend ()
#1  0x00062408 in -[SKPSMTPMessage connectionConnectedCheck:] (self=0x178cb0, 
_cmd=0x6f5e0, aTimer=0x178df0) at /Users/tflorman/Projects/RingItUp-
v1.4/Email/SKPSMTPMessage.m:618
#2  0x306942a6 in __NSFireTimer ()
#3  0x30269d8e in CFRunLoopRunSpecific ()
#4  0x30269326 in CFRunLoopRunInMode ()
#5  0x0005e584 in CFWriteStreamWriteFully (outputStream=0x157470, 
buffer=0x1494e0 "EHLO 
localhost\r\n", length=16) at /Users/tflorman/Projects/RingItUp-
v1.4/Email/HSK_CFUtilities.m:54
#6  0x0006124c in -[SKPSMTPMessage parseBuffer] (self=0x1307b0, _cmd=0x6f5c8) 
at 
/Users/tflorman/Projects/RingItUp-v1.4/Email/SKPSMTPMessage.m:411
#7  0x000605c8 in -[SKPSMTPMessage stream:handleEvent:] (self=0x1307b0, 
_cmd=0x300e8a60, stream=0x157400, eventCode=2) at 
/Users/tflorman/Projects/RingItUp-
v1.4/Email/SKPSMTPMessage.m:229
#8  0x306f9d8e in _inputStreamCallbackFunc ()
#9  0x30293806 in _CFStreamSignalEventSynch ()
#10 0x30293794 in _CFStreamSignalEvent ()
#11 0x3029361e in CFReadStreamSignalEvent ()
#12 0x311f9334 in _SocketCallBack ()
#13 0x30293490 in __CFSocketDoCallback ()
#14 0x30293226 in __CFSocketPerformV0 ()
#15 0x30269a8a in CFRunLoopRunSpecific ()
#16 0x30269326 in CFRunLoopRunInMode ()
#17 0x31563e60 in GSEventRunModal ()
#18 0x30a4feb8 in -[UIApplication _run] ()
#19 0x30a5961c in UIApplicationMain ()
#20 0x000020bc in main (argc=1, argv=0x2ffff5fc) at 
/Users/tflorman/Projects/RingItUp-
v1.4/main.m:13
Current language:  auto; currently objective-c


Original issue reported on code.google.com by [email protected] on 16 Jan 2009 at 5:46

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.