Welcome!

Welcome to the Official BlackBerry Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Developer
BrajeshSanodiya
Posts: 101
Registered: ‎08-03-2011
My Carrier: BlackBerry Developer

Need help on SMTP mail

Hi all

 

I want to send the email through different email id which is not configured in my device so can anyone please suggest the how can I make it programatically means I want to change the from address.

-----------------------------------------------------------------------
"Like" if you liked the post.
"Accept as Solution" if the post solves your question.
-----------------------------------------------------------------------
Please use plain text.
Developer
simon_hain
Posts: 13,754
Registered: ‎07-29-2008
My Carrier: O2 Germany

Re: Need help on SMTP mail

there is no smtp library (i know of), so you would have to write the code yourself (on protocol level)
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.
Developer
BrajeshSanodiya
Posts: 101
Registered: ‎08-03-2011
My Carrier: BlackBerry Developer

Re: Need help on SMTP mail

Actually i am sending the from address manually but to whom i am sending the mail he is getting at the end of the mail it is mentioed.

"send by Blackberry ..."

 

so i have to remove this line. And for this i have to change the SMTP port eg. gmail.com, etc. so now please suggest how can i change the this port via programicattaly.

 

Please provide suggestion ASAP.

-----------------------------------------------------------------------
"Like" if you liked the post.
"Accept as Solution" if the post solves your question.
-----------------------------------------------------------------------
Please use plain text.
Developer
simon_hain
Posts: 13,754
Registered: ‎07-29-2008
My Carrier: O2 Germany

Re: Need help on SMTP mail

the "sent by Blackberry" is called the signature, and every user can remove it in his settings.

there is no API on the BB that does what you want.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.
Developer
BrajeshSanodiya
Posts: 101
Registered: ‎08-03-2011
My Carrier: BlackBerry Developer

Re: Need help on SMTP mail

Thanks for reply.

Is there any way to change the SMTP HOST for example "smtp.gmail.com".
-----------------------------------------------------------------------
"Like" if you liked the post.
"Accept as Solution" if the post solves your question.
-----------------------------------------------------------------------
Please use plain text.
Developer
simon_hain
Posts: 13,754
Registered: ‎07-29-2008
My Carrier: O2 Germany

Re: Need help on SMTP mail

BB does not use smtp hosts, it uses BES or BIS to send mails.
A BIS account can usually be edited on the provider site.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.