Not able to send mail using SMTPSender for cbeyond
Hi All,
Am new to iPhone development as I am using SMTPSender for sending mails I am able to send mails using my gmail account but when i use my company account which comes under cbeyond am not able to send it is showing unable to connect to server.I used relay host as smtp.cbeyond.com.Please can anyone help me out.Thanks to all in Advance.
Hi All,
Am new to iPhone development as I am using SMTPSender for sending mails I am able to send mails using my gmail account but when i use my company account which comes under cbeyond am not able to send it is showing unable to connect to server.I used relay host as smtp.cbeyond.com.Please can anyone help me out.Thanks to all in Advance.
Thanks for your reply,
I tried for both Yes & No I am getting same result not able to connect to server.it is trying to connect with server with all the three ports (587,465,25) but it is not able to connect.
//If you are not sure how to format your message part, send an email to your self.
//In Mail.app, View > Message> Raw Source to see the raw text that a standard email client will generate.
//This should give you an idea of the proper format and options you need
NSDictionary *plain_text_part = [NSDictionary dictionaryWithObjectsAndKeys:
@"text/plain\r\n\tcharset=UTF-8;\r\n\tformat=flowed", kSKPSMTPPartContentTypeKey,
[bodyTextField.text stringByAppendingString:@"\n"], kSKPSMTPPartMessageKey,
@"quoted-printable", kSKPSMTPPartContentTransferEncodingKey,
nil];
[parts_to_send addObjectlain_text_part];
NSDictionary *sig_text_part = [NSDictionary dictionaryWithObjectsAndKeys:
@"text/plain\r\n\tcharset=UTF-8;\r\n\tformat=flowed", kSKPSMTPPartContentTypeKey,
[@"\n" stringByAppendingString:subjectTextField.text], kSKPSMTPPartMessageKey,
@"quoted-printable", kSKPSMTPPartContentTransferEncodingKey,
nil];
[parts_to_send addObject:sig_text_part];
This is the log
C: Attempting to connect to server at: smtp.cbeyond.com:587
C: Attempting to connect to server at: smtp.cbeyond.com:465
C: Attempting to connect to server at: smtp.cbeyond.com:25
delegate - error(-3): Unable to connect to the server.
I used relay host as smtp.cbeyond.com
It is working only with gmail even with my yahoo id it is failed
Can you help me regarding this.
While capturing input stream it is returning length as -1
len = [(NSInputStream *)stream read:buf maxLength:1024];
HI alicefrerichs,
Thanks for your reply.
Sorry for silly Question how can I See Console Output.
Only NSlog What I wrote they are only coming in Console of Xcode.So According to that my Console Output is like this
2012-02-07 10:25:39.109 SMTPSender[625:f803] C: Attempting to connect to server at: smtp.cbeyond.com:587
2012-02-07 10:25:40.175 SMTPSender[625:f803] Length of Input Stream : -1
2012-02-07 10:25:47.110 SMTPSender[625:f803] C: Attempting to connect to server at: smtp.cbeyond.com:465
2012-02-07 10:25:55.111 SMTPSender[625:f803] C: Attempting to connect to server at: smtp.cbeyond.com:25
2012-02-07 10:25:56.367 SMTPSender[625:f803] Length of Input Stream : -1
2012-02-07 10:26:03.115 SMTPSender[625:f803] delegate - error(-3): Unable to connect to the server.
2012-02-07 10:26:03.116 SMTPSender[625:f803] *** stopping watchdog ***
Last edited by rcheguraju; 02-06-2012 at 11:00 PM.
HI alicefrerichs,
Thanks for your reply.
Sorry for silly Question how can I See Console Output.
Only NSlog What I wrote they are only coming in Console of Xcode.So According to that my Console Output is like this
2012-02-07 10:25:39.109 SMTPSender[625:f803] C: Attempting to connect to server at: smtp.cbeyond.com:587
2012-02-07 10:25:40.175 SMTPSender[625:f803] Length of Input Stream : -1
2012-02-07 10:25:47.110 SMTPSender[625:f803] C: Attempting to connect to server at: smtp.cbeyond.com:465
2012-02-07 10:25:55.111 SMTPSender[625:f803] C: Attempting to connect to server at: smtp.cbeyond.com:25
2012-02-07 10:25:56.367 SMTPSender[625:f803] Length of Input Stream : -1
2012-02-07 10:26:03.115 SMTPSender[625:f803] delegate - error(-3): Unable to connect to the server.
2012-02-07 10:26:03.116 SMTPSender[625:f803] *** stopping watchdog ***
Hi All,
Can anyone help me how to come out of this problem.Am able to send mail through gmail using SKSMTPMessage but not able to send using my company mail id which uses "cbeyond" Network.