G gkumar Active Member Licensed User Longtime User May 3, 2012 #1 Hello Forum, Can I get some sample code for sending email option? with or without attachment. and also the steps to configure it. Thanks.
Hello Forum, Can I get some sample code for sending email option? with or without attachment. and also the steps to configure it. Thanks.
Erel B4X founder Staff member Licensed User Longtime User May 3, 2012 #2 See the Email object in Phone library: Basic4android - Phone Upvote 0
G gkumar Active Member Licensed User Longtime User May 4, 2012 #3 I tried using email object, like Dim Message As Email Message.To.Add("gkumar@****.com") Message.CC.Add("[email protected]") StartActivity(Message.GetIntent) But in the emulator it shows the To edit box and subject, Its not showing cc, subject and Body part and instead of "Send" button it shows "Send MMS" once I type email address. Also its not sending the email. status will be stuck at "Sending..." What settings I am missing here? Thanks, Upvote 0
I tried using email object, like Dim Message As Email Message.To.Add("gkumar@****.com") Message.CC.Add("[email protected]") StartActivity(Message.GetIntent) But in the emulator it shows the To edit box and subject, Its not showing cc, subject and Body part and instead of "Send" button it shows "Send MMS" once I type email address. Also its not sending the email. status will be stuck at "Sending..." What settings I am missing here? Thanks,
Erel B4X founder Staff member Licensed User Longtime User May 4, 2012 #4 Try it with a real device. It is probably an emulator issue. Upvote 0
G gkumar Active Member Licensed User Longtime User May 4, 2012 #5 Great! with the real device its working. One thing I wanted to ask you is, whether it is possible to change the view positions in the mail activity window. For example, moving the bottom 'Send' "cancel' panel to top. Thanks, Last edited: May 4, 2012 Upvote 0
Great! with the real device its working. One thing I wanted to ask you is, whether it is possible to change the view positions in the mail activity window. For example, moving the bottom 'Send' "cancel' panel to top. Thanks,
Erel B4X founder Staff member Licensed User Longtime User May 6, 2012 #6 You cannot change the layout of the mail application. It is a different application. Sending an Intent is (somewhat) similar to starting another process with a Shell command in windows, passing the data in as the command line arguments. Upvote 0
You cannot change the layout of the mail application. It is a different application. Sending an Intent is (somewhat) similar to starting another process with a Shell command in windows, passing the data in as the command line arguments.