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.

inside custom component

Java Development

Reply
Developer
Posts: 134
Registered: ‎08-03-2011
My Device: torch, Z10
My Carrier: Vodafone, Airtel

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.
-----------------------------------------------------------------------
Developer
Posts: 16,987
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
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
Developer
Posts: 134
Registered: ‎08-03-2011
My Device: torch, Z10
My Carrier: Vodafone, Airtel

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.
-----------------------------------------------------------------------
Developer
Posts: 16,987
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
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
Developer
Posts: 134
Registered: ‎08-03-2011
My Device: torch, Z10
My Carrier: Vodafone, Airtel

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.
-----------------------------------------------------------------------
Highlighted
Developer
Posts: 16,987
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
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